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)