-
-
Notifications
You must be signed in to change notification settings - Fork 649
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
Since build 447 unable to use nashorn-core #1462
Comments
Update: This could be solved by bumping the log4j jul dep as mentioned at apache/logging-log4j2#3125 (comment) |
Any update on this? |
L4J broke nashorn due to some changes which they've added a mitigation for in their snapshots, but, that requires some looking into in terms of some other changes they've made which impacts velocities builds nashorn has also dropped a fix in their snapshots for this issue |
I provided the required changes in my pull request, apart from me being unsure what to put as the annotation group ID it did work from my testing. If stability is a concern, I propose rolling back to the previous logj4 version before this build where things were working normally, and then updating once a stable log4j drops. Thanks! |
|
|
the nature of "ideally" is a level of acceptance that it might not be worth disabling that task, but, I really doubt that l4j would require that you have to set some variables to build their project in general "fix this on your side" does not mean forcing us to jump to snapshot dependencies mid cycle and breaking downstream projects, it means testing fixes on your side rather. However, I will note that I did hide that Nashorn issue when building a snapshot of it myself the other week for testing, so, I can confirm that it's busted from the seems of it. |
Appreciated the swift response and thanks for the info. I completely understand snapshots are suboptimal. I will continue to contact the author of these libraries to see if we can expedite a fix. For anyone following this thread, one alternative is using GraalVM, which unfortunately comes with a performance overhead and lack of Java access, so it would effectively break those JavaScript accessing Java methods/fields and is unfeasible. |
Background:
There is a problem since Velocity build 447 preventing Rhino (javascript engine) to work. The problem started in build 447 after updating the dependencies: f2d6e14
This affects all plugins using JavaScript variables which are now unable to use the nashorn-core library.
How to fix:
This has already been fixed at Java's team, see openjdk/nashorn@5e78947
However ETA for nashorn-core release, so the relevant library has prepared a patch already:
apache/logging-log4j2#3125
Please consider shipping logging-log4j2 2.25.0-SNAPSHOT into velocity to solve this problem.
Stack trace:
Code:
(The "at org.mineacademy.fo.platform.FoundationPlatform.(FoundationPlatform.java:55) ~[?:?]" is highlighted)
Thanks.
Matej
The text was updated successfully, but these errors were encountered: