NullPointerException occurs in VCMS after upgrade to AppDefense 2.3.2
book
Article ID: 320931
calendar_today
Updated On:
Products
VMware
Issue/Introduction
Symptoms: After upgrading the AppDefense Appliance to version 2.3.2, you experience these symptoms:
The inventory is not getting updated or not syncing on the UI.
In the /var/log/appdefense/vcenter-management-service.log file, you see entries similar to:
java.lang.NullPointerException: null at com.vmware.appd.appliance.vcenter.utils.VirtualMachineDtoConverter.toDto(VirtualMachineDtoConverter.java:33) ~[classes!/:2.3.2.0] at com.vmware.appd.appliance.vcenter.service.impl.VcenterServiceImpl.convertInventoryObjectsToDTO(VcenterServiceImpl.java:1533) ~[classes!/:2.3.2.0]
If you check the vcms.virtual_machine table in postgres, you see a null value for the column gmm_enabled for few (or all) rows.
Cause
This issue occurs due to an error in the Inventory Synchronization with cloud manager while processing incompatible pre-upgrade data.
Resolution
To resolve this issue:
Open an SSH connection to the AppDefense Appliance.
Connect to the psql shell as the super user by running this command: