-->
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: intermittent session.load returns emtpy object
PostPosted: Thu May 24, 2007 1:54 pm 
Newbie

Joined: Thu May 24, 2007 1:32 pm
Posts: 1
Hibernate version:3.1

Mapping documents:

Code between sessionFactory.openSession() and session.close(): session.load(Foo.class, hnd)

Full stack trace of any exception that occurs:

Name and version of the database you are using:mysql 5.0

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

I recently encountered an issue on a box that has been running Hibernate for approximately 1 year on Debian (the problem surfaced around the time I upgraded to etch). After the box has been running for a few hours it gets in a state where a returned object's attributes are all null including the id.

session.load(Foo.class, hnd) returns a Foo object where foo.getHnd() and foo.getBar() return null.

Once the box gets in this state it stays there for all instances of Foo until the JVM is restarted. Other classes are not affected.

With logging set to debug there is no output from the load call. I have not configured ehcache for this class.

Can anyone point me to a way to debug this?


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.