JDBC Thin Driver Connection Via OID (LDAPS) Fails With Null Pointer Exception
(Doc ID 1664857.1)
Last updated on OCTOBER 17, 2022
Applies to:
JDBC - Version 10.2.0.1 and laterInformation in this document applies to any platform.
Symptoms
JDBC thin driver connections via Oracle Internet Directory (OID) using LDAPS connect string:
fail with the below error:
Exception in thread "main" java.lang.NullPointerException
at oracle.net.jndi.JndiAttrs.getAttrs(JndiAttrs.java:215)
at oracle.net.resolver.AddrResolution.<init>(AddrResolution.java:209)
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:206)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1360)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:486)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:711)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:385)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:30)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:558)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at LDAPLookupJDBCTestSSL.<init>(LDAPLookupJDBCTestSSL.java:42)
at LDAPLookupJDBCTestSSL.main(LDAPLookupJDBCTestSSL.java:84)
Changes
Upgrade in OID Server from 11.1.1.2 to 11.1.1.7
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 |