OID 11g DIP in HA: Connection Refused Error from DIP to OID on One of the Servers | Root exception is java.net.ConnectException: Connection refused

(Doc ID 1994322.1)

Last updated on MARCH 08, 2017

Applies to:

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

Symptoms

Oracle Internet Directory (OID) 11g with Directory Integration Platform (DIP) installed as High Availability (HA) Deployment.

Using dipStatus shows "Connection Refused" error on one of the nodes.

Also, dipStatus shows that ODIP is down on that server:

$ORACLE_HOME/bin/dipStatus -h oidhost1.mycompany.com -p 7005 -D weblogic
[Weblogic user password]
Connection parameters initialized.
Connecting at oidhost1.mycompany.com:7005, with userid "weblogic"..
Connected successfully.

ODIP Application is down at this host and port.

  
And Quartz Scheduler and MBeans shows down on the Enterprise Manager (EM) console.

Potential DIP log error:

[2015-03-29T09:08:24.677-05:00] [wls_ods1] [ERROR] [] [oracle.dip] [tid: AD2OID] [userId: <anonymous>] [ecid: 0000KgwBr_74ulIaypYfMG1KmxBB000002,0] [APP: DIP#11.1.1.2.0] Connection to LDAP server failed - Check configuration of DIP server.
[2015-03-29T09:08:24.677-05:00] [wls_ods1] [ERROR] [] [oracle.dip] [tid: AD2OID] [userId: <anonymous>] [ecid: 0000KgwBr_74ulIaypYfMG1KmxBB000002,0] [APP: DIP#11.1.1.2.0] Directory Integration Platform is not able to get the context with the given details : OID host: oidhost1.mycompany.com Port: 3131 SSL mode:1.
[2015-03-29T09:08:24.678-05:00] [wls_ods1] [ERROR] [DIP-10534] [oracle.dip] [tid: AD2OID] [userId: <anonymous>] [ecid: 0000KgwBr_74ulIaypYfMG1KmxBB000002,0] [APP: DIP#11.1.1.2.0] Error in completing one iteration of synchronization profile.[[
java.rmi.RemoteException: EJB Exception: ; nested exception is:
javax.naming.CommunicationException: oidhost1.mycompany.com:3131 [Root exception is java.net.ConnectException: Connection refused]
at weblogic.ejb.container.internal.EJBRuntimeUtils.throwRemoteException(EJBRuntimeUtils.java:108)
at weblogic.ejb.container.internal.BaseRemoteObject.handleSystemException(BaseRemoteObject.java:857)
at weblogic.ejb.container.internal.BaseRemoteObject.handleSystemException(BaseRemoteObject.java:809)
at weblogic.ejb.container.internal.BaseRemoteObject.postInvoke1(BaseRemoteObject.java:518)
at weblogic.ejb.container.internal.StatelessRemoteObject.postInvoke1(StatelessRemoteObject.java:49)
at weblogic.ejb.container.internal.BaseRemoteObject.__WL_postInvokeTxRetry(BaseRemoteObject.java:444)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:53)
at oracle.ldap.odip.web.DIPSync_2r3ocw_EOImpl.initialize(Unknown Source)
at oracle.ldap.odip.web.SyncQuartzJobImpl.execute(SyncQuartzJobImpl.java:175)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: javax.naming.CommunicationException: oidhost1.mycompany.com:3131 [Root exception is java.net.ConnectException: Connection refused]
at com.sun.jndi.ldap.Connection.<init>(Connection.java:214)
at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:136)
at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1600)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2698)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:316)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:193)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:211)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:154)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:84)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)
at javax.naming.InitialContext.init(InitialContext.java:242)
at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:153)
at oracle.ldap.odip.util.DirUtils.getInitialLdapContext(DirUtils.java:378)
at oracle.ldap.odip.util.DirUtils.getOIDContext(DirUtils.java:222)
at oracle.ldap.odip.web.DIPSyncBean.initialize(DIPSyncBean.java:234)
at oracle.ldap.odip.web.DIPSync_2r3ocw_EOImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
... 4 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:407)
at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:88)
at oracle.ldap.odip.util.DIPSSLSocketFactory.createSocket(DIPSSLSocketFactory.java:124)
at sun.reflect.GeneratedMethodAccessor254.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.jndi.ldap.Connection.createSocket(Connection.java:331)
at com.sun.jndi.ldap.Connection.<init>(Connection.java:201)
... 21 more

]]

  

Changes


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