-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
RESTEasy fails to build native image on latest 17 build of GraalVM Community and GraalVM #44877
Comments
Yeah, we had all sorts of weird issues with the Java 17 version of GraalVM. Even if you app is using Java 17, we recommend to use the Java 21 one. We need to find a place to document it properly. |
Not exactly documented but Quarkus throws a warning like this:
which admittedly also comes with some issues: a) uses the internal versioning instead of the JDK version so people might get confused, b) suggests upgrading to 23.1.0 which is not the latest 23.1 release. |
- Per quarkusio/quarkus#44877, GraalVM for Java 21 is recommended even for Java 17 projects, since GraalVM for Java 17 has weird issues with Quarkus - Use quarkus.native.enabled since quarkus.package.type is deprecated - Use org.graalvm.sdk:nativeimage instead of org.graalvm.sdk:graalvm-sdk per the recommendation in the logs
- Per quarkusio/quarkus#44877, GraalVM for Java 21 is recommended even for Java 17 projects, since GraalVM for Java 17 has weird issues with Quarkus - Use quarkus.native.enabled since quarkus.package.type is deprecated - Use org.graalvm.sdk:nativeimage instead of org.graalvm.sdk:graalvm-sdk per the recommendation in the logs
Describe the bug
In our build matrix, we use the
setup-graalvm
action to get the latest GraalVM corresponding to the matrix's Java version:For Java 17, this fetches
java 17.0.9-graalce
(which can be installed with SDKMan:sdk install java 17.0.9-graalce
)RESTEasy uses Netty, which causes a build time error:
The issue does not reproduce using latest Java 17 version of Mandrel (23.0.6.r17-mandrel).
Expected behavior
The
REST
sample project generated by code.quarkus.io native image builds successfully on the latest version of GraalVM for Java 17.Actual behavior
This error appears during the native image build:
How to Reproduce?
Reproducer: https://github.com/Christopher-Chianelli/issue-reproducer/tree/quarkus-native-17-failed-build
(App was generated from code.quarkus.io)
Output of
uname -a
orver
Linux 6.11.10-300.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Nov 23 00:51:20 UTC 2024 x86_64 GNU/Linux
Output of
java -version
Java(TM) SE Runtime Environment Oracle GraalVM 17.0.12+8.1 (build 17.0.12+8-LTS-jvmci-23.0-b41)
Mandrel or GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.17.2
Build tool (ie. output of
mvnw --version
orgradlew --version
)3.9.9
Additional information
No response
The text was updated successfully, but these errors were encountered: