File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Connection Reset" Watch "Connection Reset" New topic

Connection Reset

ganesan guna

Joined: Jul 25, 2013
Posts: 1

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(
at net.sourceforge.jtds.jdbc.TdsCore.getNextRow(
... 2 more
Caused by: Connection reset
at Source)
at Source)
at net.sourceforge.jtds.jdbc.SharedSocket.readPacket(
at net.sourceforge.jtds.jdbc.SharedSocket.getNetPacket(
at net.sourceforge.jtds.jdbc.ResponseStream.getPacket(
at net.sourceforge.jtds.jdbc.ResponseStream.readInt(
at net.sourceforge.jtds.jdbc.TdsData.readData(
at net.sourceforge.jtds.jdbc.TdsCore.tdsRowToken(
at net.sourceforge.jtds.jdbc.TdsCore.nextToken(

Please Note : While using java 1.5 it works successfully.

Please help me


I agree. Here's the link:
subject: Connection Reset
It's not a secret anymore!