My Oracle Support Banner

OUD12c - The "dsreplication verify" Command is Failing with "java.lang.ClassCastException: oracle.idm.oud.topologyapi.impl.configuration.ReplicationGatewayDomainImpl cannot be cast to oracle.idm.oud.topologyapi.configuration.ReplicationDomain" (Doc ID 2781418.1)

Last updated on JUNE 07, 2021

Applies to:

Oracle Unified Directory - Version 12.2.1.3 and later
Information in this document applies to any platform.

Symptoms

While running "dsreplication verify" command in a complex replication topology with Replication Servers and Replication Gateways, receiving the error below:

$ dsreplication --advanced -X
What do you want to do?
1) Enable Replication
2) Disable Replication
3) Initialize Replication on one Server
4) Initialize All Servers
5) Pre External Initialization
6) Post External Initialization
7) Display Replication Status
8) Purge Historical
9) Set the Trust Flag of a Directory Server
10) Enable External Changelog
11) Disable External Changelog
12) Verify Server Configuration
13) >>>> Replication Certificate Management
q) quit
Enter choice: 12
>>>> Specify Oracle Unified Directory LDAP connection parameters
Directory server host name or IP address [{FQDN_OUD_SERVER}]:
Directory server administration port number [{ADMIN_PORT}]:
Global Administrator User ID [admin]:
Password for user 'admin':
Establishing connections and reading configuration ......... Done.
No errors were found with the configured host names. The following host names
have been found in the registration information to identify the different
replicated servers:
FQDN_OUD_SERVER1
FQDN_OUD_SERVER2
.....
FQDN_OUD_SERVER
Do you want to update the host names for the servers? (yes / no) [no]:
java.lang.ClassCastException: oracle.idm.oud.topologyapi.impl.configuration.ReplicationGatewayDomainImpl cannot be cast to oracle.idm.oud.topologyapi.configuration.ReplicationDomain
at org.opends.server.tools.replication.dsreplication.ReplicationServerInconsistency$Comparator.compare(ReplicationServerInconsistency.java:200)
at org.opends.server.tools.replication.dsreplication.ReplicationServerInconsistency$Comparator.compare(ReplicationServerInconsistency.java:152)
at java.util.TreeMap.put(TreeMap.java:552)
at java.util.TreeSet.add(TreeSet.java:255)
at org.opends.server.tools.replication.dsreplication.VerifyExecutor.updateMissingRsValuesInconsistencies(VerifyExecutor.java:1696)
at org.opends.server.tools.replication.dsreplication.VerifyExecutor.displayReplicationServersReport(VerifyExecutor.java:494)
at org.opends.server.tools.replication.dsreplication.VerifyExecutor.updateRepairDataInteracting(VerifyExecutor.java:1840)
at org.opends.server.tools.replication.dsreplication.VerifyExecutor.updateUserDataInteracting(VerifyExecutor.java:2270)
at org.opends.server.tools.replication.dsreplication.VerifyExecutor.internalExecute(VerifyExecutor.java:236)
at org.opends.server.tools.replication.dsreplication.VerifyExecutor.internalExecute(VerifyExecutor.java:163)
at org.opends.server.tools.replication.common.AbstractSubcommandExecutor.execute(AbstractSubcommandExecutor.java:197)
at org.opends.server.tools.replication.dsreplication.DSReplication.executeSubcommand(DSReplication.java:387)
at org.opends.server.tools.replication.dsreplication.DSReplication.execute(DSReplication.java:348)
at org.opends.server.tools.replication.dsreplication.DSReplication.execute(DSReplication.java:202)
at org.opends.server.tools.replication.dsreplication.DSReplication.mainCLI(DSReplication.java:154)
at org.opends.server.tools.replication.dsreplication.DSReplication.main(DSReplication.java:88)

 

Changes

 New replication server was added to replication topology

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.