1 Reply Latest reply on Feb 22, 2006 6:26 AM by Tom Sedge

    Transaction problems with 4.0.4

    Tom Sedge Newbie

      Hi,

      I've ported my application from JBoss 4.0.3SP1 to 4.0.4RC1. Everything works, up until I try to do an INSERT/UPDATE/DELETE, when I get:

      java.lang.RuntimeException: org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=upney/137, BranchQual=, localId=137] status=STATUS_NO_TRANSACTION; - nested throwable: (org.hibernate.SessionException: Session is closed!)

      My application uses sessionFactory.getCurrentSession(), and the application code has not be changed from 4.0.3SP1, apart from the necessary EJB3 spec changes.

      Has Hibernate transaction/session handling changed in 4.0.4RC1?

      Many thanks,


      Tom.

        • 1. Re: Transaction problems with 4.0.4
          Tom Sedge Newbie

          Hi again,

          I have now resolved this problem. It turned out to be a bug with my application that only now showed up with the recent changes to Session.isOpen() checking in Hibernate. Great to see improvements in JBoss/Hibernate highlighting problems in my application for me.

          If anyone has a similar problem - double check that your application is not at fault with some simple test cases.

          Thanks,


          Tom.