JDBC SSL Connections Fail With Invalid Packet Lenght Exception After Applying Database Patchsets or PSUs
(Doc ID 1666740.1)
Last updated on JANUARY 04, 2023
Applies to:
JDBC - Version 11.2.0.1.0 to 11.2.0.2.0 [Release 11.2]Information in this document applies to any platform.
Symptoms
Tests with JDBC SSL and ASO connections are tested as per <Document:1124286.1> Minimal Configuration for encryption-only SSL using JDBC/thin .
JDBC SSL connections and ASO connections fail with the below exception:
Exception in thread "main" java.sql.SQLRecoverableException: IO Error: Invalid Packet Lenght
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:419)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:538)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:228)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
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 SSLTest.getConnection(SSLTest.java:21)
at SSLTest.main(SSLTest.java:7)
Caused by: oracle.net.ns.NetException: Invalid Packet Lenght
at oracle.net.ns.Packet.processHeader(Packet.java:372)
at oracle.net.ns.Packet.receive(Packet.java:304)
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:295)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1056)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:308)
The problem is encountered when using JDBC driver versions 11.2.0.1 and 11.2.0.2.
Changes
Applying Database Patchset or Patch Set Updates (PSUs) to the Oracle Database.
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 |