Publish intermittently fails due to javax.naming.ServiceUnavailableException when querying LDAP (Doc ID 1467144.1)

Last updated on NOVEMBER 03, 2016

Applies to:

Oracle WebCenter Sites - Version 7.5.4 and later
Information in this document applies to any platform.
***Checked for relevance on 06-02-2014 ***

Symptoms

Publish intermittently fails due to this error in the logs on the target side:

javax.naming.CommunicationException: Connection timed out [Root exception is java.net.SocketException: Connection timed out]; remaining name 'ou=ACLs,dc=ABC,dc=MyCom'
at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1983)

and

2012-04-20 17:22:10,571 ERROR [com.fatwire.logging.cs.auth] - Exception thrown while logging user:fwadmin
com.openmarket.directory.DirectoryException: detail:javax.naming.ServiceUnavailableException: 192.168.1.123:389; socket closed; remaining name 'ou=USERS,dc=ABC,dc=MyCom'\nstack:javax.naming.ServiceUnavailableException: 192.168.1.123:389; socket closed; remaining name 'ou=USERS,dc=ABC,dc=MyCom'
at com.sun.jndi.ldap.Connection.readReply(Connection.java:423)
at com.sun.jndi.ldap.LdapClient.getSearchReply(LdapClient.java:611)
at com.sun.jndi.ldap.LdapClient.search(LdapClient.java:534)
at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1965)

Immediate republish usually succeeds.

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