-
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
StdSchedulerFactory ConcurrentModificationException reading system properties #474
Comments
/cc @SuperEvenSteven (sorry, typo earlier) |
I've submitted a PR #475 for this one |
chrisdennis
added a commit
that referenced
this issue
Oct 22, 2019
Issue #474 [master] Fix ConcurrentModificationException in StdSchedulerFactory
This was referenced Mar 8, 2021
This was referenced Mar 16, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using quartz 2.3.1 I get the following exception occasionally on startup of a webapp in Tomcat.
This is due to
StdSchedulerFactory.overrideWithSysProps
which looks like this:quartz/quartz-core/src/main/java/org/quartz/impl/StdSchedulerFactory.java
Lines 475 to 496 in 1ba8447
By calling
putAll
theentrySet()
iterator is used onSystem.getProperties()
which is not a thread-safe way of traversing System properties.The fix would be to instead traverse the System properties by using the Enumeration
propertyNames()
and callinggetProperty
on each property name.Happy to provide PR.
CC @SuperEventSteven
The text was updated successfully, but these errors were encountered: