2 Replies Latest reply on Jan 7, 2011 4:50 PM by roman.mandeleil1

    TransactionMARKED_FOR_JOINED

    roman.mandeleil1

      After a long run (5-6 hours) with average traffic I get that exception.
      And the module is stuck on that. Every next request will get that.
      The strange thing is that I don't use any
      transactions only couple of select queries.



      Caused by org.hibernate.AssertionFailure with message: "Transaction MARKED_FOR_JOINED after isOpen() call"
      org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:465)
      org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:431)
      sun.reflect.GeneratedMethodAccessor200.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
      org.jboss.seam.persistence.EntityManagerInvocationHandler.invoke(EntityManagerInvocationHandler.java:46)
      $Proxy146.joinTransaction(Unknown Source)
      org.jboss.seam.transaction.AbstractUserTransaction.enlist(AbstractUserTransaction.java:73)
      org.jboss.seam.persistence.ManagedPersistenceContext.joinTransaction(ManagedPersistenceContext.java:123)
      org.jboss.seam.persistence.ManagedPersistenceContext.getEntityManager(ManagedPersistenceContext.java:112)



      I am using JBoss-4.2.3.GA , Seam-2.2.1.CR3, Hibernate-3.3.2.GA


      Thanks in advance for any smart reply.




      Roman.




        • 1. Re: TransactionMARKED_FOR_JOINED
          mkiel

          Well, you are using transactions even if you don't know it - every database query is executed in a transaction, even simple select queries. Seam and Hibernate are by default configured to make transactions just work without users having to worry about transaction demarcation for most purposes.


          It seems like your problem is not unknown - if the solutions you can find in the web don't help, you might want to check in the Hibernate forums, since the exception is thrown in Hibernate code.

          • 2. Re: TransactionMARKED_FOR_JOINED
            roman.mandeleil1

            Yep I probably will post it on HForums also , but I was thinking that seam is managing all the session stuff
            maybe it is connected somehow. It seams like the connection is being messed up between the sessions.