Can anyone explain why I would get a LazyInitializationException: could not initialize proxy - no Session when I clearly have a session open?
I've put a whole load of logging in my code and the meesage in the log prior to the exception is as follows:
Quote:
29-Apr-2008 13:21:19 DEBUG GenericDAOHibernate:56 - TransactionID=org.hibernate.transaction.JDBCTransaction@52d28
29-Apr-2008 13:21:19 ERROR LazyInitializationException:19 - could not initialize proxy - no Session
As you can see a transaction exists (is it possible to have an active transaction without a session??)
Any ideas?
Andy