1. why: org.hibernate.LazyInitializationException: on rollback? seamframework.orgDear Team,On using Transaction.instance().rollback(); OR @ApplicationException(rollback=true) the rollback is working.However, when I navigate to another view it throws:org.hibernate.LazyInitializationException: could not initialize proxy - no SessionAnd, when tried to invoke persist() (click on ViewEdit.xhtml 'Save' button) under same cid, it throws:'detached entity passed to persist' hibernate exception.Kindly assist as what else m'I missing?I'm begining and ending conversations as: |
2. OSIV + JTA = LazyInitializationException forum.hibernate.orgHi, Im using OSIV pattern in a JSF+facelets (without EJB) application. Everything looks fine until a collection has to be lazily initialized by a JSF-EL expression inside a page. Hibernate simply doesnt find the session propagated by the JTA transaction (the transaction is opened and closed by the long conversation filter). I access/modify 2 differents databases in a same transaction, so ... |
3. why session.lock() & still LazyInitializationException? forum.hibernate.orgHibernate 2.1.4 I have an object 'A' which has a child object 'B' that is defined as a property. 'B' has a collection 'C' that is defined as lazy I retrieve 'A' from a hibernate session, and the session is closed and 'A' "goes off and does some stuff" Later 'A' is reattached to a "new" session with session.lock(A, LockMode.NONE) and ... |