Error: "Internal Server Error ... Caused by: java.lang.NullPointerException" while trying to migrate Tenant Storage
search cancel

Error: "Internal Server Error ... Caused by: java.lang.NullPointerException" while trying to migrate Tenant Storage

book

Article ID: 442869

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • While trying to migrate Tenant Storage in VMware Cloud Director (VCD) we get the following error :

    [ ########-####-####-####-############ ] Internal Server Error

  • In vcloud-container-debug.log logs we can see the following error :

    ERROR    | task-service-activity-pool-2915 | FutureUtil                     | Task future is not complete. | requestId=########-####-####-####-############,request=POST https://<VCD FQDN>/cloudapi/1.0.0/orgVdcStoragePolicies/urn:vcloud:orgvdcstoragepolicy:########-####-####-...,r
    equestTime=<time>,remoteAddress=<ip:port>,userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 ...,accept=application/json;ve
    rsion 39.0.0-alpha vcd=########-####-####-####-############,task=########-####-####-####-############ activity=(com.vmware.vcloud.backendbase.management.system.
    TaskActivity,urn:uuid:########-####-####-####-############)
    java.lang.NullPointerException
            at com.vmware.vcloud.fabric.storage.dao.impl.StorageConsumerDaoImpl.getFabricUri(StorageConsumerDaoImpl.java:599)
            at java.base/java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Collectors.java:178)
            at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
            at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)

Environment

VMware Cloud Director 10.5.1

Cause

This issue could be caused by stale entries in the VCD database for media items that are associated with the Storage Policy but no longer appear in the UI.

Resolution

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

Additional Information

Migrate VMware Cloud Director Tenant Storage