-->
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.  [ 1 post ] 
Author Message
 Post subject: PROBLEM: Timeout connection on pool connection to dbms
PostPosted: Mon Jul 24, 2006 6:07 am 
Newbie

Joined: Mon Jul 24, 2006 5:44 am
Posts: 1
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
2

Name and version of the database you are using:
MySQL 4.1 server

Full stack trace of any exception that occurs:
net.sf.hibernate.exception.GenericJDBCException: Could not execute query
net.sf.hibernate.TransactionException: Rollback failed with SQL exception:
stepHOME: lettura
16:26:43,049 INFO [ConfigLoader ] Using cache engine: net.jforum.cache.DefaultCacheEngine
16:26:46,434 INFO [FileMonitor ] Watching C:\Programmi\Apache Software Foundation\Tomcat 5.5\webapps\ROOT/WEB-INF/config/languages/en_US.properties
16:26:46,675 INFO [FileMonitor ] Watching C:\Programmi\Apache Software Foundation\Tomcat 5.5\webapps\ROOT/WEB-INF/config/database/generic/generic_queries.sql
16:26:46,675 INFO [FileMonitor ] Watching C:\Programmi\Apache Software Foundation\Tomcat 5.5\webapps\ROOT/WEB-INF/config/database/mysql/mysql.sql
16:26:46,715 INFO [FileMonitor ] Watching C:\Programmi\Apache Software Foundation\Tomcat 5.5\webapps\ROOT/WEB-INF/config/SystemGlobals.properties
17:07:36,367 WARN [ForumSessionListener] java.sql.SQLException: Server connection failure during transaction. Due to underlying exception: 'java.net.SocketException: java.net.ConnectException: Connection refused: connect'.

** BEGIN NESTED EXCEPTION **

java.net.SocketException
MESSAGE: java.net.ConnectException: Connection refused: connect

STACKTRACE:

java.net.SocketException: java.net.ConnectException: Connection refused: connect
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:151)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:280)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:1886)
at com.mysql.jdbc.Connection.<init>(Connection.java:430)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:268)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at net.jforum.SimpleConnection.getConnection(SimpleConnection.java:91)
at net.jforum.SessionFacade.storeSessionData(SessionFacade.java:263)
at net.jforum.ForumSessionListener.sessionDestroyed(ForumSessionListener.java:76)
at org.apache.catalina.session.StandardSession.expire(StandardSession.java:687)
at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:579)
at org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:678)
at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:663)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1284)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1569)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1558)
at java.lang.Thread.run(Unknown Source)


** END NESTED EXCEPTION **


Attempted reconnect 3 times. Giving up.
17:07:36,367 INFO [SessionFacade ] Removing session EFBEF5AA0F68D172C85BE7ADBE08F483

I start Tomcat and after 8-9 hours I see this error on logs of server.
I think a problem was a timeout, but I don't say if hibernate have a timeout connection on pool connection to dbms.
I hope you replay me with a solution
Thanks
TonyTLC


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

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.