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

Shutdown Hook in BundledCompilerFactory causes NoClassDefFoundError #462

Open
jbb01 opened this issue Feb 7, 2024 · 1 comment
Open

Comments

@jbb01
Copy link

jbb01 commented Feb 7, 2024

I'm trying to run the embedded host from a maven plugin. The build succeeds, but after the BUILD SUCCESS message an error occurs during the shutdown hook running the DirCleaner for the temporary directory containing the bundled dart executable.

Exception in thread "Thread-1" java.lang.NoClassDefFoundError: de/larsgrefer/sass/embedded/bundled/DirCleaner$DeletingFileVisitor
	at de.larsgrefer.sass.embedded.bundled.DirCleaner.run(DirCleaner.java:23)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.ClassNotFoundException: de.larsgrefer.sass.embedded.bundled.DirCleaner$DeletingFileVisitor
	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
	at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
	... 2 more

This appears to be a common problem when using shutdown hooks from inside maven plugins.

A method for running and removing the shutdown hook inside BundledCompilerFactory would probably solve the problem.

@appt2
Copy link
Contributor

appt2 commented May 23, 2024

@larsgrefer Hello, can you create a sass formatter so that the codes can be arranged, I tried several times but it didn't work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants