-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Communication link failure
PostPosted: Tue Feb 03, 2004 8:01 am 
Newbie

Joined: Mon Oct 27, 2003 11:50 am
Posts: 2
i made a Struts/hibernate Application which uses a mySQL Database. Everthing
works fine. But after about 24 hours there occurs an exception on the
Server where the Aplication is running:

Code:
09:18:42,149 DEBUG JDBCExceptionReporter:36 - SQL Exception
java.sql.SQLException: Communication link failure: java.net.SocketException, underlying cause: Connection reset

** BEGIN NESTED EXCEPTION **

java.net.SocketException
MESSAGE: Connection reset

STACKTRACE:

java.net.SocketException: Connection reset
   at java.net.SocketInputStream.read(SocketInputStream.java:168)
   at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
   at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
   at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:1449)
   at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1826)
   at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1098)
   at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1192)
   at com.mysql.jdbc.Connection.execSQL(Connection.java:2051)
   at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1496)
   at net.sf.hibernate.impl.BatcherImpl.getResultSet(BatcherImpl.java:83)
   at net.sf.hibernate.loader.Loader.getResultSet(Loader.java:794)
   at net.sf.hibernate.loader.Loader.doQuery(Loader.java:188)
   at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:132)
   at net.sf.hibernate.loader.Loader.doList(Loader.java:949)
   at net.sf.hibernate.loader.Loader.list(Loader.java:940)
   at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:833)
   at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1475)
   at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1454)
   at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1446)



Can somebody help me with this?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 03, 2004 8:23 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Use autoReconnect=true in your jdbc url or use the validate parameters of DBCP or c3po. Read your driver docs or search the forum, this has allready been discussed.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.