"class java.lang.NullPointerException" error when trying to remove a vApp template in an Organization VDC
search cancel

"class java.lang.NullPointerException" error when trying to remove a vApp template in an Organization VDC

book

Article ID: 320426

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

Symptoms:

In the Cloud Director Tenant Portal, when attempting to remove a vApp template, the following error is displayed:

[UUID] class java.lang.NullPointerException
at java.base/java.util.Objects.requireNonNull(Objects.java:221)
at com.vmware.vcloud.api.presentation.entity.common.EntityRef.<init (EntityRef.java:145)


Environment

VMware Cloud Director 10.x

Cause

The issue occurs because the vApp template is pointing to Storage Class which is not existent or not matching the correct Storage class used by the Org VDC. 

As Cloud Director cannot do a lookup of the values, it will fail to display in the UI.

Resolution

To resolve this issue, please contact VMware support.