Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Exception in thread "main" java.sql.SQLRecoverableException: IO Error: Connection reset

Umamaheswararaom-OracleAug 4 2014 — edited Oct 15 2014

Hello,


I am getting this error from a simple JDBC program in one of the Linux VM machine, it used to work but suddenly stopped working and giving the below error. I am able to run same program from another VM without any issues. I followed all posts in the internet(setting to urandom etc), but none worked for me. It is very critical and can some one help me in resolving this issue.


Exception in thread "main" java.sql.SQLRecoverableException: IO Error: Connection reset

at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:428)

at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:536)

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 java.sql.DriverManager.getConnection(DriverManager.java:582)

at java.sql.DriverManager.getConnection(DriverManager.java:185)

at TestThinJDBCOracle.main(TestThinJDBCOracle.java:21)

Caused by: java.net.SocketException: Connection reset

at java.net.SocketInputStream.read(SocketInputStream.java:168)

at oracle.net.ns.Packet.receive(Packet.java:283)

at oracle.net.ns.DataPacket.receive(DataPacket.java:103)

at oracle.net.ns.NetInputStream.getNextPacket(NetInputStream.java:230)

at oracle.net.ns.NetInputStream.read(NetInputStream.java:175)

at oracle.net.ns.NetInputStream.read(NetInputStream.java:100)

at oracle.net.ns.NetInputStream.read(NetInputStream.java:85)

at oracle.jdbc.driver.T4CSocketInputStreamWrapper.readNextPacket(T4CSocketInputStreamWrapper.java:123)

at oracle.jdbc.driver.T4CSocketInputStreamWrapper.read(T4CSocketInputStreamWrapper.java:79)

at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:1122)

at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:1099)

at oracle.jdbc.driver.T4C8TTIdty.receive(T4C8TTIdty.java:668)

at oracle.jdbc.driver.T4C8TTIdty.doRPC(T4C8TTIdty.java:575)

at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1118)

at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:308)

... 7 more



Thanks,

Uma

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 1 2014
Added on Aug 4 2014
2 comments
560 views