NPE in ApplyMisfire
See original GitHub issueHi I am Getting This issue.
Caused by: java.lang.NullPointerException
at net.joelinn.quartz.jobstore.AbstractRedisStorage.applyMisfire(AbstractRedisStorage.java:565)
at net.joelinn.quartz.jobstore.AbstractRedisStorage.acquireNextTriggers(AbstractRedisStorage.java:819)
at net.joelinn.quartz.jobstore.RedisJobStore$39.doWithLock(RedisJobStore.java:1041)
at net.joelinn.quartz.jobstore.RedisJobStore$39.doWithLock(RedisJobStore.java:1037)
at net.joelinn.quartz.jobstore.RedisJobStore.doWithLock(RedisJobStore.java:1154)
... 2 more
Code that I am Executing
public class TestQuartzWithRedis {
public static void main (String[] args) throws SchedulerException, InterruptedException {
Scheduler scheduler = StdSchedulerFactory.getDefaultScheduler();
scheduler.start();
Date startTime = DateBuilder.futureDate(5000, DateBuilder.IntervalUnit.MILLISECOND);
JobDetail job = JobBuilder
.newJob(SampleJob.class)
.withIdentity(UUID.randomUUID().toString(), "messageGroup")
.requestRecovery()
.build();
SimpleTrigger trigger = (SimpleTrigger) newTrigger()
.forJob(job)
.withIdentity("trigger:" + UUID.randomUUID().toString(), "messageGroup")
.startAt(startTime)
.build();
scheduler.scheduleJob(job, trigger);
}
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
NPE while resuming job | Confluence Server and Data Center
NPE while resuming job. Closed: Assignee: Priority: Resolution: Closed. Chris Kiehl ... applyMisfire(RAMJobStore.java:1090) at org.quartz.simpl.RAMJobStore.
Read more >org.terracotta.quartz.DefaultClusteredJobStore.getLog java code ...
currentTimeMillis(); // this MUST happen before initializing the trigger set (otherwise we might receive an update which get an NPE) // this.serializer.
Read more >Quartz 1.6.1 Release Notes
getFireAtTime() method result does not match the result that is documented in Javadoc. Bug · QUARTZ-581 · NullPointerException in RAMJobStore.applyMisfire.
Read more >困扰多年的Quartz重复调度的问题,终于找到原因 - 博客园
执行applyMisfire的时候,如果满足 getNextFireTime + threshold < now 则导致misFire触发,此时再根据 Misfire Instruction 判定是否重复触发,假如
Read more >Quartz 1.6.1.html - searchcode
... .com/browse/QUARTZ-558">NullPointerException cloning CronTrigger without cron ... applyMisfire</a> 578 </td> 579 </tr> 580 <tr class="rowAlternate"> 581 ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This specifically happens if you have symbols in your trigger and job name…
This is the method in quartz that generates unique identifier