My Oracle Support Banner

Java.sql.SQLRecoverableException: IO Error: VC Socket Write And ORA-17002 When Running JDBC Application (Doc ID 2456956.1)

Last updated on APRIL 01, 2024

Applies to:

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

Symptoms

When running a JAVA application using Oracle JDBC, the following exception is reported:

IO Error: VC socket write failed with stack trace: java.sql.SQLRecoverableException: IO Error: VC socket write failed
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:752)
at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:656)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:501)
at java.sql.DriverManager.getConnection(DriverManager.java:633)
at java.sql.DriverManager.getConnection(DriverManager.java:185)


Caused by: java.net.SocketException: VC socket write failed
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at oracle.net.ns.DataPacket.send(DataPacket.java:209)
at oracle.net.ns.NetOutputStream.write(NetOutputStream.java:180)
at oracle.net.ns.NetOutputStream.write(NetOutputStream.java:136)
at oracle.net.ano.AnoComm.a(Unknown Source)
at oracle.net.ano.Ano.negotiation(Unknown Source)
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:293)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1452)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:496)


And When the following statement is run:


the below error is seen:

SQLState : 08006
Message : IO Error: send failed
Connection reset by peer
Error Code : ORA-17002



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.