-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Quarkus >=1.1.0.Final breaks GraalVM Polyglot #7145
Comments
Hi @alex-lmco and thanks for reporting this issue. It could be a consequence of the GraalVM downgrade we had to make between Quarkus
I'll give your reproducer a try with Quarkus |
I just ran Could you please do the same test and confirm me everything's OK? |
FYI this is on windows: GraalVM 19.3.1 + Quarkus 1.2.0.Final, JDK 11: $ java -version
openjdk version "11.0.6" 2020-01-14
OpenJDK Runtime Environment GraalVM CE 19.3.1 (build 11.0.6+9-jvmci-19.3-b07)
OpenJDK 64-Bit Server VM GraalVM CE 19.3.1 (build 11.0.6+9-jvmci-19.3-b07, mixed mode, sharing) $ ./gradlew test
> Task :test
TestRunnerTest > test() FAILED
java.lang.NoClassDefFoundError at TestRunnerTest.java:10 GraalVM 19.3.1 + Quarkus 1.2.0.Final, JDK 8: $ java -version
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (build 1.8.0_242-b06)
OpenJDK 64-Bit GraalVM CE 19.3.1 (build 25.242-b06-jvmci-19.3-b07, mixed mode) $ ./gradlew test
> Task :test
TestRunnerTest > test() FAILED
java.lang.NoClassDefFoundError at TestRunnerTest.java:10 I can't get master (as of this morning) or 1.3.0.Alpha1 to work due to an issue with quarkusTestConfig: **Task :quarkusTestConfig FAILED
Caching disabled for task ':quarkusTestConfig' because:
Build cache is disabled
Task ':quarkusTestConfig' is not up-to-date because:
Task has not declared any outputs despite executing actions.
:quarkusTestConfig (Thread[Execution worker for ':',5,main]) completed. Took 0.633 secs.** |
I don't have a Windows machine with GraalVM right now, but I'll try to run a Windows test and see if there's any difference on my side. |
I double-checked on the MacBook I used for the test yesterday, it is definitely working fine:
I also ran the same test using Windows + GraalVM CE 19.3.1 (JDK 8 edition) and it failed, so I can confirm there's an issue and it seems to only affect Windows. |
Here's another problem: I don't know how I made it fail on Windows, now I can't reproduce the failure anymore... |
I can consistently reproduce it on windows by just running ./gradlew test. Unfortunately I cannot not reproduce it which would be helpful for development since we run our binaries containerized on linux but do our development on windows. |
Well, I'm really sorry but I tried multiple times with each GraalVM version and couldn't reproduce the failure. Here's what I did, each time with an unmodified
Either I'm missing something obvious here or the failure I saw was a false positive. @gsmet: Would you have a suggestion of someone who could help testing this on Windows? |
Thank you for the inclusion of the "refresh-dependencies" part. I apparently had a couple bad jars in my local maven repo. When I cleared out ~/.m2 everything went away and both graalvm jdk11 and graalvm jdk8 work just fine. Thank you! |
You're welcome! |
Describe the bug
Quarkus version >= 1.1.0.Final breaks GraalVM Polyglot. On 1.1.0.CR1 polyglot works as expected. Past 1.1.0.CR1 there is a classpath error related to finding the ScriptEngine.
Expected behavior
Able to initialize a script context
Actual behavior
Unable to initialize a script context:
TestRunnerTest > test() FAILED
java.lang.NoClassDefFoundError: Could not initialize class org.graalvm.polyglot.Engine$ImplHolder
at org.graalvm.polyglot.Engine.getImpl(Engine.java:263)
at org.graalvm.polyglot.Engine$Builder.build(Engine.java:501)
at org.graalvm.polyglot.Context$Builder.build(Context.java:1406)
at org.graalvm.polyglot.Context.create(Context.java:700)
at org.example.TestRunner.run(TestRunner.java:8)
at org.example.TestRunnerTest.test(TestRunnerTest.java:10)
To Reproduce
Steps to reproduce the behavior:
./gradlew test
in the minimal example projectConfiguration
Screenshots
Environment (please complete the following information):
Additional context
test.zip
The text was updated successfully, but these errors were encountered: