-->
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.  [ 6 posts ] 
Author Message
 Post subject: session.flush hangs
PostPosted: Thu Jan 15, 2004 4:30 pm 
Beginner
Beginner

Joined: Tue Jan 06, 2004 4:51 pm
Posts: 48
Hi,

I'm using struts-faces with tomcat. After I do a saveOrUpdate on a persistent object, I try to do

session.flush();

but the request just hangs and times out at that line.

Any ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 15, 2004 4:44 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Some locking issue in the DB? Please show your code, and if possible the exception generated sometimes (if there is one)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 15, 2004 4:50 pm 
Beginner
Beginner

Joined: Tue Jan 06, 2004 4:51 pm
Posts: 48
Hi,

There is no exception thrown, which is what's frustrating.

the code is simple:
Code:
                    log.debug("saveOrUpdate" + te.getId());
                    session.saveOrUpdate(te);
                    //log.debug("flushing" + te.getId());
                    //session.flush();
                    log.debug("done flushing" + te.getId());


(i've commented out the session.flush)

I'm also using the Struts plugin provided in the community area, btw, and that's where the session comes from.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 15, 2004 4:58 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Use a debugger to step into the hibernate code and see where it hangs. I really suspect a DB locking issue.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 15, 2004 5:34 pm 
Beginner
Beginner

Joined: Tue Jan 06, 2004 4:51 pm
Posts: 48
Hi,

Which do you suggest? Can I use it with Tomcat/struts/faces?

Thanks for your input.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 15, 2004 6:39 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Personally I use the eclipse debugger which is great. You can use http://www.sysdeo.com/eclipse/tomcatPlugin.html to integrate Tomcat with Eclipse and debug your servlets, actions, etc.


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