This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 19651
    
  18

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: 19651
    
  18

You're welcome.
 
jQuery in Action, 2nd edition
 
subject: Strange DB Errors
 
Similar Threads
connectivity problem
java.sql.SQLException: I/O Error: DB server closed connection.
Faint, failure to connect ms sqlserver with jtds
ClassNotFoundException
pooled datasource configuration sql server