Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connectivity problem

 
salil misra
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi !!! friends i m new here can someone please help me out with a problem of mine actually i m using ms sql server 2000 personal edition alongwith jtds drivers in order to connect using core java i m not able to resolve a issue the error at console goes as

java.sql.SQLException: I/O Error: Software caused connection abort: recv failed
at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2307)
at net.sourceforge.jtds.jdbc.TdsCore.login(TdsCore.java:602)
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java :344)
at net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(ConnectionJDBC3.java :50)
at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:182)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at Connect.getConnection(Connect.java:25)
at Connect.displayDbProperties(Connect.java:42)
at Connect.main(Connect.java:78)
Caused by: java.net.SocketException: Software caused connection abort: recv fail ed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.DataInputStream.readFully(Unknown Source)
at java.io.DataInputStream.readFully(Unknown Source)
at net.sourceforge.jtds.jdbc.SharedSocket.readPacket(SharedSocket.java:8 41)
at net.sourceforge.jtds.jdbc.SharedSocket.getNetPacket(SharedSocket.java :722)
at net.sourceforge.jtds.jdbc.ResponseStream.getPacket(ResponseStream.jav a:466)
at net.sourceforge.jtds.jdbc.ResponseStream.read(ResponseStream.java:103 )
at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2202) ... 9 more Error Trace in getConnection() : I/O Error: Software caused connection abort: re cv failed Error: No active Connection

PLEASE DO HELP ME OUT I M AT A GREAT FIX AND UNABLE TO RESOLVE THIS ISSUE I HAVE BEEN TRYING TO REMOVE THIS ERROR FROM MONTHS CAN SOMEBODY Please HELP ME OUT I WOULD BE HIGHLY OBLIGED

[Dave - formatted stack trace to make it readable]
[ June 24, 2008: Message edited by: David O'Meara ]
 
dhwani mathur
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

It will be better if you give us some more details or code
regarding your problem for connectivity,so that we can find where
the actualy SQLexception is occuring and what may be the reason
for the same.


Dhwani:>Winning is not important but it is the only thing.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check that you're using the most recent version of each. I have seen similar behaviour in other databases when there is a version mismatch
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Software caused connection abort

Also check you have enabled SQL Server to access TCP/IP connections, and check there is no firewall preventing you connecting.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic