-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NPE thrown when acquiring next trigger due to null next fire time value #189
Comments
Any progress on this? |
We are also getting this error. Hope these details help in fixing the issue. Let me know if you need more details or want me to try out some thing. |
Found one more bug report with possible solution. #174 |
…ue to null next fire time value
I have put in a PR for this #361 However I should point out that this is not so much as bug than improvement to the code. Per design, there should not be any trigger store in DB with nextFireTime that will return null. If it does, it should already been remove from DB. If we do see this case, there is something wrong with the Trigger implementation of some kind of bad data with this trigger. There is no way to recover from this since it's unexpected. So as code improvement, we log a WARNING. Users should investigate why their trigger is in this state, and manually clean up the data in DB. Please do report new issue if you continue to see this. |
…ster NPE thrown when acquiring next trigger due to null next fire time value #189
2.3.x #189 improv: NPE thrown when acquiring next trigger due to null next fire time value
Warning regularly appears due to race condition on multi-instance environments although nothing is wrong
Warning regularly appears due to race condition on multi-instance environments although nothing is wrong Signed-off-by: Munich81 <[email protected]>
Warning regularly appears due to race condition in multi-instance environments although nothing is wrong
Warning regularly appears due to race condition in multi-instance environments although nothing is wrong Signed-off-by: Munich81 <[email protected]>
During a soak testing of our application using Quartz (version 2.2.3), we notice the following exceptions being thrown from time to time:
Line 2837 of
JobStoreSupport.java
corresponds to the following code:That is
getNextFireTime()
is null. The API for this method states...If the trigger will not fire again, null will be returned
. It looks like this code needs to check ifgetNextFireTime()
is null before doing agetTime()
.Is this a correct assessment?
The text was updated successfully, but these errors were encountered: