VMware Cloud Director Task Fails with java.lang.NullPointerException at HubManagerImpl.getHubs() During VM Update or vApp Composition
search cancel

VMware Cloud Director Task Fails with java.lang.NullPointerException at HubManagerImpl.getHubs() During VM Update or vApp Composition

book

Article ID: 400305

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • In VMware Cloud Director (VCD), operations such as "Update Virtual Machine" or "Compose Virtual Application (vApp)" may fail with the following error:
    java.lang.NullPointerException at com.vmware.vcloud.val.internal.impl.HubManagerImpl.getHubs(HubManagerImpl.java:556)

Environment

VMware Cloud Director 10.5.1.1

VMware Cloud Director 10.6.X

Cause

This issue can occur when VMware Cloud Director is unable to locate the associated resource pool for a virtual machine (VM) or vApp during task execution. The affected tasks fail almost immediately after initiation, and logs may also report an Internal Server Error or an LMException.

Resolution

  1. Identify the Affected Virtual Machine or vApp:

    • In the Task Details of the failed operation within the Cloud Director UI, check the Object field to find the name of the impacted VM or vApp.
  2. Verify the Resource Pool in vCenter:

    • Log in to the vCenter Server.

    • Use the VM name identified in step 1 to locate the virtual machine.

    • On the Summary or Monitor tab, confirm that it is assigned to a valid Resource Pool.
    • Ensure the resource pool is present and accessible within the correct cluster or compute resource
  3. Reconnect the vCenter Server in Cloud Director:

    • In the Provider Portal of Cloud Director, navigate to:

      • Resources > Infrastructure Resources > vCenter Servers

    • Select the relevant vCenter and click Reconnect.

    • This triggers an inventory refresh between Cloud Director and vCenter, which can resolve inconsistencies such as missing or stale resource pool references.

  4. Retry the Failed Operation:

    • After performing the steps above, reattempt the VM or vApp task.

    • The operation should now complete successfully if the resource pool is recognized.