-->
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: Application locks on opening JDBC Connection
PostPosted: Fri Jun 10, 2005 7:42 am 
Newbie

Joined: Wed Nov 03, 2004 8:32 am
Posts: 3
Hibernate version: 3.0

Name and version of the database you are using: Firebird v. 1.5.2

Hello.

My application blocks after severel runs. I don't know why. The log4j output for hibernate (debug level) is:
14:03:53,515 DEBUG SessionImpl: iterate:
FROM DailyTimetable d
ORDER BY d.dataCurenta DESC

14:03:53,515 DEBUG QueryParameters: named parameters: {}
14:03:53,515 DEBUG QueryTranslatorImpl: compile() : The query is already compiled, skipping...
14:03:53,515 DEBUG AbstractBatcher: about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
14:03:53,515 DEBUG AbstractBatcher: opening JDBC connection.

What's the cause for my problem?

Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 10, 2005 8:29 am 
Newbie

Joined: Wed Nov 03, 2004 8:32 am
Posts: 3
I have debug HIbernate and I identified the line with problem - is the first line in this method - ds.getConnection():

public Connection getConnection() throws SQLException {
final Connection c = ds.getConnection();
if (isolation!=null) c.setTransactionIsolation( isolation.intValue() );
if ( c.getAutoCommit()!=autocommit ) c.setAutoCommit(autocommit);
return c;
}


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.