Unconnected sockets not implemented Exception Using LDAP Connection Timeout with JDBC Driver
(Doc ID 2654476.1)
Last updated on NOVEMBER 12, 2021
Applies to:
JDBC - Version 18.0.0.0.0 and laterInformation in this document applies to any platform.
Symptoms
When using JDBC 19.3 driver version and ldap connection URL with a TCP connect timeout, the driver is unable to connect and throws the below stacktrace.
props.setProperty("com.sun.jndi.ldap.connect.timeout", "1000");
Exception
----------------
Caused by: java.net.SocketException: Unconnected sockets not implemented
at javax.net.SocketFactory.createSocket(SocketFactory.java:125)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
....
Caused by: java.lang.UnsupportedOperationException
at javax.net.SocketFactory.createSocket(SocketFactory.java:123)
... 32 more
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 |
References |