-->
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.  [ 5 posts ] 
Author Message
 Post subject: "null" after session.flush
PostPosted: Wed Apr 19, 2006 5:21 pm 
Newbie

Joined: Wed Apr 19, 2006 3:03 pm
Posts: 3
I inherited an unwieldy app that uses hibernate. I can read data from the database (Oracle) but when I try to write (update), the code goes into session.flush and nevers returns (next line of code is not read and db is not updated). The hibernate message says simply "null".

The object is populated with the correct values and the hibernate sql (printed to the logs) works fine if I copy it into TOAD.

Anyone seen this?

Thanks.

Hibernate version:
hibernate 2.1

Name and version of the database you are using:
Oracle9

The generated SQL (show_sql=true):

Hibernate: update HS_GAME set name=? where game_id=?
[12:13:33.719] null


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 19, 2006 5:31 pm 
Expert
Expert

Joined: Tue Dec 07, 2004 6:57 am
Posts: 285
Location: Nürnberg, Germany
Could you please post logs at debug level.. this would help us a lot..

Cheers,
mike

_________________
Please don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 19, 2006 5:57 pm 
Newbie

Joined: Wed Apr 19, 2006 3:03 pm
Posts: 3
Unfortunately, the engineer who wrote the app didn't implemented logging. I'll take a stab at it and get back with more info.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 19, 2006 6:28 pm 
Beginner
Beginner

Joined: Mon Nov 29, 2004 2:26 pm
Posts: 28
vashti wrote:
Unfortunately, the engineer who wrote the app didn't implemented logging. I'll take a stab at it and get back with more info.

Thanks.


turning on hibernate's debug-level logging would be a good start.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 19, 2006 6:45 pm 
Newbie

Joined: Wed Apr 19, 2006 3:03 pm
Posts: 3
Pardon my novice level knowledge of hibernate. I can't find where hibernate is configured for logging level.


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