OUD 11.1.2.2.0 RGW Configuration Error: InvalidAttributeValueException: 'hostname' has no values (Doc ID 1919155.1)

Last updated on SEPTEMBER 15, 2016

Applies to:

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

Symptoms

OUD 11.1.2.2.0 Replication GateWay (RGW) configuration error

While running oud-replication-gateway-setup to configure Replication between ODSEE11g and OUD, there is an error during RGW settup.

# Equivalent non-interactive command-line:
oud-replication-gateway-setup \
  --cli \
  --hostname ldap_tb.oracle.com \
  --adminConnectorPort 3333 \
  --replicationPortForLegacy 1389 \
  --rootUserDN cn=Directory\ Manager \
  --rootUserPasswordFile ****** \
  --baseDN dc=oracle,dc=com \
  --baseDN ou=cust,dc=oracle,dc=com \
  --hostNameLegacy ldap_tb.oracle.com \
  --portLegacy 390 \
  --doNotUpdateTrustStoreWithLegacyCertsArg \
  --bindDNLegacy cn=Directory\ Manager \
  --bindPasswordFileLegacy ****** \
  --doNotMonitorUsingDsccLegacy \
  --hostNameNg ldap_tb.oracle.com \
  --portNg 4444 \
  --adminUID admin \
  --adminPasswordFile ****** \
  --trustAll \
  --no-prompt \
  --noPropertiesFile

the following error occurs.

Registration information error. Error type: 'ERROR_UNEXPECTED'. Details: javax.naming.directory.InvalidAttributeValueException: 'hostname' has no values.; remaining name 'cn=null:3333,cn=Servers,cn=admin data'
If you want to report this error, provide the contents of file /ldap/oracle/oud-gw/OUD/logs/oud-setup


The details in the oud-setup log show:

INFO: server: [04/Aug/2014:09:33:02 +0900] category=EXTENSIONS severity=INFORMATION msgID=1048797 msg=DIGEST-MD5 SASL mechanism using a server fully qualified domain name of: 198.51.100.65
INFO: server: [04/Aug/2014:09:33:02 +0900] category=PROTOCOL severity=NOTICE msgID=2556180 msg=Started listening for new connections on Administration Connector 0.0.0.0 port 3333
INFO: server: [04/Aug/2014:09:33:02 +0900] category=CORE severity=NOTICE msgID=458887 msg=The Directory Server has started successfully
INFO: server: [04/Aug/2014:09:33:02 +0900] category=CORE severity=NOTICE msgID=458891 msg=The Directory Server has sent an alert notification generated by class org.opends.server.core.DirectoryServer (alert type org.opends.server.DirectoryServerStarted, alert ID 458887): The Directory Server has started successfully

Aug 4, 2014 9:33:03 AM com.sun.gateway.server.tools.setup.ReplicationGatewayInstaller configureNgServerAndADS
INFO: Configuring new generation server
Aug 4, 2014 9:33:03 AM com.sun.gateway.server.tools.setup.ReplicationGatewayInstaller closeConnection
INFO: Closing to connection to: null:-1
Aug 4, 2014 9:33:03 AM com.sun.gateway.server.tools.setup.ReplicationGatewayInstaller run
SEVERE: Identified error: com.sun.gateway.server.tools.setup.ReplicationGatewaySetupException: Registration information error. Error type: 'ERROR_UNEXPECTED'. Details: javax.naming.directory.InvalidAttributeValueException: 'hostname' has no values.; remaining name 'cn=null:3333,cn=Servers,cn=admin data'
com.sun.gateway.server.tools.setup.ReplicationGatewaySetupException: Registration information error. Error type: 'ERROR_UNEXPECTED'. Details: javax.naming.directory.InvalidAttributeValueException: 'hostname' has no values.; remaining name 'cn=null:3333,cn=Servers,cn=admin data'
at com.sun.gateway.server.tools.setup.ReplicationGatewayInstaller.updateADSContents(ReplicationGatewayInstaller.java:2241)
at com.sun.gateway.server.tools.setup.ReplicationGatewayInstaller.configureNgServerAndADS(ReplicationGatewayInstaller.java:1834)
at com.sun.gateway.server.tools.setup.ReplicationGatewayInstaller.run(ReplicationGatewayInstaller.java:502)
at com.sun.gateway.server.tools.setup.cli.ReplicationGatewaySetupCLIInteraction.execute(ReplicationGatewaySetupCLIInteraction.java:627)
at com.sun.gateway.server.tools.setup.ReplicationGatewaySetupLauncher.executeCLI(ReplicationGatewaySetupLauncher.java:143)
at com.sun.gateway.server.tools.setup.ReplicationGatewaySetupLauncher.main(ReplicationGatewaySetupLauncher.java:123)
Caused by: ADSContextException: error type ERROR_UNEXPECTED. Root cause: javax.naming.directory.InvalidAttributeValueException: 'hostname' has no values.; remaining name 'cn=null:3333,cn=Servers,cn=admin data'
at org.opends.admin.ads.ADSContext.registerServer(ADSContext.java:589)
at com.sun.gateway.server.tools.setup.ReplicationGatewayInstaller.updateADSContents(ReplicationGatewayInstaller.java:2221)
... 5 more
Caused by: javax.naming.directory.InvalidAttributeValueException: 'hostname' has no values.; remaining name 'cn=null:3333,cn=Servers,cn=admin data'
at com.sun.jndi.ldap.LdapClient.add(LdapClient.java:996)
at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(LdapCtx.java:787)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_createSubcontext(ComponentDirContext.java:319)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:248)
at javax.naming.directory.InitialDirContext.createSubcontext(InitialDirContext.java:183)
at org.opends.admin.ads.ADSContext.registerServer(ADSContext.java:539)
... 6 more
Aug 4, 2014 9:33:03 AM com.sun.gateway.server.tools.setup.ReplicationGatewayInstaller closeConnection
INFO: Closing to connection to: null:-1

 

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms