troubleshooting Question

Connecting to oracle 19c through java application facing this issue java.sql.SQLException: Io exception: NL Exception

Avatar of srikotesh
srikotesh asked on
Oracle DatabaseJava
12 Comments1 Solution18 ViewsLast Modified:
Hi Experts,
I am trying to connect oracle19c database through java application.
facing below error.

java.sql.SQLException: Io exception: NL Exception was generated

i am framing jdbc url like as below:
String jdbcurl = "jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=ValidHost)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME =ValidServicename)(SERVER = DEDICATED)))";
used ojdbc7.jar,java7 version
Please suggest what will be the issue.
Note:
i am able to connect with the same details to sql developer.
problem while connecting from application only.


Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 12 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros