My Oracle Support Banner

JDBC Connection Fails With SEVERE: IO Error: Connection Reset By Peer, Connect Lapse 1 Ms., Authentication Lapse 0 Ms. (Doc ID 2747530.1)

Last updated on FEBRUARY 01, 2021

Applies to:

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

Symptoms



JDBC connection with TCPS from Orcle Enterprise Manager fails with IO error:

SEVERE: IO Error: Connection reset by peer, connect lapse 1 ms., Authentication lapse 0 ms.
oracle.sysman.assistants.common.dbutil.SQLFatalErrorException: IO Error: Connection reset by peer, connect lapse 1 ms., Authentication lapse 0 ms.
at oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.connect(JDBCEngine.java:656)
at oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.connect(JDBCEngine.java:629)
at oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.main(JDBCEngine.java:2877

SQL*Plus connection with the same connection string works successfully.

From a standalone JDBC program, the same connection fails with:


SQL Exception occurred:
java.sql.SQLRecoverableException: IO Error: Connection reset
       at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:752)
       at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:666)
       at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
       at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:566)
       at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:317)
       at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:241)
       at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:184)
       at JDBCSSLTester.getConnection(JDBCSSLTester.java:79)
       at JDBCSSLTester.run(JDBCSSLTester.java:39)
       at JDBCSSLTester.main(JDBCSSLTester.java:93)
Caused by: java.net.SocketException: Connection reset
       at java.net.SocketInputStream.read(SocketInputStream.java:210)
       at java.net.SocketInputStream.read(SocketInputStream.java:141)
       at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
       at sun.security.ssl.InputRecord.read(InputRecord.java:503)
       at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:975)
       at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1367)
       at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:750)
       at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123)
       at oracle.net.ns.Packet.send(Packet.java:419)
       at oracle.net.ns.ConnectPacket.send(ConnectPacket.java:241)
       at oracle.net.ns.NSProtocolStream.negotiateConnection(NSProtocolStream.java:157)
       at oracle.net.ns.NSProtocol.connect(NSProtocol.java:264)
       at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1452)
       at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:496)
       ... 9 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
References


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