3 Replies Latest reply on Jul 16, 2009 4:17 PM by Prathamesh Gaddam

    why: org.hibernate.LazyInitializationException: on rollback?

    Prathamesh Gaddam Novice
      Dear 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 Session

      And, 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:

      <begin-conversation join="true"/>

      ...
         <navigation from-action="#{workLogHome.persist}">
             <end-conversation/>
          </navigation>
      Note: Using SMPC

      Thank you in advance!