Skip to content
This repository has been archived by the owner on May 2, 2021. It is now read-only.

java.lang.NoClassDefFoundError: alda/error/ExitCode #38

Closed
daveyarwood opened this issue Dec 3, 2018 · 7 comments
Closed

java.lang.NoClassDefFoundError: alda/error/ExitCode #38

daveyarwood opened this issue Dec 3, 2018 · 7 comments
Labels

Comments

@daveyarwood
Copy link
Member

Moved from alda-lang/alda-core#68.

Quoth @0atman:

When I upgraded from 1.0.1 to 1.1.0, with alda update, I got this error:

Exception in thread "main" java.lang.NoClassDefFoundError: alda/error/ExitCode

However, when I re-run the update, my alda has been updated successfully.

@daveyarwood
Copy link
Member Author

I see this happen all the time when I run alda update. I think there is probably something weird about the ExitCode class in the client, but I don't fully understand the problem. I believe this is the line where it's blowing up.

It's weird, though, because I only seem to see this happen when following the codepath for alda update.

Help appreciated here -- NoClassDefFoundError is black magic to me.

@0atman
Copy link
Member

0atman commented Dec 3, 2018

Spooky!

@daveyarwood
Copy link
Member Author

👻

@TBuc
Copy link
Contributor

TBuc commented Dec 4, 2018

Couldn't reproduce the issue on Windows 10. I've looked around a little but can't isolate the issue.

Could someone experiencing this issue try to generate an hash of the downloaded alda executable which throws the exception, comparing it to the hash of the working one (i.e. after re-issuing the update command) and see if they match?

@daveyarwood
Copy link
Member Author

I know for a fact that the update is successful when you get this error. The JVM is just blowing up when it tries to exit.

@0atman
Copy link
Member

0atman commented Apr 15, 2019

Happened again on my celebratory update to 1.3.0, fyi:

Install alda '1.3.0' over '1.1.0' ? [yN]: y
Downloading https://github.com/alda-lang/alda/releases/download/1.3.0/alda...

Updated alda 1.1.0 => 1.3.0.
If you have any currently running servers, you may want to restart them so that they are running the latest version.
Exception in thread "main" java.lang.NoClassDefFoundError: alda/error/ExitCode
	at alda.Main.main(Main.java:380)
Caused by: java.lang.ClassNotFoundException: alda.error.ExitCode
	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 1 more
λ ~ alda update                                                                                         1
Your version of alda (1.3.0) is up to date!```

daveyarwood added a commit that referenced this issue Jun 26, 2019
enhance verbosity for debugging issue #38
@daveyarwood
Copy link
Member Author

Alda v2 is implemented in Go, so this issue will go away when Alda v2 is released.

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

No branches or pull requests

3 participants