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!

java.sql.SQLRecoverableException: IO Error: Connection reset

JC33Feb 22 2018 — edited Feb 23 2018

I have a simple JDBC test program, which connects to Oracle and select sysdate from dual.

The prgoram could run perfectly on my laptop but when I put it on a Oracle Linux server, I got the error.

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

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

...

I have try many ways as below but all in vain.

1) add parameter when startup

-Djava.security.egd=file:/dev/./urandom

2) change jre/lib/security/java.security

securerandom.source=file:/dev/./urandom

3)

rm /dev/random

ln -s /dev/urandom /dev/random

Any suggestions would be greatly appreciated.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 22 2018
Added on Feb 22 2018
0 comments
4,309 views