michaelklishin / quartz-mongodb

A MongoDB-based store for the Quartz scheduler. This fork strives to be as feature complete as possible. Originally by MuleSoft.
Other
247 stars 199 forks source link

quartz no longer execute job when reconnected mongodb from disconnect for a while #171

Closed thloml closed 4 years ago

thloml commented 5 years ago

I close mongodb server when I run my application, for a while, console prints errors like this:

Exception in thread "SchedulerFactory_QuartzSchedulerThread" java.lang.AbstractMethodError: com.test.proj.baseservice.vo.TestMongoStore.getAcquireRetryDelay(I)J at org.quartz.core.QuartzSchedulerThread.computeDelayForRepeatedErrors(QuartzSchedulerThread.java:450) at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:272) then I restart mongodb server but my scheduled job never run again .

I think the reason is that the MongoDBJobStore doesn't implements getAcquireRetryDelay method in JobStore, but how did it compiled???

MrZbb commented 4 years ago

change quartz version from 2.3.0 to 2.1.0

thloml commented 4 years ago

Thanks, it works for me!