Error: "java.lang.NullPointerException" while viewing vApp templates from Content Hub
search cancel

Error: "java.lang.NullPointerException" while viewing vApp templates from Content Hub

book

Article ID: 438436

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • In VMware Cloud Director (VCD), while viewing vApp templates from Content Hub we get the following error :

    java.lang.NullPointerException

  • Reviewing the 'Network' section of the HAR file captured when the issue occurred, we can see the following response: 

    "stackTrace": "java.lang.NullPointerException\n\tat java.base/java.util.Objects.requireNonNull(Objects.java:222)\n\tat com.vmware.vcloud.api.presentation.entity.common.EntityRef.<init>(EntityRef.java:145)\n\tat com.vmware.vcloud.api.rest.handlers.utils.VAppTemplateUtils.toVAppTemplateSpec(VAppTemplateUtils.java:817)\n\tat com.vmware.vcloud.api.rest.handlers.utils.VAppTemplateUtils.generateLinks(VAppTemplateUtils.java:803)\n\tat com.vmware.vcloud.api.rest.handlers.query.QueryListDataLinkGenerator.generateLinks(QueryListDataLinkGenerator.java:148)\n\

Environment

VMware Cloud Director 10.6.1.2

Cause

This issue occurs when stale entries associated with a deleted template persist within the VCD database.

Resolution

To resolve this issue, contact Broadcom Support and note this Article ID (438436) in the problem description. For more information, see Creating and managing Broadcom support cases.

Additional Information

How to collect a HTTP Archive (HAR) log file for troubleshooting VCF, Cloud Director or VCF Business Service Console