Hi,
I've got a drools application running with EJB3 and JBoss 5.1. It works fine
but most of the times it throws exception while trying to load drools
session from JPA. My flow has got user tasks so it stops at places and get
stored in db using JPA. Then I try to load it by providing the session id
which does exist in database but it fails to load with following exception:
Caused by: Could not commit session
2010-12-21 00:47:16,453 ERROR [STDERR] (pool-37-thread-1)
java.lang.IllegalStateException: Wrong tx on thread: expected
TransactionImple < ac, BasicAction: a64360d:8184:4d0ff52a:18d status:
ActionStatus.ABOR
TED >, actual null
2010-12-21 00:47:16,453 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:157)
2010-12-21 00:47:16,453 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:421)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.ejb3.remoting.IsLocalInterceptor.invokeLocal(IsLocalInterceptor.java:85)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
$Proxy678.invoke(Unknown Source)
Does anyone know how to get around this issue?
Thanks
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Exception-while-loadi...
Sent from the Drools - User mailing list archive at
Nabble.com.