I'm using OpenSessionInViewInterceptor to avoid LazyInitializationException.
It worked fine, but from sometime LazyInitializationException occurs even I'm using OSIV. The exceptions are like this:
SEVERE: Servlet.service() for servlet [appServlet] in context with path []
threw exception [Request processing failed; nested exception is
org.apache.tiles.impl.CannotRenderException: ServletException including path
'/WEB-INF/views/home/master.jsp'.] with root cause org.hibernate.LazyInitializationException:
failed to lazily initialize a collection of role: com...,
no session or session was closed
at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersisten
tCollection.java:383)
at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(Abs
tractPersistentCollection.java:375)
at
More weird thing is that the exception log is only in log files and there's no problem to navigate web site.
How is this happen?