Unable to Deploy the NSX Managers During the VCF Convert Operation with ERROR "java. lang. NullPointerException: Cannot invoke "String. trim() " because "value" is null"
search cancel

Unable to Deploy the NSX Managers During the VCF Convert Operation with ERROR "java. lang. NullPointerException: Cannot invoke "String. trim() " because "value" is null"

book

Article ID: 403043

calendar_today

Updated On:

Products

VMware SDDC Manager

Issue/Introduction

  • During a VCF convert operation, deployment of NSX Manager fails.

  • The failure is associated with a Null Pointer Exception in the Deploy NSX-T Manager action.

  • Log /var/log/vmware/vcf/domainmanager.log on the SDDC Manager shows errors similar to:

Log Snippet:java.lang.NullPointerException: Cannot invoke "String.trim()" because "value" is null
at com.vmware.evo.sddc.common.client.vmware.ovf.OvfToolCommandBuilder.pair(OvfToolCommandBuilder.java:433)

Environment

VCF: 5.2.1.1

Cause

One of the NSX Manager entries in the task JSON is missing the subnet_mask value.
The null value causes a failure in the OVF tool parameter construction, leading to a NullPointerException.

Resolution

  • Extract the current deployment task configuration:

curl -s http://localhost/domainmanager/internal/vault/<task_id> -X GET | json_pp > /tmp/deploy_nsx_workflow.json

Note: The <task_id> below can be obtained by hovering over the task that got stuck / failed in the task panel. You can also find the <taskid> from the browser URL.

  • Review the downloaded JSON file for any entries with missing or null values, particularly subnet_mask.

  • Update the JSON file with valid subnet mask values (e.g., "255.255.255.0").

  • Apply the updated configuration by issuing a PUT call:
    curl -X PUT http://localhost/domainmanager/internal/vault/<task_id> \ -H "Content-Type: text/plain" \ -d @/tmp/deploy_nsx_workflow.json

  • Validate that the updated value is reflected in the task configuration (re-run the GET command to confirm).

  • Reinitiate the failed task from the SDDC Manager UI or API.