Error:"java.lang.NullPointerException" error when updating the Network Pool details in VMware Cloud Director
search cancel

Error:"java.lang.NullPointerException" error when updating the Network Pool details in VMware Cloud Director

book

Article ID: 377397

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • When clicking SAVE button in the Edit Network Pool Details for "OVDC" UI,  it failed with
     
    Error: [########-####-####-####-############] class java.lang.NullPointerException:

  • Network Pools of the type Geneve are affected.

  • In the /opt/vmware/vcloud-director/logs/vcloud-container-debug.log and browser logs, stacktrace of the following form can be seen:

DefaultExceptionMapper         | Internal server exception | requestId=...
java.lang.NullPointerException
        at java.base/java.net.URI$Parser.parse(URI.java:3104)
        at java.base/java.net.URI.<init>(URI.java:600)
        at com.vmware.vcloud.api.rest.handlers.utils.CommonUtils.extractPath(CommonUtils.java:321)
        at com.vmware.vcloud.api.rest.handlers.utils.CommonUtils.extractId(CommonUtils.java:281)
        at com.vmware.vcloud.api.rest.handlers.utils.AdminUtils.populateAdminVdcSpecFromType(AdminUtils.java:2742)
        at com.vmware.vcloud.api.rest.handlers.admin.AdminVdcHandler.modifyVdc(AdminVdcHandler.java:266)
...

  • Clicking the SAVE button the second time doesn't show the issue.

Environment

VMware Cloud Director 10.5.x

Cause

This is a known issue affecting VMware Cloud Director 10.5.x.
For the first attempt to save the Network Pool, the Network Pool information retrieved is missing a href value for one of the parameters.

Resolution

Workaround is to try the network pool update the second time to get the value populated and applied. 

This issue is not present in VMware Cloud Director to version 10.6 or higher. To resolve the issue, upgrade to VMware Cloud Director 10.6.x where this issue is not present. You can download VMware Cloud Director 10.6.x from the Broadcom Support Portal