My Oracle Support Banner

EUSM Command Fails Against Specific OUD Instance with "Exception in thread "main" java.lang.NullPointerException" (Doc ID 1912789.1)

Last updated on DECEMBER 22, 2022

Applies to:

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


EUSM commands fail on one node when attempting to setup mappings between Oracle database and OUD using EUSM.   The same EUSM commands work successfully on the other node.

OUD is running on a two-node cluster.

An example below of the error seen when attempting to list the existing mappings -

Exception in thread "main" java.lang.NullPointerException

This issue seems to be limited to EUSM commands run for the Oracle database.

The following search query works fine directly on the nodes.

ldapsearch -h <HOSTNAME> -p <LDAP_PORT> -D "cn=<DS_ADMIN>" -w <PASSWORD> -b "cn=<ADMIN>,cn=OracleContext,dc=<SUFFIX_DN>" -s one-filter "(|(objectClass=orclDBEntryLevelMapping)(objectclass=orclDBSubtreeLevelMapping))" cn,orcldbdistinguishedname,orcldbnativeuser,objectclass

When the query is changed to use EUSM from the Oracle server to the OUD servers, the query fails 50% of the time.

eusm listMappings database_name="<DB_NAME>" realm_dn="dc=<SUFFIX_DN>" ldap_host=<HOST.FQDN> ldap_port=<LDAP_PORT> ldap_user_dn="cn=<DS_ADMIN>" ldap_user_password="<PASSWORD>"

There is no orclversion listed in the ldapsearch output for the OUD instance that does not work -

$ ldapsearch -p <LDAP_PORT> -D "cn=<DS_ADMIN>" -w <PASSWORD> -b "dc=<SUFFIX_DN>" -s base objectclass="*" orclversion
# extended LDIF
# LDAPv3
# base <dc=<SUFFIX_DN>> with scope baseObject
# filter: objectclass=*
# requesting: orclversion

dn: dc=<SUFFIX_DN>
<==== there is NO orclVerision

But there is an orclversion listed from an ldapsearch on the OUD instance that is working.


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

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