Java Replication object does not return log entries

I am trying to lookup the replication history of a database using Java agent, but I have no luck so far. The agent signer has manager access to the database with “Allow restricted operation with full administration rights” security level. The Replication object does not return any log entries. I tested on ND 8.5 and later without success. The test database contains replication history.

Here is the code snippet:

Replication rep = db.getReplicationInfo();

Vector entries = rep.getEntries();

for (int i = 0; i < entries.size(); i++) {

ReplicationEntry entry = (ReplicationEntry) entries.get(i);

}

From my test, the “entries” object is not null and contains 1 entry; however, the “entry” object is null.

Any help would be appreciated.