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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Getting IO Error: NL Exception was generated While connect DB through JAVA program

Debasis MallickNov 18 2022

Hi All,
While connecting DB with SSL enabled connection through one sample java program we are getting below error but while do tnsping to new SSL enabled connection it works with out any issue. I had attached the sample java(DataSourceForJKS.txt) program which I used to test the connectivity.
Otherwise do anyone have any reference for sample JAVA code to test the SSL connection it will be helpful.
Exception in thread "main" java.sql.SQLRecoverableException: IO Error: NL Exception was generated
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:673)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:715)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:385)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:30)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:564)
at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:303)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:230)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:175)
at DataSourceForJKS.main(DataSourceForJKS.java:71)
Thanks,
Debasis
DataSourceForJKS.txt (4.45 KB)

Comments

Post Details

Added on Nov 18 2022
2 comments
6,119 views