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