My Oracle Support Banner

11.2 JDBC/Thin cannot Connect with SSL to 10g Database (Doc ID 1089763.1)

Last updated on NOVEMBER 22, 2023

Applies to:

JDBC - Version 11.2.0.1.0 and later
Information in this document applies to any platform.

Symptoms

JDBC/thin driver version 11.2 cannot connect with SSL to a 10g database ( i.e. prior to 11g).  The following exception is thrown when trying to connect:

java.sql.SQLException: Got minus one from a read call
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:412)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:531)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:221)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:280)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:207)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:157)
at testcase.CallableTCPS.main(CallableTCPS.java:159)
Caused by: oracle.net.ns.NetException: Got minus one from a read call
at oracle.net.ns.Packet.receive(Packet.java:285)
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:286)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1042)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:301)
... 8 more


on serverside the listener.log contains the following error:
27-APR-2010 10:59:14 * <unknown connect data> * (ADDRESS=(PROTOCOL=tcps)(HOST=X.X.X.X)(PORT=54729)) * establish * <unknown sid> * 12525
TNS-12525: TNS:listener has not received client's request in time allowed
TNS-12535: TNS:operation timed out
TNS-12606: TNS: Application timeout occurred


when enabling listener tracing the following errors are seen:
nscon: got NSPTCN packet
nsconneg: entry
nsconneg: vsn=310, lov=300, opt=0x40, sdu=8192, tdu=32767, ntc=0x4f98
nserror: entry
nserror: nsres: id=6, op=79, ns=12564, ns2=12619; nt[0]=0, nt[1]=0, nt[2]=0; ora[0]=0, ora[1]=0, ora[2]=0
nsconneg: error exit
nserror: entry

Changes

upgrade to JDBC 11.2

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

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.