Hibernate version: 2.0.3
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
2004-09-29 08:47:19,353 DEBUG [net.sf.hibernate.transaction.JDBCTransaction] begin
2004-09-29 08:47:19,354 DEBUG [net.sf.hibernate.impl.SessionImpl] loading [org.jboss.nukes.core.themes.themeAlter.Image#1]
2004-09-29 08:47:19,354 DEBUG [net.sf.hibernate.impl.SessionImpl] attempting to resolve [org.jboss.nukes.core.themes.themeAlter.Image#1]
2004-09-29 08:47:19,354 DEBUG [net.sf.hibernate.impl.SessionImpl] resolved object in session cache [org.jboss.nukes.core.themes.themeAlter.Image#1]
2004-09-29 08:47:19,354 DEBUG [net.sf.hibernate.transaction.JDBCTransaction] commit
2004-09-29 08:47:19,354 DEBUG [net.sf.hibernate.impl.SessionImpl] flushing session
2004-09-29 08:47:19,354 DEBUG [net.sf.hibernate.impl.SessionImpl] Flushing entities and processing referenced collections
2004-09-29 08:47:19,354 DEBUG [net.sf.hibernate.impl.SessionImpl] Processing unreferenced collections
2004-09-29 08:47:19,354 DEBUG [net.sf.hibernate.impl.SessionImpl] Scheduling collection removes/(re)creates/updates
2004-09-29 08:47:19,354 DEBUG [net.sf.hibernate.impl.SessionImpl] Flushed: 0 insertions, 0 updates, 0 deletions to 23 objects
2004-09-29 08:47:19,354 DEBUG [net.sf.hibernate.impl.SessionImpl] Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
2004-09-29 08:47:19,354 DEBUG [net.sf.hibernate.impl.SessionImpl] executing flush
2004-09-29 08:47:19,354 DEBUG [net.sf.hibernate.impl.SessionImpl] post flush
2004-09-29 08:47:19,378 ERROR [net.sf.hibernate.transaction.JDBCTransaction] Commit failed
java.sql.SQLException: Communication link failure: java.io.EOFException, underlying cause: null
** BEGIN NESTED EXCEPTION **
java.io.EOFException
STACKTRACE:
java.io.EOFException
at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1319)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:1463)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1854)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1109)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1203)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1164)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2087)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2049)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2030)
at com.mysql.jdbc.Connection.commit(Connection.java:1105)
at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:59)
at org.jboss.nukes.core.themes.themeAlter.AccesBD.chargementImage(AccesBD.java:134)
.......
Name and version of the database you are using:MySQL 4.0
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Hi,
There is my problem :
I use Nukes 1.0
Hibernate 2.0.3 to manage persistence
and MySQL 4.0
After a time I have the error message and I can't accede to my database....
First, I thank that Hibernate had a timeout but, apparently by defautl there isn't a timeout. So I don't think that Hibernate close me the connection..
Someone can help me and tell me why the communication link fail !!??
Thank for your help !!
|