"Operation canceled due to an unexpected error" when creating a new replication in Cloud Director Availability 4.x
book
Article ID: 315062
calendar_today
Updated On:
Products
VMware Cloud Director
Issue/Introduction
Symptoms:
When creating a new replication in Cloud Director Availability 4.x, you see an error similar to:
Operation canceled due to an unexpected error
In the /opt/vmware/h4/replicator/log/replicator.log file on the source Replicator or source On-Premises appliance, you see an error similar to:
2024-02-29 14:33:36.795 ERROR - [UI-########-####-####-####-########4ab0-r445-VK-hr-2c] [https-jsse-nio-8043-exec-10] c.v.h.c.c.error.ExceptionAdvisorBase : A GET request from ACCOUNT@HOSTNAME[127.0.0.1] to /inventory/########-####-####-####-########e5f6/vms?limit=20&offset=0 failed.
java.lang.NullPointerException: Cannot invoke "String.length()" because "name" is null at java.base/java.util.UUID.fromString(UUID.java:237) at com.vmware.h4.common.util.UUIDUtil.isUuid(UUIDUtil.java:127) at com.vmware.h4.replicator.vc.inventory.VcInventoryService.lambda$withMoIdsForOpaqueNetworks$0(VcInventoryService.java:245) ...
Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.
Environment
VMware Cloud Director Availability 4.x
Cause
This issue occurs when one or more virtual machines in the underlying vCenter inventory has a network interface without an identifier causing the error to occur when attempting to evaluate the value.
Resolution
This issue is resolved in Cloud Director Availability 4.6.1, available at Broadcom Downloads.