-
Notifications
You must be signed in to change notification settings - Fork 41.1k
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 running in JDK24 on ARM #44918
Comments
I cannot reproduce with
and
That app generated from Spring Initializr starts fine with This looks like something on your end but I can't tell why. Can you please have another look and narrow down how we could reproduce it? Also, most of us are on ARM hardware and didn't notice any such issue. A |
I can reproduce it.
Even when extracting the JAR archive with
So it's not something in our loader. I suspect this is a JDK bug. |
Thanks for that! I have submitted a bug report at https://bugreport.java.com/bugreport/ and will report back when I get a response. |
Here's the JDK bug report: https://bugs.openjdk.org/browse/JDK-8353237 |
I can't reproduce it running a Debian Linux on qemu on a M1 Mac:
|
Thanks for persisting with this! Yes, I saw that the JDK team were unable to reproduce the issue. Given that they didn’t use the same combination (Linux on AArch64), I submitted feedback and asked whether they could do so. However with your latest test, it’s starting to almost look specific to the Raspberry Pi. |
You're using a Raspberry Pi 3 Model B too? |
Rpi5 on my end fwiw |
Yes I am: |
Bellsoft engineers (with whom I've been in contact with) seems to have found a possible problem and said that they have a workaround:
I haven't had the chance to test that yet. |
Hats off to your Bellsoft contacts - adding those flags does indeed resolve the issue! Thank you!
|
I guess it's now confirmed that this is indeed a JDK bug, so I'm closing this issue. Glad we found a workaround. AFAIU Bellsoft is working on a fix which they'll contribute to OpenJDK. |
I'm not sure if this is a JDK issue or Spring Boot, but I am unable to run a simple Spring Boot application when running on JDK24 on an ARM machine. When I say "simple" application, I literally mean I ran the Spring Initializr and built the jar.
Spring Initializr settings: Maven build, Java language, Spring Boot 3.4.4 (also tried 3.5.0-M3), jar packaging, Java 21 (also tried 24), no extra dependencies.
I uploaded this application to a Raspberry Pi 3 and ran it with "java -jar demo-0.0.1-SNAPSHOT.jar" and it produces a stacktrace similar to the below - the actual class not found varies from run to run.
When I revert to JDK 23.0.2, it runs fine.
Example stacktrace:
Another example stacktrace:
Output of java --version (tried Liberica and OpenJDK with the same result):
Output of uname -a:
The text was updated successfully, but these errors were encountered: