Skip to content
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

Maven Plugin : Vert.x not shut down cleanly #5683

Closed
EricWittmann opened this issue Dec 6, 2024 · 2 comments
Closed

Maven Plugin : Vert.x not shut down cleanly #5683

EricWittmann opened this issue Dec 6, 2024 · 2 comments
Assignees
Milestone

Comments

@EricWittmann
Copy link
Member

Not sure if this is caused by the preceding upload errors, but the Maven build always ends with an exception that is vert-x3/issues#288 by Vert.x still running in the background while the plugin's class realm is torn down:

Exception in thread "Thread-4" java.lang.NoClassDefFoundError: io/vertx/core/file/impl/FileSystemImpl$11
        at io.vertx.core.file.impl.FileSystemImpl.delete(FileSystemImpl.java:898)
        at io.vertx.core.file.impl.FileCache.deleteCacheDir(FileCache.java:140)
        at io.vertx.core.file.impl.FileCache.lambda$runHook$0(FileCache.java:92)
        at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.lang.ClassNotFoundException: io.vertx.core.file.impl.FileSystemImpl$11
        at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:225)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:210)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:205)
        ... 4 more
@EricWittmann
Copy link
Member Author

EricWittmann commented Dec 6, 2024

Reproducer:

issue5683-reproducer.zip

  1. Start up a Registry server
  2. Build/install latest registry from main so you have 3.0.6-SNAPSHOT built
  3. Run:
mvn test

Output:

~/issue5683-reproducer$ mvn test
[INFO] Scanning for projects...
[INFO] 
[INFO] --------------< io.apicurio.issues:issue-5683-reproducer >--------------
[INFO] Building issue-5683-reproducer 1
[INFO]   from pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- apicurio-registry:3.0.6-SNAPSHOT:register (register-artifact) @ issue-5683-reproducer ---
[INFO] Successfully registered artifact [default] / [SearchRequest].  GlobalId is [2]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.067 s
[INFO] Finished at: 2024-12-06T12:52:41-05:00
[INFO] ------------------------------------------------------------------------
Exception in thread "Thread-3" java.lang.NoClassDefFoundError: io/vertx/core/file/impl/FileSystemImpl$11
	at io.vertx.core.file.impl.FileSystemImpl.delete(FileSystemImpl.java:898)
	at io.vertx.core.file.impl.FileCache.deleteCacheDir(FileCache.java:140)
	at io.vertx.core.file.impl.FileCache.lambda$runHook$0(FileCache.java:92)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.lang.ClassNotFoundException: io.vertx.core.file.impl.FileSystemImpl$11
	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)
	at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:225)
	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:210)
	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:205)
	... 4 more

@EricWittmann
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

2 participants