My Oracle Support Banner

OUD 12c Replication Fails to Delete Entries After Restart of an OUD Server and Replication Log Shows Error "msg=An Exception was caught while replaying operation null NullPointerException" (Doc ID 2805888.1)

Last updated on SEPTEMBER 10, 2021

Applies to:

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

Symptoms

Replication fails to delete entries after restart of Oracle Unified Directory (OUD) 12c server and raises java NullPointerException.

If stopping an OUD instance for more than one day but still below / before the replication-purge-delay set time (config.ldif has default ds-cfg-replication-purge-delay: 360000 s value / 4 days and 4 hours), then after the restart of the server, all data are in sync except the deleted entries (tombstone entries in non-stopped OUD instances and real entries in restarted instance).

The following error message is shown in the replication.log:

[11/Jun/2021:07:03:23 +0100] category=SYNC severity=MILD_ERROR msgID=<msg id> msg=An Exception was caught while replaying operation null NullPointerException (EntryHistorical.java:1576 EntryHistorical.java:1530 MultimasterReplication.java:729 LocalBackendDeleteOperation.java:812 LocalBackendDeleteOperation.java:421 LocalBackendWorkflowElement.java:208 DeleteOperationBasis.java:443 LDAPReplicationDomain.java:3198 ReplayThread.java:113) : operation=DeleteOperation(connID=-1, opID=59, dn=uid=tombStoneTest,ou=Users,ou=<ou>,ou=<ou>,dc=<company>,dc=com) changeNumber=<change number>
[11/Jun/2021:07:03:23 +0100] category=SYNC severity=MILD_ERROR msgID=<msg id> msg=An Exception was caught while replaying operation null NullPointerException (EntryHistorical.java:1576 EntryHistorical.java:1530 MultimasterReplication.java:729 LocalBackendDeleteOperation.java:812 LocalBackendDeleteOperation.java:421 LocalBackendWorkflowElement.java:208 DeleteOperationBasis.java:443 LDAPReplicationDomain.java:3198 ReplayThread.java:113) : operation=DeleteOperation(connID=-1, opID=58, dn=uid=<uid>,ou=Users,ou=<ou>,ou=<ou>,dc=<company>,dc=com) changeNumber=<change number>
[11/Jun/2021:07:03:23 +0100] category=SYNC severity=MILD_ERROR msgID=<msg id> msg=An Exception was caught while replaying operation null NullPointerException (EntryHistorical.java:1576 EntryHistorical.java:1530 MultimasterReplication.java:729 LocalBackendDeleteOperation.java:812 LocalBackendDeleteOperation.java:421 LocalBackendWorkflowElement.java:208 DeleteOperationBasis.java:443 LDAPReplicationDomain.java:3198 ReplayThread.java:113) : operation=DeleteOperation(connID=-1, opID=60, dn=uid=<uid>,ou=Users,ou=<ou>,ou=<ou>,dc=<company>,dc=com) changeNumber=<change number>


The issue can be reproduced with following steps:
1. All OUD servers are in sync
2. Create a test entry (uid=testEntry) which gets replicated to all OUD instances in the topology
3. Stop one OUD server (serverB)
4. Delete the test entry (uid=testEntry) on serverA
5. Wait 2 days - serverB is still stopped
6. Restart serverB and the following is observed:
    a. Incorrect number of entries in "dsreplication status"
    b. Deleted entry in step 4 (uid=testEntry) is still present on serverB
    c. java NullPointerException error shown in replication.log

Changes

 

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
References


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