[JBoss jBPM] - Re: Need help to fix timer issue
by Toriton
hello , i'm working on timers too, and the timer defined in the post before work fine for me.
I have a little problem after the timer execute the transition.
Imagine something as stateA have the timer, after 5 sec the timer go for transition to stateB ,do something , and then have to turn back in stateA restarting the timer itself.
I'm getting this exception when i try to do signal directly from the ActionHandler in stateB.
| org.jbpm.JbpmException: this token is locked by token[5740]
|
5740 is the ID of the state where the timer started, the stateA in the example described before.
Why i'm blocked from stateA? the process is not gone on in stateB with the timer?.
The transition used by the timer don't influence the process workflow?
Thanks in advance for any clarification.
T.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4218699#4218699
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4218699
17 years, 3 months
[JBoss jBPM] - Re: Need help to fix timer issue
by Arunkumar DSRC
When I tried to have a actionHandler inside the timer It throws the following exception:
org.jbpm.graph.def.DelegationException
at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:382)
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:585)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157)
at org.jbpm.graph.def.ProcessDefinition$$EnhancerByCGLIB$$b2e1ca8f.raiseException()
at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:373)
at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:276)
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:585)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157)
at org.jbpm.graph.node.State$$EnhancerByCGLIB$$993b01f9.executeAction()
at org.jbpm.job.Timer.execute(Timer.java:56)
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:585)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157)
at org.jbpm.job.Job$$EnhancerByCGLIB$$e4a64402.execute()
at org.jbpm.job.executor.JobExecutorThread.executeJob(JobExecutorThread.java:173)
at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:64)
Caused by: java.lang.NullPointerException
at org.jbpm.graph.def.Action.execute(Action.java:122)
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:585)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157)
at org.jbpm.graph.def.Action$$EnhancerByCGLIB$$cc035953.execute()
at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:259)
... 15 more
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4218695#4218695
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4218695
17 years, 3 months