Error: "Exception occurred while deploying and attaching network to vApp edge... java.lang.NullPointerException" when updating VM in Cloud Director UI
search cancel

Error: "Exception occurred while deploying and attaching network to vApp edge... java.lang.NullPointerException" when updating VM in Cloud Director UI

book

Article ID: 386742

calendar_today

Updated On: 05-12-2025

Products

VMware Cloud Director

Issue/Introduction

  • You get notified that VM's NICs were reset in VCD (no network or IP addresses, disconnected NIC) and a NIC is no longer assigned to the vApp
  • Adding or modifying the network assigned to a VM NICs fails with "java.lang.NullPointerException" error
  • The following error is found in the cloud director debug logs: 

Exception occurred while deploying and attaching network to vApp edge <VAPP_NETWORK_NAME> with id <VAPP_NETWORK_ID>.

Environment

VMware Cloud Director 10.5.1.1

Cause

The network is not pointing to any valid Real Network and not associated to any other object in the Org VDC. This issue can also occur when there are discrepancies in the external network - gateway CIDR and the static IP pool range.

Resolution

To fix the discrepancy in external Network - Gateway CIDR and the static IP pool range.

Follow the below steps:

  • Go to the VCD UI and navigate to External Networks.

  • Verify that both the Gateway CIDR and the static IP pool range fall within the same subnet.

 

To resolve the below issue - "The network is not pointing to any valid Real Network and not associated to any other object in the Org VDC" -> Contact Broadcom Support for guidance on optimization of the database and note this Article ID (376122) in the problem description. For more information, see Creating and managing Broadcom support cases