|
During a query, an exception "collection is not associated with any session" from the doQueryAndInitializeNonLazyCollections. The problem is intermittent. Using a debugger I found that StatefulPersistenceContext was getting longer and longer with each query. The clear() method on StatefulPersistenceContext does not clear this field. I am wondering if clear() should call initializeTransientState().
|