java.lang.NullPointerException./var/log/vmware/vsphere-ui/logs/vsphere_client_virgo.log[YYYY-MM-DDTHH:MM:SS.###] [ERROR] data-service-pool-761 70023604 103098 200446 c.vmware.license.client.cis.adapter.BaseDataProviderAdapterImpl Unable to retrieve licensing data: com.vmware.vim.binding.vmodl.fault.SystemError: java.lang.NullPointerException at com.vmware.license.client.cis.management.impl.ManagementEditorImpl.searchLicenseUtilizations(ManagementEditorImpl.java:922)/var/log/vmware/cis-license/license.logYYYY-MM-DDTHH:MM:SS.### vmomi-executor-1 ERROR vim.vmomi.server.impl.SoapBindingImpl Method 'searchLicenseUtilizations' completed with undeclared fault of type java.lang.NullPointerException: nullvCenter Server 8.x
/var/log/vmware/cis-license/license.logYYYY-MM-DDTHH:MM:SS.###Z invocation-vmomi-executor-1 operationID=<opID> DEBUG server.common.repository.impl.LdapRepositoryImpl Searching using filter: (&(&(vmwLicSvcAssetProductName=VMware VirtualCenter Server)(vmwLicSvcAssetLicenseId=9#######-c###-3###-b###-4###########))(vmwLicSvcObjectClass=AssetEntity))YYYY-MM-DDTHH:MM:SS.###Z invocation-vmomi-executor-1 operationID=<opID> ERROR vim.vmomi.server.impl.InvocationTask Method invocation threw unexpected exception!java.lang.NullPointerException: nullRemove the stale license entries by following below steps :
root' account.shell".dn :" parameter.
ldapsearch -H ldap://localhost -x -D "cn=Administrator,cn=Users,dc=vsphere,dc=local" -W -b "cn=LicenseService,cn=Services,dc=vsphere,dc=local" -o ldif-wrap=no -s sub "(&(objectclass=vmwLicSvcLicenseEntity)(vmwLicSvcLicenseType=SubscriptionLicense)(vmwLicSvcLicenseName=vSphere+))"
Sample Result:
# LicenseEntity_9#######-c###-3###-b###-4###########, LicenseService, Services,vsphere.local
dn: cn=LicenseEntity_9#######-c###-3###-b###-4###########,cn=LicenseService,cn=Services,dc=vsphere,dc=local
vmwLicSvcObjectClass: LicenseEntity
vmwLicSvcLicenseType: SubscriptionLicense
vmwLicSvcLicenseName: vSphere+
vmwLicSvcLicenseId: 9#######-c###-3###-b###-4###########
objectClass: top
objectClass: vmwLicSvcLicenseEntity
cn: LicenseEntity_9#######-c###-3###-b###-4###########
Note: Change the domain name based on the environment. In the above example, vsphere.local is used as the domain name.ldapdelete -H ldap://localhost -x -D "cn=administrator,cn=users,dc=vsphere,dc=local" -W "cn=LicenseEntity_<AssetID>,cn=LicenseService,cn=services,dc=vsphere,dc=local"
Sample command:ldapdelete -H ldap://localhost -x -D "cn=Administrator,cn=Users,dc=vsphere,dc=local" -W "cn=LicenseEntity__9#######-c###-3###-b###-4###########,cn=LicenseService,cn=Services,dc=vsphere,dc=local"<AssetID>" with the ID from Step 3.service-control --restart cis-licenseSteps to enable License service DEBUG logging on vCenter Server:
cp /etc/vmware-cis-license/log4j.properties /etc/vmware-cis-license/log4j.properties_backup_<date>/etc/vmware-cis-license/log4j.properties using 'vi' editorrootLogger.level = inforootLogger.level = debugservice-control --restart cis-license