This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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 Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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!