-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Error: java.util.concurrent.ExecutionException: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: type is not available in this platform: com.oracle.svm.hosted.NativeImageSystemClassLoader #8883
Comments
Hi @anshu-zs, Thanks for reaching out to us! I noticed that you're currently using GraalVM CE 22.3.1. Have you had a chance to test our latest version, GraalVM CE 22.3.3? It's our most recent release and includes the latest fixes we have available. This might help resolve the issue you're encountering. If you've already tested with GraalVM CE 22.3.3 and the problem persists, could you provide a concise reproducer? Additionally, it would be helpful to know which OS version you're using and your system's architecture. |
Hi @selhagani Thank you for replying, I installed graalvm-ce-java11-22.3.3 macOS amd64 (although I'm using mac with aarch64 ) from here. PS: I installed the graalvm-ce-java11-22.3.3 macOS amd64 since I wasn't unable to find graal vm 22.3.3 for macOS arm64 On running the below command to create native image
I'm getting this error
Here are my system configurations:
Here is JDK version
Reproducer: Here are the full stack stack traces
|
I understand your concern. In this case, I'd recommend trying out GraalVM for JDK 22. It's compatible with macOS arm64, and you can easily select the version you need from the options available here. Give this version a test run, and let me know if you still encounter the same issue. I'm here to assist you further if you need any additional support. |
Hi @selhagani
Graal VM configurations
|
I noticed that since upgrading to GraalVM for JDK 22, you've encountered a new error. The error message suggests using the 'onlyWith' field in the TargetClass annotation to make substitution active only when necessary. It might be beneficial to review how your substitution-related annotations are configured. To provide more specific assistance, I really need a concise reproducer for the issue. Thanks! |
Hi @selhagani , thanks for replying. Apart from that classgraph is only working with version 22.3.x of graal vm, but at the time of image building I'm getting UnsupportedFeatureException mentioned here So I'm not sure how to proceed with version 22.3.x and which version to use at which classgraph might be working |
Hi @anshu-zs, I understand that your project is currently compatible with Java 11. However, please note that Native Image is an early adopter technology, and as such, we only support the latest versions, which are JDK 17 and JDK 21. Additionally, please be aware that version 22.3 is a discontinued release and will no longer receive any updates. Regarding the ClassGraph issue, I see that you have an open ticket on that subject. I recommend following up on that ticket for further assistance. |
Hi,
I am facing this issue while creating native image
Here is the complete build output
GraalVM and your environment:
openjdk 11.0.18 2023-01-17
OpenJDK Runtime Environment GraalVM CE 22.3.1 (build 11.0.18+10-jvmci-22.3-b13)
OpenJDK 64-Bit Server VM GraalVM CE 22.3.1 (build 11.0.18+10-jvmci-22.3-b13, mixed mode)
The text was updated successfully, but these errors were encountered: