This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JDBC and the fly likes java.sql.SQLException: No more data to read from socket Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "java.sql.SQLException: No more data to read from socket" Watch "java.sql.SQLException: No more data to read from socket" New topic
Author

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

rajkiran vadla
Greenhorn

Joined: Nov 26, 2011
Posts: 11
Hi,

I am getting exception from the following code

exception:java.sql.SQLException: No more data to read from socket
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19679
    
  18

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
rajkiran vadla
Greenhorn

Joined: Nov 26, 2011
Posts: 11
Hi, thank you for your replay.

The exception is at line no 2.At DriverManager.getConnection
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19679
    
  18

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

Joined: Nov 26, 2011
Posts: 11


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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.sql.SQLException: No more data to read from socket