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 with database connection
PostPosted: Wed Sep 29, 2004 4:46 am 

Joined: Thu Jun 03, 2004 5:47 am
Posts: 13
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




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:


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 !!

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.