Error: class java.lang.NullPointerException when moving a VM from one vAPP another vAPP
search cancel

Error: class java.lang.NullPointerException when moving a VM from one vAPP another vAPP

book

Article ID: 406594

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • You will get the below error in VCD UI when moving VM from one vAPP to another vAPP in same Org VDC.
    Error: class java.lang.NullPointerException 
  • In the /opt/vmware/vcloud-director/logs/vcloud-container-debug.log file on the VMware Cloud Director Appliance cell, you see entries similar to:

    Internal server exception | requestId=########,request=POST <vcd_url>/api/vApp/vapp-#####-####_###/action/recomposeVApp,requestTime=########,remoteAddress=########,userAgent=Mozilla/5.0 (######; #####
    ##_##_#) AppleWebKit/5...,accept=application/*+xml;version ##.#.#-alpha
    java.lang.NullPointerException
            at com.vmware.vcloud.fabric.compute.vrp.GenericVirtualResourcePool.getVMValRef(GenericVirtualResourcePool.java:1121)
            at com.vmware.vcloud.fabric.compute.vrp.GenericVirtualResourcePool.performAdmissionControl(GenericVirtualResourcePool.java:1887)
            at com.vmware.vcloud.vdc.impl.InternalResourceEntityServiceImpl.performAdmissionControlForInterVdcMove(InternalResourceEntityServiceImpl.java:785)
            at com.vmware.vcloud.vdc.impl.InternalResourceEntityServiceImpl.recomposeVApp(InternalResourceEntityServiceImpl.java:479)
            at com.vmware.vcloud.vdc.impl.VdcServiceImpl.recomposeVApp(VdcServiceImpl.java:1151)


Environment

VMware Cloud Director 10.5.X

Cause

This issue occurs when the id and cvm_id is different in vapp_vm table as the compute_fabric_handle joins based on vapp_vm.id. 

Resolution

Need to modify the VMware Database table. 

For a workaround, contact Broadcom Technical Support and note this Knowledge Article ID (406594) in the problem description.

For more information, see How to Submit a Support Request