Atomikos Forum |
|
Hi
We are working with oracle 10.2.0.5 under Win2008 R2 servers. In our Application we are working with JBPM Workflow engine. We are using the following spring init for XA: <bean id="atomikosDataSource" class="com.atomikos.jdbc.AtomikosDataSourceBean" init-method="init" destroy-method="close"> <property name="uniqueResourceName" value="XADBMS" /> <property name="xaDataSourceClassName" value="oracle.jdbc.xa.client.OracleXADataSource" /> <property name="xaProperties" ref="databaseConnectionProperties" /> <property name="poolSize" value="30"/> </bean> Sometimes, ( and realy only sometimes ) the following error happens: 2011-06-15 02:19:07,663 ERROR [jmsContainer1-1] (GraphElement.java:292) - action threw exception: XA resource 'XADBMS': resume for XID '3137312E32302E37342E32352E746D32393033303030313239:3137312E32302E37342E32352E746D34313635383838' raised -3: the XA resource detected an internal error com.atomikos.datasource.ResourceException: XA resource 'XADBMS': resume for XID '3137312E32302E37342E32352E746D32393033303030313239:3137312E32302E37342E32352E746D34313635383838' raised -3: the XA resource detected an internal error at com.atomikos.datasource.xa.XAResourceTransaction.resume(XAResourceTransaction.java:500) at com.atomikos.datasource.xa.session.BranchEnlistedStateHandler.<init>(BranchEnlistedStateHandler.java:57) at com.atomikos.datasource.xa.session.NotInBranchStateHandler.checkEnlistBeforeUse(NotInBranchStateHandler.java:66) at com.atomikos.datasource.xa.session.TransactionContext.checkEnlistBeforeUse(TransactionContext.java:85) at com.atomikos.datasource.xa.session.SessionHandleState.notifyBeforeUse(SessionHandleState.java:176) at com.atomikos.jdbc.AtomikosConnectionProxy.enlist(AtomikosConnectionProxy.java:204) at com.atomikos.jdbc.AtomikosConnectionProxy.invoke(AtomikosConnectionProxy.java:138) at $Proxy139002.prepareStatement(Unknown Source) at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:534) at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:452) at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161) at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1596) at org.hibernate.loader.Loader.doQuery(Loader.java:717) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:270) at org.hibernate.loader.Loader.loadCollection(Loader.java:2062) at org.hibernate.loader.collection.CollectionLoader.initialize(CollectionLoader.java:62) at org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:628) at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:83) at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1853) at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:366) at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:108) at org.hibernate.collection.PersistentMap.values(PersistentMap.java:257) at org.jbpm.graph.exe.Token.end(Token.java:317) at org.jbpm.graph.exe.Token.end(Token.java:291) at org.jbpm.graph.node.EndState.execute(EndState.java:65) at org.jbpm.graph.def.Node.enter(Node.java:388) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:198) at org.jbpm.graph.def.Node_$$_javassist_77.enter(Node_$$_javassist_77.java) at org.jbpm.graph.def.Transition.take(Transition.java:166) at org.jbpm.graph.def.Node.leave(Node.java:477) at org.jbpm.graph.exe.Token.signal(Token.java:226) at org.jbpm.graph.exe.Token.signal(Token.java:149) at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:198) at org.jbpm.graph.exe.Token_$$_javassist_13.signal(Token_$$_javassist_13.java) at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:304) at com.stoecklin.jobcommander.implementation.workflow.WorkflowManager$8.doInJbpm(WorkflowManager.java:354) at org.springmodules.workflow.jbpm31.JbpmTemplate$1.doInHibernate(JbpmTemplate.java:86) at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419) at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339) at org.springmodules.workflow.jbpm31.JbpmTemplate.execute(JbpmTemplate.java:79) at com.stoecklin.jobcommander.implementation.workflow.WorkflowManager.signal(WorkflowManager.java:339) at com.stoecklin.jobcommander.implementation.workflow.WorkflowManager.signal(WorkflowManager.java:369) at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy45.signal(Unknown Source) at com.stoecklin.jobcommander.implementation.handler.FinishJobHandler.onExecute(FinishJobHandler.java:17) at com.stoecklin.jobcommander.implementation.handler.BaseActionHandler.execute(BaseActionHandler.java:34) at org.springmodules.workflow.jbpm31.JbpmHandlerProxy.execute(JbpmHandlerProxy.java:133) at org.jbpm.graph.def.Action.execute(Action.java:125) at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:198) at org.jbpm.graph.def.Action_$$_javassist_31.execute(Action_$$_javassist_31.java) at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:281) at org.jbpm.graph.def.Node.execute(Node.java:412) at org.jbpm.graph.def.Node.enter(Node.java:388) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:198) at org.jbpm.graph.def.Node_$$_javassist_77.enter(Node_$$_javassist_77.java) at org.jbpm.graph.def.Transition.take(Transition.java:166) at org.jbpm.graph.def.Node.leave(Node.java:477) at org.jbpm.graph.exe.Token.signal(Token.java:226) at org.jbpm.graph.exe.Token.signal(Token.java:149) at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:198) at org.jbpm.graph.exe.Token_$$_javassist_13.signal(Token_$$_javassist_13.java) at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:304) at com.stoecklin.jobcommander.jbpm.JbpmAnnotationHandlerProxy.execute(JbpmAnnotationHandlerProxy.java:77) at org.jbpm.graph.def.Action.execute(Action.java:125) at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:198) at org.jbpm.graph.def.Action_$$_javassist_31.execute(Action_$$_javassist_31.java) at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:281) at org.jbpm.graph.def.Node.execute(Node.java:412) at org.jbpm.graph.def.Node.enter(Node.java:388) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:198) at org.jbpm.graph.def.Node_$$_javassist_77.enter(Node_$$_javassist_77.java) at org.jbpm.graph.def.Transition.take(Transition.java:166) at org.jbpm.graph.def.Node.leave(Node.java:477) at org.jbpm.graph.exe.Token.signal(Token.java:226) at org.jbpm.graph.exe.Token.signal(Token.java:149) at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:198) at org.jbpm.graph.exe.Token_$$_javassist_13.signal(Token_$$_javassist_13.java) at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:304) at com.stoecklin.jobcommander.implementation.workflow.WorkflowManager$8.doInJbpm(WorkflowManager.java:354) at org.springmodules.workflow.jbpm31.JbpmTemplate$1.doInHibernate(JbpmTemplate.java:86) at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419) at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339) at org.springmodules.workflow.jbpm31.JbpmTemplate.execute(JbpmTemplate.java:79) at com.stoecklin.jobcommander.implementation.workflow.WorkflowManager.signal(WorkflowManager.java:339) at com.stoecklin.jobcommander.implementation.workflow.WorkflowManager.signal(WorkflowManager.java:369) at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy45.signal(Unknown Source) at com.stoecklin.jobcommander.implementation.handler.DeleteCarrierHandler.onExecute(DeleteCarrierHandler.java:43) at com.stoecklin.jobcommander.implementation.handler.BaseActionHandler.execute(BaseActionHandler.java:34) at org.springmodules.workflow.jbpm31.JbpmHandlerProxy.execute(JbpmHandlerProxy.java:133) at org.jbpm.graph.def.Action.execute(Action.java:125) at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:198) at org.jbpm.graph.def.Action_$$_javassist_31.execute(Action_$$_javassist_31.java) at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:281) at org.jbpm.graph.def.Node.execute(Node.java:412) at org.jbpm.graph.def.Node.enter(Node.java:388) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:198) at org.jbpm.graph.def.Node_$$_javassist_77.enter(Node_$$_javassist_77.java) at org.jbpm.graph.def.Transition.take(Transition.java:166) at org.jbpm.graph.def.Node.leave(Node.java:477) at org.jbpm.graph.exe.Token.signal(Token.java:226) at org.jbpm.graph.exe.Token.signal(Token.java:149) at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:198) at org.jbpm.graph.exe.Token_$$_javassist_13.signal(Token_$$_javassist_13.java) at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:304) at com.stoecklin.jobcommander.implementation.workflow.WorkflowManager$8.doInJbpm(WorkflowManager.java:354) at org.springmodules.workflow.jbpm31.JbpmTemplate$1.doInHibernate(JbpmTemplate.java:86) at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419) at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339) at org.springmodules.workflow.jbpm31.JbpmTemplate.execute(JbpmTemplate.java:79) at com.stoecklin.jobcommander.implementation.workflow.WorkflowManager.signal(WorkflowManager.java:339) at com.stoecklin.jobcommander.implementation.workflow.WorkflowManager.signal(WorkflowManager.java:369) at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy45.signal(Unknown Source) at com.stoecklin.jobcommander.implementation.handler.UnreserveMaterialHandler.onExecute(UnreserveMaterialHandler.java:28) at com.stoecklin.jobcommander.implementation.handler.BaseActionHandler.execute(BaseActionHandler.java:34) at org.springmodules.workflow.jbpm31.JbpmHandlerProxy.execute(JbpmHandlerProxy.java:133) at org.jbpm.graph.def.Action.execute(Action.java:125) at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:198) at org.jbpm.graph.def.Action_$$_javassist_31.execute(Action_$$_javassist_31.java) at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:281) at org.jbpm.graph.def.Node.execute(Node.java:412) at org.jbpm.graph.def.Node.enter(Node.java:388) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:198) at org.jbpm.graph.def.Node_$$_javassist_77.enter(Node_$$_javassist_77.java) at org.jbpm.graph.def.Transition.take(Transition.java:166) at org.jbpm.graph.def.Node.leave(Node.java:477) at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:198) at org.jbpm.graph.def.Node_$$_javassist_77.leave(Node_$$_javassist_77.java) at org.jbpm.graph.exe.Token.signal(Token.java:226) at org.jbpm.graph.exe.Token.signal(Token.java:179) at sun.reflect.GeneratedMethodAccessor87.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:198) at org.jbpm.graph.exe.Token_$$_javassist_13.signal(Token_$$_javassist_13.java) at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:318) at com.stoecklin.jobcommander.implementation.workflow.WorkflowManager$8.doInJbpm(WorkflowManager.java:351) at org.springmodules.workflow.jbpm31.JbpmTemplate$1.doInHibernate(JbpmTemplate.java:86) at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419) at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339) at org.springmodules.workflow.jbpm31.JbpmTemplate.execute(JbpmTemplate.java:79) at com.stoecklin.jobcommander.implementation.workflow.WorkflowManager.signal(WorkflowManager.java:339) at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy45.signal(Unknown Source) at com.stoecklin.customer.jobcommander.messagehandling.LGBMAPMessageHandler.handleMessage(LGBMAPMessageHandler.java:52) at com.stoecklin.jobcommander.implementation.messagehandling.MessageHandler.onMessage(MessageHandler.java:124) at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy63.onMessage(Unknown Source) at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:543) at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:482) at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:451) at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:323) at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:261) at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:982) at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:974) at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:876) at java.lang.Thread.run(Unknown Source) Anybody an idea what the problem could be? |