-->
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: calling query.list method seems to lockup
PostPosted: Thu May 21, 2009 8:37 am 
Newbie

Joined: Sat Jan 03, 2009 12:32 pm
Posts: 3
Hi,
I'm trying to call the query.list() method, which I do throughout my application, and it seems to work fine. However, in this one bit of code, it works fine for 2 or 3 times, and then seems to lock up for some reason. I can't tell where it's actually locking in the Hibernate code b/c I'm not sure what class is actually being used.

Code:
Session sess = hibernateTemplate.getSessionFactory().openSession();
Query q = sess.createSQLQuery("Select my.
* from ....")
        .addEntity("my", MyClass.class);
        ;
List<Object> objectArray = (List<Object>)q.list();
.....


This bit of code works fine, like I said, for a few times, but then it just hangs. Any suggestions? Also, which class should I be trying to step through in the debugger?


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.