Internal Error Occurred
INFO [ajp-bio-127.0.0.1-8009-exec-15] com.vmware.vcops.ui.util.MainPortalListener.log - (
Component: TODO
Url: /ui/certificate.action
Params: mainAction=deleteCertificate
)
java.lang.NullPointerException
at com.vmware.vcops.bridge.model.CertificateTrustObjectParam.getURIRepresentation(CertificateTrustObjectParam.java:45)
at com.vmware.vcops.bridge.model.CertificateTrustObjectParam.getURIRepresentation(CertificateTrustObjectParam.java:52)
at com.vmware.vcops.ui.action.CertificateAction.getTrustObjectDisplayName(CertificateAction.java:81)
at com.vmware.vcops.ui.action.CertificateAction.execute(CertificateAction.java:53)
VMware Aria Operations 8.12 and Later
To resolve the issue, Kindly refer to the steps below to manually delete the certificates from the database.
For vRealize Operations v8.0 to v8.6.4
For vRealize Operations 8.10, Aria Operations 8.12 and later
⚠️ **Warning:** Before proceeding, take snapshots of all nodes to avoid data loss.
vRealize Operations v8.0 - v8.6.4
# $VMWARE_PYTHON_BIN $ALIVE_BASE/cassandra/apache-cassandra-*/bin/cqlsh --ssl --cqlshrc $ALIVE_BASE/user/conf/cassandra/cqlshrc
# select key from globalpersistence.certificate;
key
------------------------------------------------------
Certificate.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Certificate.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# delete from globalpersistence.certificate where namespace='certificate' and classtype='certificate' and key='Certificate.thumbprint';
# delete from globalpersistence.certificate where namespace='certificate' and classtype='certificate' and key='Certificate.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
# quit;
vRealize Operations 8.10, Aria Operations 8.12 and later
# su - postgres -c "/opt/vmware/vpostgres/current/bin/psql -d vcopsdb -p 5433"
# select key from kv_certificate;
key
------------------------------------------------------
Certificate.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Certificate.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# delete from kv_certificate where key = 'Certificate.thumbprint';
# delete from kv_certificate where key = 'Certificate.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
# \q
Customer could be asking to remove the certificate but adapter no longer existed in the environment. In that situation, certificate cannot be removed from the UI but showing the expired certificate banner in the page. Deleting directly from the database is another option. After removing the records from the database refreshing the UI should no longer showing the expired certificate.