-
Notifications
You must be signed in to change notification settings - Fork 92
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
Concurrent modification exception under XML.load #459
Comments
Imported From: https://issues.scala-lang.org/browse/SI-4836?orig=1 |
@SethTisue said: Interested community members: if you consider this issue significant, feel free to open a new issue for it on GitHub, with links in both directions. |
Is this problem fixed? I can't find the corresponding ticket in the scala-xml repo. 🤔 |
it nearly certainly isn't |
I'll transfer the issue. In 2015, that capability didn't exist on GitHub. |
Thanks @SethTisue :) |
Dispatch user reported this bug: https://github.com/n8han/Databinder-Dispatch/issues/33
Dispatch is using the load method of the XML singleton object from potentially many threads. The stack trace suggests that the the static method SAXParserFactory.newInstance called in XML.load -> XMLLoader.loadXML is not thread safe. This factory should only be instantiated one time and the instance retained for all calls to newSAXParser; otherwise, if the factory itself is rebuilt on each call to XML.load it will need to be synchronized.
The text was updated successfully, but these errors were encountered: