My Oracle Support Banner

OID oiddiag Fails with: Error: java.sql.SQLException: Io exception: Got minus one from a read call or Error: java.sql.SQLRecoverableException: IO Error: Got minus one from a read call (Doc ID 1910842.1)

Last updated on JANUARY 08, 2024

Applies to:

Oracle Internet Directory - Version 10.1.4 and later
Information in this document applies to any platform.

Symptoms

Oracle Internet Directory (OID).

Connecting to the OID Database (DB) with oiddiag fails:

$ORACLE_HOME/ldap/bin/oiddiag collect_all=true

Enter fully domain-qualified database host name: <hostname>.<company>.com

Enter database listener port number: 389

Enter database service name(SERVICE_NAME in tnsnames.ora file): oiddb.<company>.com

Enter ODS DB user password: *
Now connecting to the Database

Error: java.sql.SQLException: Io exception: Got minus one from a read call

Or:

Error: java.sql.SQLRecoverableException: IO Error: Got minus one from a read call, connect lapse 7 ms., Authentication lapse 0 ms.
java.sql.SQLRecoverableException: IO Error: Got minus one from a read call, connect lapse 7 ms., Authentication lapse 0 ms.
       at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:794)
       at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:702)
       at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:39)
       at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:691)
       at java.sql.DriverManager.getConnection(DriverManager.java:664)
       at java.sql.DriverManager.getConnection(DriverManager.java:208)
       at oracle.ldap.oiddiag.DiagContext.setup(DiagContext.java:189)
       at oracle.ldap.oiddiag.Main.setup(Main.java:57)
       at oracle.ldap.oiddiag.Main.main(Main.java:43)
Caused by: java.io.IOException: Got minus one from a read call, connect lapse 7 ms., Authentication lapse 0 ms.
       at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:790)
       ... 8 more
Caused by: java.io.IOException: Got minus one from a read call, connect lapse 7 ms.
       at oracle.net.ns.NSProtocolNIO.negotiateConnection(NSProtocolNIO.java:138)
       at oracle.net.ns.NSProtocol.connect(NSProtocol.java:317)
       at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1438)
       at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:518)
       ... 8 more
Caused by: oracle.net.ns.NetException: Got minus one from a read call
       at oracle.net.ns.NIOHeader.readHeaderBuffer(NIOHeader.java:100)
       at oracle.net.ns.NIOPacket.readNIOPacket(NIOPacket.java:252)
       at oracle.net.ns.NSProtocolNIO.negotiateConnection(NSProtocolNIO.java:118)
       ... 11 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


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