Hi folks,
Context -
Using Oracle 19c and 21c . Using OJDBC17.jar along with keyStore.jks and trustStore.jks in SSL Mode.
The installation is getting successful. However we are seeing some connection reset exceptions in the install logs.
Few notes to add -
- We have recently upgraded our env from JDK8 to JDK17.
- This exception scenario is not the case when I am using OJDBC8 or OJDBC11 jars in the exact same scenario.
- Also if we are using non-SSL mode, we are not getting these exceptions anywhere at all.
- I have checked this page - JDBC and UCP Downloads page | Oracle India , Here officially we don't have a OJDBC17.jar for either 19c or 21c. In 23ai, I see the jar, and it seems it is mentioned that it is backward compatible with 19c and 21c.
So I am not able to figure out how to get rid of these exceptions. Please help.
During installation of my application - we are seeing below exceptions -
Mar 18, 2025 10:03:06 PM oracle.jdbc.driver.PhysicalConnection connect
INFO: throwing
java.sql.SQLRecoverableException: ORA-17002: I/O error: Connection reset, connect lapse 2 ms., Authentication lapse 0 ms.
https://docs.oracle.com/error-help/db/ora-17002/
at oracle.jdbc.driver.T4CConnection.handleLogonIOException(T4CConnection.java:1674)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:1154)
at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:1189)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:106)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:895)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:702)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:681)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:190)
at util.frame.jdbc.ConnectionFactory.create(ConnectionFactory.java:304)
at util.frame.pool.Pool.<init>(Pool.java:182)
at util.frame.pool.PoolManager.createPool(PoolManager.java:80)
at util.frame.jdbc.ConnectionService.initializePool(ConnectionService.java:622)
at util.frame.jdbc.ConnectionService.initConnectionService(ConnectionService.java:170)
at util.frame.jdbc.ConnectionService.<clinit>(ConnectionService.java:77)
at util.frame.jdbc.JDBCService.getConnection(JDBCService.java:219)
at util.frame.jdbc.Conn.getConnection(Conn.java:64)
at kcapi.ValidateSystemPassphrase.getDBConnection(ValidateSystemPassphrase.java:54)
at kcapi.ValidateSystemPassphrase.getEncryptedKeyPassword(ValidateSystemPassphrase.java:90)
at kcapi.ValidateSystemPassphrase.validateSystemPassphrase(ValidateSystemPassphrase.java:151)
at utils.BaseCallableImpl.validateSystemPassphrase(BaseCallableImpl.java:137)
at module_loader.ServiceInstallDriver.doIt(ServiceInstallDriver.java:256)
at install.module_loader.ServiceInstallDriver.main(ServiceInstallDriver.java:55)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:575)
at install.module_loader.ServiceInstallBootstrapper.doIt(ServiceInstallBootstrapper.java:101)
at install.module_loader.ServiceInstallBootstrapper.main(ServiceInstallBootstrapper.java:44)
Caused by: java.io.IOException: Connection reset, connect lapse 2 ms., Authentication lapse 0 ms.
at oracle.jdbc.driver.T4CConnection.handleLogonIOException(T4CConnection.java:1669)
... 27 more
Caused by: java.io.IOException: Connection reset, connect lapse 2 ms.
at oracle.net.ns.NSProtocolNIO.negotiateConnection(NSProtocolNIO.java:264)
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:353)
at oracle.jdbc.driver.T4CConnection.connectNetworkSessionProtocol(T4CConnection.java:3462)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:1030)
... 26 more
Caused by: java.net.SocketException: Connection reset
at java.base/sun.nio.ch.SocketChannelImpl.throwConnectionReset(SocketChannelImpl.java:401)
at java.base/sun.nio.ch.SocketChannelImpl.blockingRead(SocketChannelImpl.java:1303)
at java.base/sun.nio.ch.SocketAdaptor$1.read(SocketAdaptor.java:194)
at oracle.net.nt.TimeoutSocketChannel.doBlockedRead(TimeoutSocketChannel.java:601)
at oracle.net.nt.TimeoutSocketChannel.read(TimeoutSocketChannel.java:537)
at oracle.net.ns.NSProtocolNIO.doSocketRead(NSProtocolNIO.java:1225)
at oracle.net.ns.NIOPacket.readNIOPacket(NIOPacket.java:437)
at oracle.net.ns.NSProtocolNIO.negotiateConnection(NSProtocolNIO.java:217)
... 29 more