[jboss-jira] [JBoss JIRA] (JBASPECT-39) java.lang.IllegalStateException: Wrong tx on thread: expected TransactionImple thrown when timer expires in a JTS transaction that has timed out

Tom Ross (JIRA) jira-events at lists.jboss.org
Fri Jan 25 10:40:47 EST 2013


     [ https://issues.jboss.org/browse/JBASPECT-39?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom Ross updated JBASPECT-39:
-----------------------------

    Steps to Reproduce: 
To reproduce the problem convert a JBoss EAP instance to JTS transactions.
Fire a timer that runs longer than the default transaction timeout. Wait until transaction times out and is rolled back. Then wait until the time finishes. You should see the exception then.

    
> java.lang.IllegalStateException: Wrong tx on thread: expected TransactionImple thrown when timer expires in a JTS transaction that has timed out
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBASPECT-39
>                 URL: https://issues.jboss.org/browse/JBASPECT-39
>             Project: JBoss Aspects
>          Issue Type: Bug
>         Environment: JBoss EAP 5.1.2
>            Reporter: Tom Ross
>            Assignee: Andrew Rubinger
>
> When a timer runs longer than a transaction timeout it throws an exception:
> {noformat}
> 2013-01-25 15:06:34,613 ERROR [org.jboss.ejb.txtimer.TimerImpl] (EJB-Timer-144eac73-8911-4bf7-ab78-7ac081374794[target=jboss.j2ee:ear=XX_TEST_CASE.ear,jar=XX_TEST_CASE_EJB.jar,name=TXTimerBean,service=EJB3]) Error invoking ejbTimeout
> java.lang.IllegalStateException: Wrong tx on thread: expected TransactionImple < jts, -3f57fe9c:d04e:51029e16:fc >, actual TransactionImple < jts, -3f57fe9c:d04e:51029e16:fc >
>         at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:157)
>         at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
>         at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190)
>         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>         at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
>         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>         at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
>         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>         at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
>         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>         at org.jboss.ejb3.core.context.CurrentInvocationContextInterceptor.invoke(CurrentInvocationContextInterceptor.java:47)
>         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>         at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
>         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>         at org.jboss.ejb3.interceptor.EJB3TCCLInterceptor.invoke(EJB3TCCLInterceptor.java:86)
>         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
>         at org.jboss.ejb3.stateless.StatelessContainer.callTimeout(StatelessContainer.java:686)
>         at org.jboss.ejb3.stateless.StatelessContainer.callTimeout(StatelessContainer.java:202)
>         at org.jboss.as.ejb3.timerservice.TimedObjectInvokerBridge.callTimeout(TimedObjectInvokerBridge.java:44)
>         at org.jboss.ejb.txtimer.TimerImpl$TimerTaskImpl.run(TimerImpl.java:664)
>         at java.util.TimerThread.mainLoop(Timer.java:512)
>         at java.util.TimerThread.run(Timer.java:462)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list