• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.sql.SQLException: No more data to read from socket

 
rajkiran vadla
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am getting exception from the following code

exception:java.sql.SQLException: No more data to read from socket
 
Rob Spoor
Sheriff
Pie
Posts: 20555
57
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please UseCodeTags next time. It makes your code blocks easier to read.

What line does this SQL exception occur at? The stack trace will show you the file name and line number.
 
rajkiran vadla
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, thank you for your replay.

The exception is at line no 2.At DriverManager.getConnection
 
Rob Spoor
Sheriff
Pie
Posts: 20555
57
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are the Oracle server and JDBC driver compatible? I've seen one of the programs at work fail with a later JDBC driver where it worked just fine with an old driver, probably because our Oracle server is ancient (and no, we can't upgrade it; it's part of a third party solution).
 
rajkiran vadla
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Hi,Thank you for your repaly.
I made a mistake that i have choosen wrong SID .I have verifed it with tnsnames.ora file in ORACLE.I have modefied the SID It worked.


Thanks
Rajkiran
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic