This was reported as a comment to
QUARTZ-557.
Iwan Memruk - [16/Mar/07 03:09 AM ]
Something like that happens for me as well.. (version 1.6.0)
java.lang.NullPointerException
at org.quartz.simpl.RAMJobStore.applyMisfire(RAMJobStore.java:1141)
at org.quartz.simpl.RAMJobStore.resumeTrigger(RAMJobStore.java:1000)
at org.quartz.simpl.RAMJobStore.resumeJobGroup(RAMJobStore.java:1077)
at org.quartz.core.QuartzScheduler.resumeJobGroup(QuartzScheduler.java:1149)
at org.quartz.impl.StdScheduler.resumeJobGroup(StdScheduler.java:461)
....
The Quartz code goes like..
java.util.Date tnft = tw.trigger.getNextFireTime();
if (tnft.getTime() > misfireTime) { return false; }
And tnft is suddenly null. It does not happen always though. I could not determine the exact circumstances when it becomes null.
The trigger is a SimpleTrigger. I've tried different misfire settings without any result.
Michael Day - [23/Mar/07 07:19 PM ]
I'm experiencing the same issue as the last commenter. In my particular case, I'm trying to resume a trigger that has no next fire time. applyMisfire() should check to ensure tnft is not null before trying to use it.
if(tnft == null) { return false; }