I get the following exception when using the MassIndexer, below is stacktrace
2010-08-09 19:45:52,518 [Hibernate Search: collectionsloader -1] ERROR org.hibernate.LazyInitializationException - falied to lazily initialize a collection of role: model.Name.addresses, no session or session was closed org.hibernate.LazyInitalizationException: failed to lazily initialize a collection of role: model.Name.addresses, no session or session was closed at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:383)
omited rest of stacktrace for brevity.
I'm using Hibernate Search 3.2.1 Spring 3.0.3
Spring is managing my transactions, but for some reason my sessions are being closed. I have to get lazy loading working.. Has any one solved this problem.
Thanks
|