File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Strange DB Errors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Strange DB Errors" Watch "Strange DB Errors" New topic
Author

Strange DB Errors

John Lark
Ranch Hand

Joined: Feb 08, 2010
Posts: 72
Hey Guys,

When I start my Web Application and attempt to connect to the database I get the following errors repeatedly in the stdout, but the database still seems to function as I can connect to the webapplication using a password within my database. What is causing theres errors. I am pointing at an F5 which is pointing me back at my local database. The point of this is going to be for eventually having a mirrored database to fall back to. Any idea what is causing these errors?

Thanks

Caused by: java.net.SocketException: Connection reset
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:765)
at net.sourceforge.jtds.jdbc.SharedSocket.getNetPacket(SharedSocket.java:639)
at net.sourceforge.jtds.jdbc.ResponseStream.getPacket(ResponseStream.java:406)
at net.sourceforge.jtds.jdbc.ResponseStream.read(ResponseStream.java:100)
at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2098)

va.sql.SQLException: I/O Error: Connection reset
at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2203)
at net.sourceforge.jtds.jdbc.TdsCore.login(TdsCore.java:559)
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:324)
at net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(ConnectionJDBC3.java:50)
at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:178)
at net.sourceforge.jtds.jdbcx.JtdsDataSource.getConnection(JtdsDataSource.java:246)
at net.sourceforge.jtds.jdbcx.JtdsDataSource.getConnection(JtdsDataSource.java:122)


java.sql.SQLException: I/O Error: Connection reset by peer: socket write error
at net.sourceforge.jtds.jdbc.TdsCore.login(TdsCore.java:571)
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:324)
at net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(ConnectionJDBC3.java:50)
at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:178)
at net.sourceforge.jtds.jdbcx.JtdsDataSource.getConnection(JtdsDataSource.java:246)

Caused by: java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.net.SocketOutputStream.write(Unknown Source)
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19685
    
  20

Seems like you have a network connection problem between your two servers.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
John Lark
Ranch Hand

Joined: Feb 08, 2010
Posts: 72
Ha forgot to come back to this, that's what it turned out to be! Thanks!
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19685
    
  20

You're welcome.
 
Consider Paul's rocket mass heater.
 
subject: Strange DB Errors