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

ClassNotFoundException when JVM tearing down #825

Open
chanseokoh opened this issue Jan 28, 2020 · 8 comments
Open

ClassNotFoundException when JVM tearing down #825

chanseokoh opened this issue Jan 28, 2020 · 8 comments

Comments

@chanseokoh
Copy link
Contributor

Probably for the same reason as GoogleContainerTools/jib#2016. I think this clean-up hook never really worked.

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 47.699 s
[INFO] Finished at: 2020-01-03T21:23:12+05:30
[INFO] Final Memory: 12M/153M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.google.cloud.tools:appengine-maven-plugin:2.2.0:run (default-cli) on project helloworld: Execution default-cli of goal com.google.cloud.tools:appengine-maven-plugin:2.2.0:run failed: com.google.cloud.tools.managedcloudsdk.command.CommandExitException: Process failed with exit code: 1 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
Exception in thread "Thread-1" java.lang.NoClassDefFoundError: com/google/common/io/RecursiveDeleteOption
        at com.google.cloud.tools.managedcloudsdk.components.WindowsBundledPythonCopier.deleteCopiedPython(WindowsBundledPythonCopier.java:82)
        at com.google.cloud.tools.managedcloudsdk.components.WindowsBundledPythonCopier.lambda$copyPython$0(WindowsBundledPythonCopier.java:58)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: com.google.common.io.RecursiveDeleteOption
        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)
        ... 3 more
@JenniferJohnson89
Copy link

I noticed that there is a similar problem at https://github.com/GoogleContainerTools/jib. Perhaps we can refer to this issue to find more context about the bug.
Or maybe this can help us find the faulty lines and we can also refer to the fix for the bug?

@JoeWang1127
Copy link
Contributor

close as not planned

@elefeint
Copy link
Contributor

elefeint commented Sep 29, 2022

This stack trace has been spotted in the wild again, on a windows build in GoogleCloudPlatform/app-maven-plugin#480?. I wonder if referencing RecursiveDeleteOption.ALLOW_INSECURE in WindowsBundledPythonCopier in a class field, or anywhere else that runs before JVM shutdown, might be an easy workaround.
If not, then a similar solution as in Jib applies.

@elefeint elefeint reopened this Sep 29, 2022
@mpeddada1 mpeddada1 added the p2 label Sep 30, 2022
@zhumin8
Copy link
Contributor

zhumin8 commented Oct 17, 2022

hmm, @elefeint I think you meant app-maven-plugin#480?

@elefeint
Copy link
Contributor

Updated, thanks!

@burkedavison burkedavison added p3 and removed p2 labels Mar 1, 2023
@chanseokoh
Copy link
Contributor Author

@craigmit the error is about deleting temporary local files on your laptop. It has nothing to do with any online files or apps.

@craigmit
Copy link

craigmit commented Feb 17, 2024

@craigmit the error is about deleting temporary local files on your laptop. It has nothing to do with any online files or apps.

Ah, thanks. I misunderstood. Post deleted. Cheers.

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

No branches or pull requests

8 participants