This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes Connection Reset Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Connection Reset" Watch "Connection Reset" New topic
Author

Connection Reset

ganesan guna
Greenhorn

Joined: Jul 25, 2013
Posts: 1
Hi,

I am using sql server, jtds driver and java1.6.0_16

I want to execute query(Stored procedure) and write the data into a file.

I am executing stored procedure. It executed successfully and while iterating from result set object, it thrown exception "java.sql.SQLException: I/O Error: Connection reset"

Below is the Full Stack Trace :

Caused by: java.sql.SQLException: I/O Error: Connection reset
at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2277)
at net.sourceforge.jtds.jdbc.TdsCore.getNextRow(TdsCore.java:761)
at net.sourceforge.jtds.jdbc.JtdsResultSet.next(JtdsResultSet.java:593)
... 2 more
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.io.DataInputStream.readFully(Unknown Source)
at net.sourceforge.jtds.jdbc.SharedSocket.readPacket(SharedSocket.java:860)
at net.sourceforge.jtds.jdbc.SharedSocket.getNetPacket(SharedSocket.java:707)
at net.sourceforge.jtds.jdbc.ResponseStream.getPacket(ResponseStream.java:466)
at net.sourceforge.jtds.jdbc.ResponseStream.read(ResponseStream.java:103)
at net.sourceforge.jtds.jdbc.ResponseStream.readInt(ResponseStream.java:320)
at net.sourceforge.jtds.jdbc.TdsData.readData(TdsData.java:652)
at net.sourceforge.jtds.jdbc.TdsCore.tdsRowToken(TdsCore.java:2968)
at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2236)

Please Note : While using java 1.5 it works successfully.

Please help me

Regards,
Ganesan

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connection Reset