Error: "NullPointerException" at FinalizeSyncPhase when importing images from Marketplace
search cancel

Error: "NullPointerException" at FinalizeSyncPhase when importing images from Marketplace

book

Article ID: 399923

calendar_today

Updated On: 06-10-2025

Products

VMware Cloud Director

Issue/Introduction

  • When importing images from Marketplace the catalog synchronization fails with the error below:

    [########-####-####-########9a6a] Internal Error Server

  • In /opt/vmware/vcloud-director/logs/vcloud-container-debug.log the below error is reported:

    DAtE TIME | ERROR    | task-service-activity-pool-1539 | FutureUtil                     | Task future is not complete. | requestId=########-####-####-########1860,request=POST https://vcloud.example.com/cloudapi/1.0.0/appTemplates,requestTime=1747644885947,remoteAddress=##.##.##.##:9298,userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 ...,accept=application/json;version 39.0.0-alpha vcd=########-####-####-########b105,task=########-####-####-########7ff3 activity=(com.vmware.vcloud.backendbase.management.system.TaskActivity,urn:uuid:########-####-####-########7ff3) activity=(com.vmware.cl.activities.CreateAppTemplateActivity,urn:uuid:########-####-####-########7ff3) activity=(com.vmware.cl.activities.AppTemplateSyncActivity,urn:uuid:########-####-####-########7ff3) vcd=########-####-####-########b105,task=########-####-####-########9bb6 activity=(com.vmware.vcloud.backendbase.management.system.TaskActivity,urn:uuid:########-####-####-########9bb6)
    java.lang.NullPointerException
            at com.vmware.cl.activities.LibraryItemSyncActivity$FinalizeSyncPhase.invoke(LibraryItemSyncActivity.java:1238)
            at com.vmware.vcloud.activity.executors.ActivityRunner.runPhase(ActivityRunner.java:175)
            at com.vmware.vcloud.activity.executors.ActivityRunner.run(ActivityRunner.java:112)
            at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
            at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
            at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
            at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
            at java.base/java.lang.Thread.run(Thread.java:829)

Environment

VMware Cloud Director 10.5.1

Cause

VMware Cloud Director (VCD) cells cannot access to the address "https://gtw.marketplace.cloud.vmware.com/api/v1"over the port 443.

Resolution

Allow access from VCD cells to the address "https://gtw.marketplace.cloud.vmware.com/api/v1" as this is the the API URL for the VMware Marketplace production instance to download the images as reported on the documentation at Working with VMware Marketplace Resources in Your VMware Cloud Director Service Provider Admin Portal

For additional information on VMware Cloud Director ports and protocol visit the documentation at VMware Ports and Protocols

Additional Information

Staring with VMware Cloud Director 10.6.1.1 the new VMware Marketplace URL has a new URL. For an existing VMware Marketplace content source, to start utilizing the new Broadcom domain, you must edit the URL from "https://gtw.marketplace.cloud.vmware.com/api/v1" to "https://eapi.broadcom.com/vcf/vsc/gtw/api/v1". For additional information visit the VMware Cloud Director 10.6.1.1 Release Notes