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: Hibernate connection problems
PostPosted: Thu Nov 25, 2010 11:42 am 
Newbie

Joined: Thu Nov 25, 2010 11:18 am
Posts: 1
Hi guys
I'm new at this forum, hope this is the right place to post my issues... ;-)

I have made a website with this tools:

Flex Builder 3.2
Hibernate 3
spring
MySQL 5.0.51-a

And this is my problem:
Everything works fine after rebooting the webserver. But just for some hours. After about 8 hours every access to the DB ends up with this error:

Code:
[RPC Fault faultString="org.hibernate.exception.JDBCConnectionException : could not execute query" faultCode="Server.Processing" faultDetail="null"]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at NetConnectionMessageResponder/statusHandler()
at mx.messaging::MessageResponder/status()


I think the problem is, that mySQL disconnects the hibernate-session. Maby this is because of my code...
I always get the hibernate-session like this:
Code:
SessionFactory sessionFactory = HibernateUtil.getSessionFactory();
      Session sess = sessionFactory.getCurrentSession();


And I never close the session... -> that's how i learned it in a book... so...
take a look at the whole source code at http://www.behindyoursmile.ch right mouse button -> view source...
my hibernate implementation you will find here -> src>bys>data>dao>BehindYourSmileDaoImplHibernate.java

hope anybody can help me...
thanks in advance...

best regards


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.