org.quartz.JobPersistenceException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • We have 4 tomcat nodes in cluster. NullPointerException is thrown on this line in JobStoreSupport: if(trig.getNextFireTime().getTime() > misfireTime) Configuration: {code} #============================================================================ # Configure Main Scheduler Properties #============================================================================ org.quartz.scheduler.instanceName = StandardScheduler org.quartz.scheduler.instanceId = AUTO #============================================================================ # Configure ThreadPool #============================================================================ org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool org.quartz.threadPool.threadCount = 3 org.quartz.threadPool.threadPriority = 5 #============================================================================ # Configure JobStore #============================================================================ org.quartz.jobStore.misfireThreshold = 300000 org.quartz.jobStore.class=org.springframework.scheduling.quartz.LocalDataSourceJobStore org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.oracle.OracleDelegate org.quartz.jobStore.useProperties=false org.quartz.jobStore.tablePrefix=QRTZ_ org.quartz.jobStore.isClustered=true org.quartz.jobStore.lockOnInsert=false org.quartz.jobStore.acquireTriggersWithinLock=true org.quartz.jobStore.lockHandler.class=org.quartz.impl.jdbcjobstore.UpdateLockRowSemaphore org.quartz.scheduler.jmx.export=true {code} Stacktrace: {code} Feb 24 13:08:00 anv2 BATCH [/opt/anv2/tomcat22][ INFO BATCH: SchedulerHelper riadok 114]: Resuming group ORSR_CORWIN Feb 24 13:08:00 anv2 BATCH [/opt/anv2/tomcat22][ERROR BATCH: SchedulerHelper riadok 118]: Couldn't update misfired trigger 'ORSR_CORWIN.6BmNugrJRPaoULS42pjFEw': null Feb 24 13:08:00 anv2 BATCH org.quartz.JobPersistenceException: Couldn't update misfired trigger 'ORSR_CORWIN.6BmNugrJRPaoULS42pjFEw': null [See nested exception: java.lang.NullPointerException] Feb 24 13:08:00 anv2 BATCH at org.quartz.impl.jdbcjobstore.JobStoreSupport.updateMisfiredTrigger(JobStoreSupport.java:1018) Feb 24 13:08:00 anv2 BATCH at org.quartz.impl.jdbcjobstore.JobStoreSupport.resumeTrigger(JobStoreSupport.java:2364) Feb 24 13:08:00 anv2 BATCH at org.quartz.impl.jdbcjobstore.JobStoreSupport.resumeTriggerGroup(JobStoreSupport.java:2570) Feb 24 13:08:00 anv2 BATCH at org.quartz.impl.jdbcjobstore.JobStoreSupport$32.execute(JobStoreSupport.java:2541) Feb 24 13:08:00 anv2 BATCH at org.quartz.impl.jdbcjobstore.JobStoreSupport$40.execute(JobStoreSupport.java:3716) Feb 24 13:08:00 anv2 BATCH at org.quartz.impl.jdbcjobstore.JobStoreCMT.executeInLock(JobStoreCMT.java:242) Feb 24 13:08:00 anv2 BATCH at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInLock(JobStoreSupport.java:3712) Feb 24 13:08:00 anv2 BATCH at org.quartz.impl.jdbcjobstore.JobStoreSupport.resumeTriggerGroup(JobStoreSupport.java:2537) Feb 24 13:08:00 anv2 BATCH at org.quartz.core.QuartzScheduler.resumeTriggerGroup(QuartzScheduler.java:1235) Feb 24 13:08:00 anv2 BATCH at org.quartz.impl.StdScheduler.resumeTriggerGroup(StdScheduler.java:426) Feb 24 13:08:00 anv2 BATCH at plaut.jfos.framework.scheduling.SchedulerHelper.resumeGroup(SchedulerHelper.java:116) Feb 24 13:08:00 anv2 BATCH at plaut.jfos.framework.scheduling.ResumeJob.executeTask(ResumeJob.java:26) Feb 24 13:08:00 anv2 BATCH at plaut.jfos.framework.scheduling.QuartzMasterJob.execute(QuartzMasterJob.java:54) Feb 24 13:08:00 anv2 BATCH at org.quartz.core.JobRunShell.run(JobRunShell.java:223) Feb 24 13:08:00 anv2 BATCH at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) Feb 24 13:08:00 anv2 BATCH Caused by: java.lang.NullPointerException Feb 24 13:08:00 anv2 BATCH at org.quartz.impl.jdbcjobstore.JobStoreSupport.updateMisfiredTrigger(JobStoreSupport.java:1007) Feb 24 13:08:00 anv2 BATCH ... 14 more Feb 24 13:08:00 anv2 BATCH [/opt/anv2/tomcat51][ INFO BATCH: JobLoggingListener riadok 29]: Pabk2AsyncCommunicationTask begins at 24.2.2014 13:08. Feb 24 13:08:00 anv2 BATCH [/opt/anv2/tomcat22][ERROR BATCH: JfosSchedulerListener riadok 12]: Job (DEFAULT.groupResumeJob threw an exception. Feb 24 13:08:00 anv2 BATCH org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: plaut.jfos.framework.shared.JfosSystemException: Couldn't update misfired trigger 'ORSR_CORWIN.6BmNugrJRPaoULS42pjFEw': nu ll] Feb 24 13:08:00 anv2 BATCH at org.quartz.core.JobRunShell.run(JobRunShell.java:234) Feb 24 13:08:00 anv2 BATCH at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) Feb 24 13:08:00 anv2 BATCH Caused by: plaut.jfos.framework.shared.JfosSystemException: Couldn't update misfired trigger 'ORSR_CORWIN.6BmNugrJRPaoULS42pjFEw': null Feb 24 13:08:00 anv2 BATCH at plaut.jfos.framework.scheduling.SchedulerHelper.resumeGroup(SchedulerHelper.java:119) Feb 24 13:08:00 anv2 BATCH at plaut.jfos.framework.scheduling.ResumeJob.executeTask(ResumeJob.java:26) Feb 24 13:08:00 anv2 BATCH at plaut.jfos.framework.scheduling.QuartzMasterJob.execute(QuartzMasterJob.java:54) Feb 24 13:08:00 anv2 BATCH at org.quartz.core.JobRunShell.run(JobRunShell.java:223) Feb 24 13:08:00 anv2 BATCH ... 1 more {code}
    via by Robert Kristofic,
  • We have 4 tomcat nodes in cluster. NullPointerException is thrown on this line in JobStoreSupport: if(trig.getNextFireTime().getTime() > misfireTime) Configuration: {code} #============================================================================ # Configure Main Scheduler Properties #============================================================================ org.quartz.scheduler.instanceName = StandardScheduler org.quartz.scheduler.instanceId = AUTO #============================================================================ # Configure ThreadPool #============================================================================ org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool org.quartz.threadPool.threadCount = 3 org.quartz.threadPool.threadPriority = 5 #============================================================================ # Configure JobStore #============================================================================ org.quartz.jobStore.misfireThreshold = 300000 org.quartz.jobStore.class=org.springframework.scheduling.quartz.LocalDataSourceJobStore org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.oracle.OracleDelegate org.quartz.jobStore.useProperties=false org.quartz.jobStore.tablePrefix=QRTZ_ org.quartz.jobStore.isClustered=true org.quartz.jobStore.lockOnInsert=false org.quartz.jobStore.acquireTriggersWithinLock=true org.quartz.jobStore.lockHandler.class=org.quartz.impl.jdbcjobstore.UpdateLockRowSemaphore org.quartz.scheduler.jmx.export=true {code} Stacktrace: {code} Feb 24 13:08:00 anv2 BATCH [/opt/anv2/tomcat22][ INFO BATCH: SchedulerHelper riadok 114]: Resuming group ORSR_CORWIN Feb 24 13:08:00 anv2 BATCH [/opt/anv2/tomcat22][ERROR BATCH: SchedulerHelper riadok 118]: Couldn't update misfired trigger 'ORSR_CORWIN.6BmNugrJRPaoULS42pjFEw': null Feb 24 13:08:00 anv2 BATCH org.quartz.JobPersistenceException: Couldn't update misfired trigger 'ORSR_CORWIN.6BmNugrJRPaoULS42pjFEw': null [See nested exception: java.lang.NullPointerException] Feb 24 13:08:00 anv2 BATCH at org.quartz.impl.jdbcjobstore.JobStoreSupport.updateMisfiredTrigger(JobStoreSupport.java:1018) Feb 24 13:08:00 anv2 BATCH at org.quartz.impl.jdbcjobstore.JobStoreSupport.resumeTrigger(JobStoreSupport.java:2364) Feb 24 13:08:00 anv2 BATCH at org.quartz.impl.jdbcjobstore.JobStoreSupport.resumeTriggerGroup(JobStoreSupport.java:2570) Feb 24 13:08:00 anv2 BATCH at org.quartz.impl.jdbcjobstore.JobStoreSupport$32.execute(JobStoreSupport.java:2541) Feb 24 13:08:00 anv2 BATCH at org.quartz.impl.jdbcjobstore.JobStoreSupport$40.execute(JobStoreSupport.java:3716) Feb 24 13:08:00 anv2 BATCH at org.quartz.impl.jdbcjobstore.JobStoreCMT.executeInLock(JobStoreCMT.java:242) Feb 24 13:08:00 anv2 BATCH at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInLock(JobStoreSupport.java:3712) Feb 24 13:08:00 anv2 BATCH at org.quartz.impl.jdbcjobstore.JobStoreSupport.resumeTriggerGroup(JobStoreSupport.java:2537) Feb 24 13:08:00 anv2 BATCH at org.quartz.core.QuartzScheduler.resumeTriggerGroup(QuartzScheduler.java:1235) Feb 24 13:08:00 anv2 BATCH at org.quartz.impl.StdScheduler.resumeTriggerGroup(StdScheduler.java:426) Feb 24 13:08:00 anv2 BATCH at plaut.jfos.framework.scheduling.SchedulerHelper.resumeGroup(SchedulerHelper.java:116) Feb 24 13:08:00 anv2 BATCH at plaut.jfos.framework.scheduling.ResumeJob.executeTask(ResumeJob.java:26) Feb 24 13:08:00 anv2 BATCH at plaut.jfos.framework.scheduling.QuartzMasterJob.execute(QuartzMasterJob.java:54) Feb 24 13:08:00 anv2 BATCH at org.quartz.core.JobRunShell.run(JobRunShell.java:223) Feb 24 13:08:00 anv2 BATCH at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) Feb 24 13:08:00 anv2 BATCH Caused by: java.lang.NullPointerException Feb 24 13:08:00 anv2 BATCH at org.quartz.impl.jdbcjobstore.JobStoreSupport.updateMisfiredTrigger(JobStoreSupport.java:1007) Feb 24 13:08:00 anv2 BATCH ... 14 more Feb 24 13:08:00 anv2 BATCH [/opt/anv2/tomcat51][ INFO BATCH: JobLoggingListener riadok 29]: Pabk2AsyncCommunicationTask begins at 24.2.2014 13:08. Feb 24 13:08:00 anv2 BATCH [/opt/anv2/tomcat22][ERROR BATCH: JfosSchedulerListener riadok 12]: Job (DEFAULT.groupResumeJob threw an exception. Feb 24 13:08:00 anv2 BATCH org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: plaut.jfos.framework.shared.JfosSystemException: Couldn't update misfired trigger 'ORSR_CORWIN.6BmNugrJRPaoULS42pjFEw': nu ll] Feb 24 13:08:00 anv2 BATCH at org.quartz.core.JobRunShell.run(JobRunShell.java:234) Feb 24 13:08:00 anv2 BATCH at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) Feb 24 13:08:00 anv2 BATCH Caused by: plaut.jfos.framework.shared.JfosSystemException: Couldn't update misfired trigger 'ORSR_CORWIN.6BmNugrJRPaoULS42pjFEw': null Feb 24 13:08:00 anv2 BATCH at plaut.jfos.framework.scheduling.SchedulerHelper.resumeGroup(SchedulerHelper.java:119) Feb 24 13:08:00 anv2 BATCH at plaut.jfos.framework.scheduling.ResumeJob.executeTask(ResumeJob.java:26) Feb 24 13:08:00 anv2 BATCH at plaut.jfos.framework.scheduling.QuartzMasterJob.execute(QuartzMasterJob.java:54) Feb 24 13:08:00 anv2 BATCH at org.quartz.core.JobRunShell.run(JobRunShell.java:223) Feb 24 13:08:00 anv2 BATCH ... 1 more {code}
    via by Robert Kristofic,
    • org.quartz.JobPersistenceException: Couldn't update misfired trigger 'ORSR_CORWIN.6BmNugrJRPaoULS42pjFEw': null [See nested exception: java.lang.NullPointerException] at org.quartz.impl.jdbcjobstore.JobStoreSupport.updateMisfiredTrigger(JobStoreSupport.java:1018) at org.quartz.impl.jdbcjobstore.JobStoreSupport.resumeTrigger(JobStoreSupport.java:2364) at org.quartz.impl.jdbcjobstore.JobStoreSupport.resumeTriggerGroup(JobStoreSupport.java:2570) at org.quartz.impl.jdbcjobstore.JobStoreSupport$32.execute(JobStoreSupport.java:2541) at org.quartz.impl.jdbcjobstore.JobStoreSupport$40.execute(JobStoreSupport.java:3716) at org.quartz.impl.jdbcjobstore.JobStoreCMT.executeInLock(JobStoreCMT.java:242) at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInLock(JobStoreSupport.java:3712) at org.quartz.impl.jdbcjobstore.JobStoreSupport.resumeTriggerGroup(JobStoreSupport.java:2537) at org.quartz.core.QuartzScheduler.resumeTriggerGroup(QuartzScheduler.java:1235) at org.quartz.impl.StdScheduler.resumeTriggerGroup(StdScheduler.java:426) at plaut.jfos.framework.scheduling.SchedulerHelper.resumeGroup(SchedulerHelper.java:116) at plaut.jfos.framework.scheduling.ResumeJob.executeTask(ResumeJob.java:26) at plaut.jfos.framework.scheduling.QuartzMasterJob.execute(QuartzMasterJob.java:54) at org.quartz.core.JobRunShell.run(JobRunShell.java:223) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) Caused by: java.lang.NullPointerException at org.quartz.impl.jdbcjobstore.JobStoreSupport.updateMisfiredTrigger(JobStoreSupport.java:1007) ... 14 more
    No Bugmate found.