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?
|