IO Error: Got minus one from a read call When JDBC Client Tries To Connect To 12c Database With SSL and External User Identified By Certificates (Doc ID 2267774.1)

Last updated on MAY 18, 2017

Applies to:

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

Symptoms

On : 12.1.0.2.0 version, Thin JDBC driver


JDBC client is unable to connect to 12c database on SSL port. An external user identified by cert values is created and given create session privilege is created (database server configuration as described in <Document:1190873.1> How To Setup The Database And The Client To Have SSL Mutual Authentication With An Oracle Jdbc Thin Client And The Database). However, when the client tries to connect, the following error is raised:

Caused by: java.sql.SQLRecoverableException: IO Error: Got minus one from a read call
  at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:673)
  at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:715)
  at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:385)
  at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:30)
  at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:564)
   ... 28 more
Caused by: oracle.net.ns.NetException: Got minus one from a read call
  at oracle.net.ns.Packet.receive(Packet.java:314)
  at oracle.net.ns.NSProtocolStream.negotiateConnection(NSProtocolStream.java:153)
  at oracle.net.ns.NSProtocol.connect(NSProtocol.java:263)
  at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1360)
  at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:486)
  ... 33 more

Tnsping to SSL from server works fine.
TCP connections also work successfully.


At the time of the application exception, the listener.log shows the following errors:

TNS-12537: TNS:connection closed
TNS-12560: TNS:protocol adapter error
 TNS-00507: Connection closed
  IBM/AIX RISC System/6000 Error: 55: Operation now in progress
TNS-12561: TNS:unknown error


and the database alert.log shows:

TNS-12560: TNS:protocol adapter error
   ns secondary err code: 0
   nt main err code: 0
   nt secondary err code: 0
   nt OS err code: 0
Wed May 17 17:51:29 2017
opiodr aborting process unknown ospid (23199876) as a result of ORA-609

 


ERROR
-----------------------
Got minus one from a read call



STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1.Configure database server as described in <Document:1190873.1> How To Setup The Database And The Client To Have SSL Mutual Authentication With An Oracle Jdbc Thin Client And The Database?.
2. Try to establish a connection from JDBC using TCPS.



Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms