This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes connectivity problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "connectivity problem " Watch "connectivity problem " New topic
Author

connectivity problem

salil misra
Greenhorn

Joined: Jun 24, 2008
Posts: 5
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

Joined: May 08, 2007
Posts: 621
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

Joined: Mar 06, 2001
Posts: 13459

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

Joined: Apr 14, 2004
Posts: 10336


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.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: connectivity problem
 
Similar Threads
MicroSoft 2000 SQL Server - recv failed problem
rmi unmarshalexception
java.sql.SQLException: I/O Error: DB server closed connection.
Strange DB Errors
: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0