Error: "Unexpected VMware Cloud Director error. [ UI-####... ] class java.lang.NullPointerException" when recreating a replication in VMware Cloud Director Availability
search cancel

Error: "Unexpected VMware Cloud Director error. [ UI-####... ] class java.lang.NullPointerException" when recreating a replication in VMware Cloud Director Availability

book

Article ID: 430522

calendar_today

Updated On:

Products

VMware Live Recovery

Issue/Introduction

  • Creating a new protection or migration fails with an error similar to the following:

    Unexpected VMware Cloud Director error. [ UI-########-####-####-####-############-####-##-########-####-####-####-############ ] class java.lang.NullPointerException

  • Unable to create any VMs at the destination Organization VDC.
  • May see similar errors in the destination Cloud Director Debug Logs while trying to create a VM:

    com.vmware.ssdc.util.LMException: Error
     at com.vmware.ssdc.util.LMException.wrap(LMException.java:138)
    .
    Caused by: java.lang.NullPointerException
     at com.vmware.vcloud.placementfacade.impl.PlacementServiceFacadeImpl.getResourcePoolVALRef(PlacementServiceFacadeImpl.java:1113)
     at com.vmware.vcloud.placementfacade.impl.PlacementServiceFacadeImpl.getDefaultPlacementHubsForOrgVdc(PlacementServiceFacadeImpl.java:1212)
     at com.vmware.vcloud.placementfacade.impl.PlacementServiceFacadeImpl.computePlacementSolutionForDefaultPlacement(PlacementServiceFacadeImpl.java:1198)

  • Confirm that Issue is not the same as mentioned in KBs 425139 and 325564.
  • vCenter Credentials have been updated recently and vCenter is in disconnected state at VCD Provider Portal.
  • Reconnecting vCenter fails and the following can be seen in Cloud Director Debug Logs:

    Caused by: java.util.concurrent.ExecutionException: (vim.fault.InvalidLogin) {
       faultCause = null,
       faultMessage = null
    }
     at com.vmware.vim.vmomi.core.impl.BlockingFuture.get(BlockingFuture.java:110)
     at com.vmware.vcloud.vimproxy.internal.impl.PropertyCollectorReader.initNewVcSession(PropertyCollectorReader.java:1399)
     ... 9 more
    Caused by: (vim.fault.InvalidLogin) {
       faultCause = null,
       faultMessage = null

Environment

VMware Cloud Director 10.6.1.1
VMware Cloud Director Availability 4.7.3.1

Cause

This Issue is caused if, after vCenter credential update, the credentials for the vCenter account are not updated at VCD level as well.

Resolution

Update the vCenter credentials at VCD Provider Portal by running the following steps:

  1. Login to VCD Provider Portal
  2. Navigate to "Infrastructure Resource > vCenter Server Instances"
  3. Select the vCenter and click the "Edit" button.
  4. Provide the updated password for the account and click "Save".