Error: "Unexpected VMware Cloud Director error. [UI...] Internal Server Error - java.lang.NullPointerException" when creating a replication
search cancel

Error: "Unexpected VMware Cloud Director error. [UI...] Internal Server Error - java.lang.NullPointerException" when creating a replication

book

Article ID: 445466

calendar_today

Updated On:

Products

VMware Cloud Director VMware Live Recovery

Issue/Introduction

  •  vCloud Availability Issue replication.
  • Cloud-to-Cloud replication.
  • Replicating other VMs in a vApp.
  • In /opt/vmware/h4/cloud/log/cloud.log the below error is reported:

    2026-06-18 11:20:40.974  WARN - [UI-########-####-####-####-############-######-hw] [job-55] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 23505
    2026-06-18 11:20:40.974 ERROR - [UI-########-####-####-####-############-######-hw] [job-55] o.h.engine.jdbc.spi.SqlExceptionHelper   : ERROR: duplicate key value violates unique constraint "uk_source_vapp_id"
      Detail: Key (v_app_id, source_site)=(########-####-####-####-############, #######) already exists.
    2026-06-18 11:20:40.975  INFO - [UI-########-####-####-####-############-######-hw] [job-55] o.h.e.j.b.internal.AbstractBatchImpl     : HHH000010: On release of batch it still contained JDBC statements
    2026-06-18 11:20:40.976 DEBUG - [UI-########-####-####-####-############-######-hw] [job-55] c.vmware.h4.cloud.job.VmReplicationJob   : Loaded vApp replication C4VAPP-########-####-####-####-############ as it already existed
    ...
    2026-06-18 11:21:59.242 DEBUG - [UI-########-####-####-####-############-######-hw] [job-57] com.vmware.h4.jobengine.JobExecution     : Task ########-####-####-####-############ (WorkflowInfo{type='stop', resourceType='vmReplication', resourceId='C4-########-####-####-####-############', isPrivate=false, resourceName='#####'}) completed with result null
    2026-06-18 11:21:59.245 ERROR - [UI-########-####-####-####-############-######-hw] [job-57] c.v.h.c.events.ManagementEventsService   : Replication with id '########-####-####-####-############' was not found in deleted replications!
    com.vmware.h4.cloud.api.exceptions.VmReplicationNotFoundException: Replication with id 'C4-########-####-####-####-############' was not found.

Environment

VMware Cloud Director Availability 4.7.3

Cause

This issue occurs when there is already one VM of the vApp replicated.

Resolution

To resolve this issue, delete the current replication of the vApp and recreate new replications.