-
Notifications
You must be signed in to change notification settings - Fork 33
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
org.moditect.layrry.example.links.test.LayrryLinksTest.canAddPluginToEmptyPluginsDirectory fails with ClassNotFoundException #80
Comments
Hi Martjin, could you add the output of |
It may be related to #77 I've got the same compilation error when running a full build with JDK 11, however the build succeeds (locally) if JDK 15 is used. The build is currently broken on GitHub actions even if JDK 15 is used (due to a timing issue when running the vert.x test). |
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) |
Thanks @karianna. May I suggest you to try out the build with JDK 15+? |
15 works :-) |
Thanks for reporting back. So we should get to the grounds of this, I don't see any fundamental reason why 11 shouldn't work. |
Indeed. Tests were working fine with Vert.x |
Oh, that's interesting. Classloading structure changed a fair bit between
Vert.x 3 and 4, AFAIK.
… |
I suppose we could switch back to |
Alright. Moved Vert.x back to |
Tried different distros of Java version: 11.0.10, vendor: Azul Systems, Inc., runtime: /Users/aalmiray/.sdkman/candidates/java/11.0.10-zulu/zulu-11.jdk/Contents/Home
Java version: 11.0.10, vendor: Amazon.com Inc., runtime: /Users/aalmiray/.sdkman/candidates/java/11.0.10.9.1-amzn
Java version: 11.0.10, vendor: BellSoft, runtime: /Users/aalmiray/.sdkman/candidates/java/11.0.10-librca
Java version: 11.0.10, vendor: AdoptOpenJDK, runtime: /Users/aalmiray/.sdkman/candidates/java/11.0.10.hs-adpt
Java version: 11.0.10, vendor: GraalVM Community, runtime: /Users/aalmiray/.sdkman/candidates/java/21.0.0.r11-grl However JDK 12 (had to use SapMachine as that's the only version of 12 provided by SDKMAN!) works. Azul's 13 works as well. Is there something weird going on with JDK 11? |
[INFO] --- maven-surefire-plugin:3.0.0-M4:test (default-test) @ layrry-links-runner ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.moditect.layrry.example.links.test.LayrryLinksTest
[ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 2.349 s <<< FAILURE! - in org.moditect.layrry.example.links.test.LayrryLinksTest
[ERROR] org.moditect.layrry.example.links.test.LayrryLinksTest.canAddPluginToEmptyPluginsDirectory Time elapsed: 2.041 s <<< ERROR!
java.lang.IllegalArgumentException: java.lang.reflect.InvocationTargetException
at org.moditect.layrry.example.links.test.LayrryLinksTest.canAddPluginToEmptyPluginsDirectory(LayrryLinksTest.java:113)
Caused by: java.lang.reflect.InvocationTargetException
at org.moditect.layrry.example.links.test.LayrryLinksTest.canAddPluginToEmptyPluginsDirectory(LayrryLinksTest.java:113)
Caused by: java.lang.NoClassDefFoundError: io/vertx/core/AbstractVerticle
at org.moditect.layrry.example.links.test.LayrryLinksTest.canAddPluginToEmptyPluginsDirectory(LayrryLinksTest.java:113)
Caused by: java.lang.ClassNotFoundException: io.vertx.core.AbstractVerticle
at org.moditect.layrry.example.links.test.LayrryLinksTest.canAddPluginToEmptyPluginsDirectory(LayrryLinksTest.java:113)
[ERROR] org.moditect.layrry.example.links.test.LayrryLinksTest.canAddAndRemovePlugin Time elapsed: 0.25 s <<< ERROR!
java.lang.IllegalArgumentException: java.lang.reflect.InvocationTargetException
at org.moditect.layrry.example.links.test.LayrryLinksTest.canAddAndRemovePlugin(LayrryLinksTest.java:72)
Caused by: java.lang.reflect.InvocationTargetException
at org.moditect.layrry.example.links.test.LayrryLinksTest.canAddAndRemovePlugin(LayrryLinksTest.java:72)
Caused by: java.lang.NoClassDefFoundError: io/vertx/core/AbstractVerticle
at org.moditect.layrry.example.links.test.LayrryLinksTest.canAddAndRemovePlugin(LayrryLinksTest.java:72)
Caused by: java.lang.ClassNotFoundException: io.vertx.core.AbstractVerticle
at org.moditect.layrry.example.links.test.LayrryLinksTest.canAddAndRemovePlugin(LayrryLinksTest.java:72)
The text was updated successfully, but these errors were encountered: