ODSEE / DPS - Unable to Create a Connection to an LDAP Data Source due to a "java.net.SocketTimeoutException"
(Doc ID 1494743.1)
Last updated on JANUARY 30, 2023
Applies to:
Oracle Directory Server Enterprise Edition - Version 11.1.1.5.0 and laterInformation in this document applies to any platform.
Symptoms
DPS fails to create an initial pool of connections to an LDAP data source due to a connection timeout.
The following message will be written in the DPS errors log:
[19/Sep/2012:17:03:40 +0200] - CONN - WARN - Unable to create a connection to LDAP server <HOSTNAME:PORT>/Exception: Unable to perform SSL initialization on socket to <HOSTNAME:PORT> -- java.net.SocketTimeoutException
When the DEBUG log level is enabled, the full Java stack will look like:
25/Jun/2012:14:07:29 +0100] - EXCEPTION - DEBUG - Unable to perform SSL initialization on socket to <HOSTNAME:PORT> --
Exception thrown from thread main java.net.SocketTimeoutException sun.nio.ch.SocketAdaptor$SocketInputStream.read(SocketAdaptor.java:201)/ sun.nio.ch.ChannelInputStr
eam.read(ChannelInputStream.java:86)/ com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:293)/ com.sun.net.ssl.internal.ssl.InputRecord.read(InputRe
cord.java:331)/ com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:798)/ com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSL
SocketImpl.java:1138)/ com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1165)/ com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(
SSLSocketImpl.java:1149)/ com.sun.directory.proxy.server.LDAPServer.openSocket(LDAPServer.java:992)/ com.sun.directory.proxy.server.LDAPServer.openSocket(LDAPServer.
java:846)/ com.sun.directory.proxy.server.OpConnection.connect(OpConnection.java:169)/ com.sun.directory.proxy.server.MultiplexedOpConnectionV2.connect(MultiplexedOp
ConnectionV2.java:647)/ com.sun.directory.proxy.server.LDAPServer.createConnection(LDAPServer.java:1475)/ com.sun.directory.proxy.server.LDAPServer.createConnection(
LDAPServer.java:1409)/ com.sun.directory.proxy.server.LDAPServer.createPooledConnections(LDAPServer.java:1836)/ com.sun.directory.proxy.server.LDAPServer.initializeC
onnections(LDAPServer.java:4362)/ com.sun.directory.proxy.server.LDAPServer.start(LDAPServer.java:492)/ com.sun.directory.proxy.server.BackendServer.start(BackendSer
ver.java:69)/ com.sun.directory.proxy.server.BackendSet.start(BackendSet.java:246)/ com.sun.directory.proxy.server.DistributionServer.<init>(DistributionServer.java:
1827)/ com.sun.directory.proxy.server.DistributionServerMain.main(DistributionServerMain.java:211)/
Exception thrown from thread main java.net.SocketTimeoutException sun.nio.ch.SocketAdaptor$SocketInputStream.read(SocketAdaptor.java:201)/ sun.nio.ch.ChannelInputStr
eam.read(ChannelInputStream.java:86)/ com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:293)/ com.sun.net.ssl.internal.ssl.InputRecord.read(InputRe
cord.java:331)/ com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:798)/ com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSL
SocketImpl.java:1138)/ com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1165)/ com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(
SSLSocketImpl.java:1149)/ com.sun.directory.proxy.server.LDAPServer.openSocket(LDAPServer.java:992)/ com.sun.directory.proxy.server.LDAPServer.openSocket(LDAPServer.
java:846)/ com.sun.directory.proxy.server.OpConnection.connect(OpConnection.java:169)/ com.sun.directory.proxy.server.MultiplexedOpConnectionV2.connect(MultiplexedOp
ConnectionV2.java:647)/ com.sun.directory.proxy.server.LDAPServer.createConnection(LDAPServer.java:1475)/ com.sun.directory.proxy.server.LDAPServer.createConnection(
LDAPServer.java:1409)/ com.sun.directory.proxy.server.LDAPServer.createPooledConnections(LDAPServer.java:1836)/ com.sun.directory.proxy.server.LDAPServer.initializeC
onnections(LDAPServer.java:4362)/ com.sun.directory.proxy.server.LDAPServer.start(LDAPServer.java:492)/ com.sun.directory.proxy.server.BackendServer.start(BackendSer
ver.java:69)/ com.sun.directory.proxy.server.BackendSet.start(BackendSet.java:246)/ com.sun.directory.proxy.server.DistributionServer.<init>(DistributionServer.java:
1827)/ com.sun.directory.proxy.server.DistributionServerMain.main(DistributionServerMain.java:211)/
Changes
This issue might start to happen after an upgrade to DPS 11.1.1.5.0 or later.
In these versions, the default value of the DPS configuration attribute "backendMaxSocketWaitTimeInMilliSec" has decreased from 2000 ms to 200 ms.
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 |