in jbpm 4.3, timer's event listener throws exception on ExecuteEventListener.java:68.
tunmang Jul 28, 2010 8:14 PMHi there,
Follow the example described in "jbpm-4.3/doc/devguide/html_single/index.html#timer", the following is what we have done:
(1) in the event listener, we call executeJob:
public void notify(EventListenerExecution execution)
{
String aId = execution.getId();
String aName = execution.getName();
out("===============================");
out("timer handler: (timeout) event (" + aId + ").");
out("===============================");
(3) When start the process instance, and after it reaches the handler, it always throws the following exeptions:
10-07-28/17:01:17 DEBUG [basicfive.TestTimerHandler]: (AP) ===============================
10-07-28/17:01:17 DEBUG [basicfive.TestTimerHandler]: (AP) timer handler: (timeout) event (test_Timer_1.680001.generate-file).
10-07-28/17:01:17 DEBUG [basicfive.TestTimerHandler]: (AP) ===============================
10-07-28/17:01:17 DEBUG [basicfive.TestTimerHandler]: (AP) found a matched timer object in external db: (execId: test_Timer_1.680001.generate-file), (name: generate-file), (timerId: 680004).
10-07-28/17:01:17 DEBUG [basicfive.TestTimerHandler]: (AP) leaving event fired for timer object in external db: (id: test_Timer_1.680001.generate-file), (name: generate-file).
### EXCEPTION ###########################################
17:01:17,161 SEV | [ExecuteJobCmd] exception while executing 'timer[680004|2010-07-28 17:01:15,000|timeout]'
java.lang.NullPointerException
at org.jbpm.pvm.internal.model.op.ExecuteEventListener.perform(ExecuteEventListener.java:68)
at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:678)
at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:638)
at org.jbpm.pvm.internal.model.ExecutionImpl.fire(ExecutionImpl.java:585)
at org.jbpm.pvm.internal.model.ExecutionImpl.fire(ExecutionImpl.java:575)
......
How do we resolve this problem ? Thanks a lot for your help in advance.