I am still running Appfuse I with hibernate 3.0 and Spring 2.0 . I have many
one-many relationships and the application has been running fine for months
with lazy loading of child rows (using OpenSessionInViewFilter). Suddenly
this week one of the web pages started giving the
LazyInitializationException error. 

This same problem has happened once last year - I restarted the server and
it went away. I assumed at that time that it was some problem with caching
where hibernate was returning a cached object connected to a closed session
- a restart must have cleared the cache.

But this time the problem does not go away after a restart - I just ended up
setting lazy=false for the table to solve the problem.

But now I am afraid the problem will show up for other tables also. 

Why did the exact same code work for several months and now it suddenly has
an issue? Why isn't OpenSessionInViewFilter not working correctly now?


-- 
View this message in context: 
http://www.nabble.com/Strange-Hibernate-Spring-Issue-tp21836525s2369p21836525.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to