My Oracle Support Banner

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

Last updated on MAY 29, 2024

Applies to:

Oracle Unified Directory - Version 11.1.2.2.0 and later
Oracle Directory Server Enterprise Edition - Version 5.2 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 <HOSTNAME_WITH_UNDERSCORE_CHARACTER> \
  --adminConnectorPort <ADM_CONN_PORT> \
  --replicationPortForLegacy <REPL_LEGACY_PORT> \
  --rootUserDN cn=<DS_ADMIN> \
  --rootUserPasswordFile ****** \
  --baseDN <SUFFIX_DN> \
  --baseDN <SUFFIX_DN> \
  --hostNameLegacy <HOSTNAME_WITH_UNDERSCORE_CHARACTER> \
  --portLegacy <LEGACY_PORT> \
  --doNotUpdateTrustStoreWithLegacyCertsArg \
  --bindDNLegacy cn=<DS_ADMIN> \
  --bindPasswordFileLegacy ****** \
  --doNotMonitorUsingDsccLegacy \
  --hostNameNg <HOSTNAME_WITH_UNDERSCORE_CHARACTER> \
  --portNg <ADMIN_PORT> \
  --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:<ADM_CONN_PORT>,cn=Servers,cn=admin data'
If you want to report this error, provide the contents of file <RGW_DIR_PATH>/OUD/logs/oud-setup


The details in the oud-setup log show:

INFO: server: [DATE/TIMESTAMP] category=EXTENSIONS severity=INFORMATION msgID=1048797 msg=DIGEST-MD5 SASL mechanism using a server fully qualified domain name of: <IP_ADDR>
INFO: server: [DATE/TIMESTAMP] category=PROTOCOL severity=NOTICE msgID=2556180 msg=Started listening for new connections on Administration Connector 0.0.0.0 port <ADM_CONN_PORT>
INFO: server: [DATE/TIMESTAMP] category=CORE severity=NOTICE msgID=458887 msg=The Directory Server has started successfully
INFO: server: [DATE/TIMESTAMP] 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

<DATE/TIMESTAMP> com.sun.gateway.server.tools.setup.ReplicationGatewayInstaller configureNgServerAndADS
INFO: Configuring new generation server
<DATE/TIMESTAMP> com.sun.gateway.server.tools.setup.ReplicationGatewayInstaller closeConnection
INFO: Closing to connection to: null:-1
<DATE/TIMESTAMP> 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:<ADM_CONN_PORT>,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:<ADM_CONN_PORT>,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:<ADM_CONN_PORT>,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:<ADM_CONN_PORT>,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
<DATE/TIMESTAMP> com.sun.gateway.server.tools.setup.ReplicationGatewayInstaller closeConnection
INFO: Closing to connection to: null:-1

 

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


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