-->
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.  [ 2 posts ] 
Author Message
 Post subject: hangs on a query
PostPosted: Thu May 05, 2005 3:15 pm 
Newbie

Joined: Thu May 05, 2005 3:10 pm
Posts: 1
Hello:

I'm running into trouble when I do the same query multiple times. It happens right before it actually runs the query:

2005-05-05 11:40:36,615 DEBUG [net.sf.hibernate.impl.BatcherImpl] - <about to open: 0 open PreparedStatements, 0 open ResultSets>

I get that in the log then it just hangs there and nothing happens. Am I configuing something wrong? The weird thing is that it works fine the first couple of times, but then after a few reloads it stops working.

Thanks in advance!


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 09, 2005 11:38 am 
Senior
Senior

Joined: Tue Feb 08, 2005 5:26 pm
Posts: 157
Location: Montréal, Québec - Canada
You did not post your complete stacktrace. It's hard to guess.

Are exceptions thrown?

If this is the case: The session should not be reused if an error occurs. It should be destroyed and further persistence calls should be made in a new session.

Or else, if you are using transactions, maybe you are creating write locks on your tables. Look on your table locking status.

Hope that helps.

_________________
Vincent Giguère
J2EE Developer


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