1 Reply Latest reply on Feb 3, 2005 7:12 AM by Alexey Loubyansky

    RollbackException blocks access

    Joachim Van der Auwera Expert

      When calling a bean (session facade to an entity bean), I sometimes get the following exception :

      2005-02-03 10:50:55,982 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException in method: public abstract org.ictrace.client.DMBatchEJBLocal org.ictrace.client.DMBatchEJBLocalHome.create(java.lang.String) throws javax.ejb.CreateException, causedBy:
      javax.transaction.RollbackException: Already marked for rollback TransactionImpl:XidImpl[FormatId=257, GlobalId=320000025.ic-trace.org/108824, BranchQual=, localId=108824] at org.jboss.tm.TransactionImpl.registerSynchronization(TransactionImpl.java:602) at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.register(EntitySynchronizationInterceptor.java:149) at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:207) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:212) at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90) at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:117) at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:61) at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:28) at or
      


      When this happens, my client program then hangs for several minutes before regaining control.

      What is the cause for the delay after the exception and how can this be fixed/tuned?

      I am using the instance per tx container config for the entity beans.

      Thanks for the help,
      Joachim