-->
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.  [ 3 posts ] 
Author Message
 Post subject: which null property?
PostPosted: Wed May 30, 2007 7:35 pm 
Beginner
Beginner

Joined: Thu May 17, 2007 2:41 pm
Posts: 48
I get a
not-null property references a null or transient value exception,
which I guess is quite common. But the log file does not tell me which value is null. of couse it could be the object being saved or any of the reachabe objects. so there is quite a lot of possible offenders.

can't I get hibernate to dump out into log4j exactly which one is null?


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 31, 2007 1:18 pm 
Beginner
Beginner

Joined: Thu May 17, 2007 2:41 pm
Posts: 48
ok, it was a wrong call of session.save() instead of update().

setting overall log4j level to debug helped to point to the id of the object being NULL, which got my attention.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 02, 2007 7:42 pm 
Beginner
Beginner

Joined: Thu May 17, 2007 2:41 pm
Posts: 48
I was able to dump out the exact sql commands using p6spy, in case any body else is searching how to do this. That really helped debugging all around.


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