4 Replies Latest reply: May 22, 2012 3:05 PM by dex chen RSS

    ActionStatus.ABORTED

    dex chen Novice

      I am using PESSIMIC lockingMode with JBossStatndaloneJTAManagerLookup, and got the following exception when some transaction takes longer.

       

      I am thnking it may due to lock/transaction time out.  I did not see any way to configure the timeout. Is there a way to configure/set the timeout for the transaction in xml file?

       

      Here is my config:

      <namedCache name="ispn-locktoken">

                <clustering mode="local">

               <stateTransfer fetchInMemoryState="true" timeout="240000"/>

            </clustering>

            <transaction cacheStopTimeout="30000" eagerLockSingleNode="false" lockingMode="PESSIMISTIC" syncCommitPhase="false" syncRollbackPhase="false" transactionManagerLookupClass="org.infinispan.transaction.lookup.JBossStandaloneJTAManagerLookup" transactionMode="TRANSACTIONAL" useEagerLocking="true"/>

       

            <!--  time units below are millseconds -->

            <expiration lifespan="-1" maxIdle="-1" wakeUpInterval="1000"/>

       

          </namedCache>

       

       

       

      2012-05-15/13:57:01.806/MDT [Thread-32] ERROR org.infinispan.interceptors.InvocationContextInterceptor[146] - ISPN000136: Execution error

      java.lang.IllegalStateException: Transaction TransactionImple < ac, BasicAction: 0:ffffc0a8133d:97af:4fb2aed0:36 status: ActionStatus.ABORTED > is not in a valid state to be invoking cache operations on.

           at org.infinispan.interceptors.TxInterceptor.enlist(TxInterceptor.java:230)

           at org.infinispan.interceptors.TxInterceptor.enlistWriteAndInvokeNext(TxInterceptor.java:204)

           at org.infinispan.interceptors.TxInterceptor.visitPutKeyValueCommand(TxInterceptor.java:149)

           at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:77)

           at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)

           at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:131)

           at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:90)

           at org.infinispan.commands.AbstractVisitor.visitPutKeyValueCommand(AbstractVisitor.java:62)

           at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:77)

           at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:345)

           at org.infinispan.CacheImpl.executeCommandAndCommitIfNeeded(CacheImpl.java:1006)

           at org.infinispan.CacheImpl.put(CacheImpl.java:702)

           at org.infinispan.CacheImpl.put(CacheImpl.java:694)

           at org.infinispan.CacheSupport.put(CacheSupport.java:128)