-->
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.  [ 8 posts ] 
Author Message
 Post subject: MySQL server shut down,then restart, should i restart JBoss?
PostPosted: Tue Mar 02, 2004 8:45 am 
Newbie

Joined: Mon Mar 01, 2004 11:36 pm
Posts: 6
Hibernate SessionFactory build from struts plugin using jndi DataSource


......
2004-03-02 18:03:31,896 ERROR [net.sf.hibernate.util.JDBCExceptionReporter] Could not execute query
java.sql.SQLException: Communication link failure: java.io.EOFException, underlying cause: null

** BEGIN NESTED EXCEPTION **

java.io.EOFException

STACKTRACE:

java.io.EOFException

.....


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 02, 2004 8:47 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
what connection are you using?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 02, 2004 8:48 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
excuse, what connection pool are you using?


Top
 Profile  
 
 Post subject: JBoss DataSource
PostPosted: Tue Mar 02, 2004 9:01 am 
Newbie

Joined: Mon Mar 01, 2004 11:36 pm
Posts: 6
I deployed a JBoss DataSource:

<jndi-name>quickstart</jndi-name>)

,in my hibernate.cfg.xml,

<property name="hibernate.connection.datasource">java:/quickstart</property>

and the struts HibernatePlugIn use this hibernate.cfg.xml to build the SessionFactory


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 02, 2004 9:06 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
have seen
http://www.hibernate.org/66.html?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 02, 2004 9:07 am 
Newbie

Joined: Mon Mar 01, 2004 11:36 pm
Posts: 6
I do shut down MySql server for some reason and restart it.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 02, 2004 9:08 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Add autoReconnect=true to the JDBC url


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 02, 2004 9:33 am 
Newbie

Joined: Mon Mar 01, 2004 11:36 pm
Posts: 6
yes,autoReconnect=true
thx


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 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.