Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Connection Reset  RSS feed

ganesan guna
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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


  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!