Details
-
Bug
-
Resolution: Done
-
Major
-
jBPM 6.1.0.Final
Description
When GlobalTimerService runs when initializing the session, it attempts to schedule a job (line 88):
GlobalJobHandle jobHandle = (GlobalJobHandle) this.schedulerService.scheduleJob(job, ctx, trigger); jobHandles.add(jobHandle);
In my case, the jobHandle returned is null, so a null value is added to the list. Subsequently, it tries to schedule a job, and the loop at line 80 is run:
for (GlobalJobHandle handle : jobHandles) { long timerId = handle.getTimerId(); if (timerId == processCtx.getTimer().getId()) { // this timer job is already registered return handle; } }
since handle is null, the first line of the for loop fails with a NPE.
Not sure how to get myself out of this situation, without deleting all my data.