[jboss-user] [JBoss Seam] - Re: jbpm timer transaction issues

pbrewer_uk do-not-reply at jboss.com
Fri Feb 1 07:33:18 EST 2008


I'm more than willing to take this task on, but I'll need some pointers on where the cause of the problem lies and how to tackle it. This is now a critical issue for my project, so any help at all would be greatly appreciated.

In addition, I think a related problem can be observed if, for example, a seam timer (using ejb3 timer implementation) causes a process instance to create a jbpm timer:


  | 2008-02-01 11:08:01,065 ERROR [org.jbpm.graph.def.GraphElement] action threw exception: uninitialized proxy passed to save()
  | org.hibernate.PersistentObjectException: uninitialized proxy passed to save()
  |   at org.hibernate.event.def.DefaultSaveEventListener.reassociateIfUninitializedProxy(DefaultSaveEventListener.java:49)
  |   at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:59)
  |   at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535)
  |   at org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)
  |   at org.hibernate.impl.SessionImpl.save(SessionImpl.java:519)
  |   at org.jbpm.db.JobSession.saveJob(JobSession.java:100)
  |   at org.jbpm.scheduler.db.DbSchedulerService.createTimer(DbSchedulerService.java:43)
  |   at org.jbpm.scheduler.def.CreateTimerAction.execute(CreateTimerAction.java:67)
  |   at org.jboss.seam.bpm.SeamUserCodeInterceptor$1.process(SeamUserCodeInterceptor.java:80)
  |   at org.jboss.seam.bpm.SeamUserCodeInterceptor$ContextualCall.run(SeamUserCodeInterceptor.java:33)
  |   at org.jboss.seam.bpm.SeamUserCodeInterceptor.executeAction(SeamUserCodeInterceptor.java:74)
  |   at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:253)
  |   at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:220)
  |   at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:190)
  |   at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:174)
  |   at org.jbpm.graph.def.Node.enter(Node.java:302)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |   at java.lang.reflect.Method.invoke(Method.java:597)
  |   at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
  |   at org.jbpm.graph.def.Node_$$_javassist_170.enter(Node_$$_javassist_170.java)
  |   at org.jbpm.graph.def.Transition.take(Transition.java:151)
  |   at org.jbpm.graph.def.Node.leave(Node.java:393)
  |   at org.jbpm.graph.def.Node.leave(Node.java:357)
  |   at org.jbpm.graph.exe.ExecutionContext.leaveNode(ExecutionContext.java:120)
  |   at uk.co.iblocks.midas.workflow.AbstractWorkflow.progress(AbstractWorkflow.java:98)
  |   at uk.co.iblocks.midas.workflow.CancelMemberWorkflow.sendCancellationWarning(CancelMemberWorkflow.java:29)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |   at java.lang.reflect.Method.invoke(Method.java:597)
  |   at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
  |   at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
  |   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
  |   at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
  |   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |   at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
  |   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |   at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:49)
  |   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |   at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:38)
  |   at org.jboss.seam.util.Work.workInTransaction(Work.java:40)
  |   at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:32)
  |   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |   at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
  |   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |   at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
  |   at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:155)
  |   at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:91)
  |   at uk.co.iblocks.midas.workflow.CancelMemberWorkflow_$$_javassist_8.sendCancellationWarning(CancelMemberWorkflow_$$_javassist_8.java)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |   at java.lang.reflect.Method.invoke(Method.java:597)
  |   at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:328)
  |   at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:341)
  |   at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
  |   at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
  |   at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
  |   at org.jboss.seam.bpm.SeamExpressionEvaluator$1.evaluate(SeamExpressionEvaluator.java:70)
  |   at org.jboss.seam.bpm.SeamExpressionEvaluator.evaluate(SeamExpressionEvaluator.java:36)
  |   at org.jbpm.jpdl.el.impl.JbpmExpressionEvaluator.evaluate(JbpmExpressionEvaluator.java:39)
  |   at org.jbpm.jpdl.el.impl.JbpmExpressionEvaluator.evaluate(JbpmExpressionEvaluator.java:30)
  |   at org.jbpm.graph.def.Action.execute(Action.java:118)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |   at java.lang.reflect.Method.invoke(Method.java:597)
  |   at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
  |   at org.jbpm.graph.def.Action_$$_javassist_124.execute(Action_$$_javassist_124.java)
  |   at org.jboss.seam.bpm.SeamUserCodeInterceptor$1.process(SeamUserCodeInterceptor.java:80)
  |   at org.jboss.seam.bpm.SeamUserCodeInterceptor$ContextualCall.run(SeamUserCodeInterceptor.java:33)
  |   at org.jboss.seam.bpm.SeamUserCodeInterceptor.executeAction(SeamUserCodeInterceptor.java:74)
  |   at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:253)
  |   at org.jbpm.graph.def.Node.execute(Node.java:338)
  |   at org.jbpm.graph.def.Node.enter(Node.java:318)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |   at java.lang.reflect.Method.invoke(Method.java:597)
  |   at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
  |   at org.jbpm.graph.def.Node_$$_javassist_170.enter(Node_$$_javassist_170.java)
  |   at org.jbpm.graph.def.Transition.take(Transition.java:151)
  |   at org.jbpm.graph.def.Node.leave(Node.java:393)
  |   at org.jbpm.graph.node.StartState.leave(StartState.java:70)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |   at java.lang.reflect.Method.invoke(Method.java:597)
  |   at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
  |   at org.jbpm.graph.def.Node_$$_javassist_170.leave(Node_$$_javassist_170.java)
  |   at org.jbpm.graph.exe.Token.signal(Token.java:194)
  |   at org.jbpm.graph.exe.Token.signal(Token.java:139)
  |   at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:270)
  |   at uk.co.iblocks.midas.workflow.WorkflowSchedule.processMembers(WorkflowSchedule.java:129)
  |   at uk.co.iblocks.midas.workflow.WorkflowSchedule.execute(WorkflowSchedule.java:79)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |   at java.lang.reflect.Method.invoke(Method.java:597)
  |   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
  |   at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
  |   at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:44)
  |   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
  |   at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
  |   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |   at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
  |   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |   at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:49)
  |   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |   at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
  |   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |   at org.jboss.seam.persistence.EntityManagerProxyInterceptor.aroundInvoke(EntityManagerProxyInterceptor.java:26)
  |   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |   at org.jboss.seam.persistence.HibernateSessionProxyInterceptor.aroundInvoke(HibernateSessionProxyInterceptor.java:27)
  |   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |   at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
  |   at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:50)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |   at java.lang.reflect.Method.invoke(Method.java:597)
  |   at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
  |   at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
  |   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |   at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
  |   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |   at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
  |   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |   at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
  |   at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
  |   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |   at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
  |   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |   at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
  |   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |   at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
  |   at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106)
  |   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |   at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
  |   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |   at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
  |   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |   at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:214)
  |   at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:184)
  |   at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:81)
  |   at $Proxy116.execute(Unknown Source)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |   at java.lang.reflect.Method.invoke(Method.java:597)
  |   at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
  |   at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
  |   at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)
  |   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
  |   at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:50)
  |   at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  |   at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
  |   at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)
  |   at org.javassist.tmp.java.lang.Object_$$_javassist_4.execute(Object_$$_javassist_4.java)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |   at java.lang.reflect.Method.invoke(Method.java:597)
  |   at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
  |   at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
  |   at org.jboss.seam.async.AsynchronousInvocation.call(AsynchronousInvocation.java:52)
  |   at org.jboss.seam.async.Asynchronous.executeInContexts(Asynchronous.java:76)
  |   at org.jboss.seam.async.Asynchronous.execute(Asynchronous.java:45)
  |   at org.jboss.seam.async.TimerServiceDispatcher.dispatch(TimerServiceDispatcher.java:50)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |   at java.lang.reflect.Method.invoke(Method.java:597)
  |   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
  |   at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
  |   at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
  |   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |   at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
  |   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |   at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
  |   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |   at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
  |   at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
  |   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |   at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
  |   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |   at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
  |   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |   at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
  |   at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106)
  |   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |   at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
  |   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |   at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
  |   at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |   at org.jboss.ejb3.stateless.StatelessContainer.callTimeout(StatelessContainer.java:151)
  |   at org.jboss.ejb.txtimer.TimerImpl$TimerTaskImpl.run(TimerImpl.java:561)
  |   at java.util.TimerThread.mainLoop(Timer.java:512)
  |   at java.util.TimerThread.run(Timer.java:462)
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125500#4125500

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125500



More information about the jboss-user mailing list