"Internal Server Error" and "Caused by: java.lang.NullPointerException" when powering on a virtual machine in VMware Cloud Director
search cancel

"Internal Server Error" and "Caused by: java.lang.NullPointerException" when powering on a virtual machine in VMware Cloud Director

book

Article ID: 324406

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

Symptoms:
  • "Internal Server Error" when powering on a virtual machine in VMware Cloud Director.
  • Within /opt/vmware/vcloud-director/logs/vcloud-container-debug.log, the following log snippet can be seen as the cause of the "Internal Server Error":
Caused by: java.lang.NullPointerException
    at com.vmware.vcloud.fabric.compute.vrp.GenericVirtualResourcePool.moveVmsIntoOvdcHubIfNecessary(GenericVirtualResourcePol.java:2580)
    at com.vmware.vcloud.fabric.compute.vrp.VappAllocationVirtualResourcePool.deployAdmittedVms(VAppAllocationVirtualResourcePool.java:156)


Environment

VMware Cloud Director 10.x

Cause

This issue occurs due to a mismatch between the computehub_id and vrp_id in the computevm table in the VMware Cloud Director database.

Resolution

To resolve this issue, please open a Support Request with VMware Technical Support and reference this KB article 91082.
Database modifications may be required to resolve this issue and will require VMware Technical Support assistance.