1 Reply Latest reply on May 12, 2004 4:13 AM by aquila125

    Rollback Exception: Already marked for rollback

    aquila125

      Hi there,

      I'm developing a j2ee application with about 40 entity beans. When doing a finder query on one of the larger beans (that has 6 relationships with other beans), I get this error:

      10:42:38,086 ERROR [LogInterceptor] TransactionRolledbackLocalException in metho
      d: public abstract java.lang.String com.lmsintl.its.product.ejb.LocalProduct.get
      Code(), causedBy:
      javax.transaction.RollbackException: Already marked for rollback
      at org.jboss.tm.TransactionImpl.registerSynchronization(TransactionImpl.
      java:689)
      at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.register(Entit
      ySynchronizationInterceptor.java:150)
      at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntityS
      ynchronizationInterceptor.java:278)

      and I have no idea what to do about it. It takes a pretty long time (about 5 mins) to get to this error (before that jboss is quering the database heavily).
      I'm subscribed to the commercial documentation, but not there, not elsewhere on the net I could find an answer.
      Is this caused by a a time-out error, or what am I doing wrong?

      Thanks!

        • 1. Re: Rollback Exception: Already marked for rollback
          aquila125

          Perhaps the few lines before this error are usefull too:

          10:42:37,961 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl [Format
          Id=257, GlobalId=HQ-ALL25//29, BranchQual=] timed out. status=STATUS_ACTIVE
          10:42:37,961 WARN [TransactionImpl] Lock contention, tx=TransactionImpl:XidImpl
          [FormatId=257, GlobalId=HQ-ALL25//29, BranchQual=]