-
Notifications
You must be signed in to change notification settings - Fork 122
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 to currentLoader: Cannot invoke "java.lang.ClassLoader.getParent()" because "this.currentLoader" is null #821
Comments
Yes, if you can, I'd suggest to always use the latest 2.2.6 or 3.0.0. As well as the latest AsciidoctorJ v2.5.12, in fact the issue comes from AsciidoctorJ code, so try to upgrade it first. |
Hello @abelsromero, this error still occurs on asciidoctorj version > 2.5.11. We upgraded the asciidoctor-maven-plugin to 2.26 that uses version 2.5.11 of asciidoctorj and the same failure still occurs. asciidoctor-maven-plugin 3.0.0 also uses asciidoctorj 2.5.11 so it wouldn't fix the issue since the issue comes from asciidoctorj. Is there any chance this is going to be fixed later down the road? |
@kevinnammour I closed since there was no confirmation.
Sure thing! If it still happens, can I ask if you can provide a small reproducer? That would help a lot to find the issue. |
Hello @abelsromero, sorry for the late reply. I am not sure I would be able to send a small reproduction scenario. Our codeline is very large and there are almost ~120 references to this plugin. The failure rate is almost ~8%. |
@kevinnammour thanks for the info. Do you confirm this is a flake then? Knowing that also helps, because the way to approach is different. Simply, if this is the case, I'd need to re-run scenarios to see if it fails. |
True it is flaky indeed. We also tried to lower the number of threads to build with (maybe it would reduce the concurrency errors' rate), and the failure rate is ~similar. |
Thank you for taking your time to talk with us!
What is this issue about?
Description
While executing the
process-asciidoc
goal on a project of mine, I encountered this error:After taking a look at the code that caused the error:
it seems that there is an if statement that handles the case in which the currentLoader is null. And yet, currentLoader.getParent() failed with a null pointer exception. This makes me believe that the issue is related to multithreading.
Is it possible that this issue was handled in recent releases so we might need to upgrade to the latest release?
Environment information
The text was updated successfully, but these errors were encountered: