"class java.lang.NullPointerException" error when enabling an NSX Advanced Load Balancer in VMware Cloud Director 10.4.
search cancel

"class java.lang.NullPointerException" error when enabling an NSX Advanced Load Balancer in VMware Cloud Director 10.4.

book

Article ID: 320418

calendar_today

Updated On: 12-06-2024

Products

VMware Cloud Director

Issue/Introduction

Symptoms:
  • "class java.lang.NullPointerException" error when enabling an NSX Advanced Load Balancer in VMware Cloud Director 10.4.
  • IPv6 Service Network Specification is null.
  • Within /opt/vmware/vcloud-director/logs/vcloud-container-debug.log, the following snippet can be seen:
java.lang.NullPointerException                                                    com.vmware.vcloud.validation.validators.NetworkAddressValidator.isCidrValue(NetworkAddressValidator.java:124)
com.vmware.vcloud.net.CidrUtil$CidrValue.<init>(CidrUtil.java:563)
com.vmware.vcloud.net.CidrUtil.createIpScope(CidrUtil.java:91)


Environment

VMware Cloud Director 10.x

Cause

This issue occurs when the IPv6 Service Network Specification field is null.

Resolution

This is a known issue affecting VMware Cloud Director 10.4.
The issue is resolved in VMware Cloud Director 10.4.1, available at Broadcom Downloads.

If you cannot upgrade to VMware Cloud Director 10.4.1, please use the workaround specified in the Workaround section below.

Workaround:
1. From the Provider Portal, click Edge Gateways in the left pane.
2. Click the Edge Gateway you wish to activate the load balancer on.
3. In the Edge Gateway page, click General Settings under the Load Balancer heading in the left pane.
4. Click Edit.
5. Add a dummy network for the IPv6 Service Network Specification field. Example: afc::1/64.
This is used to satisfy the field so the Null Error is no longer thrown.