-
Notifications
You must be signed in to change notification settings - Fork 859
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
Native image build fails due to CachedSupplier/SplittableRandom #3323
Comments
Hello @MarkusKramer , I wasn't able to reproduce this issue. Building a native image does work with the Java AWS SDK 2.17.238 and GraalVM 22.1.0 Java 17 CE on my end. Could you elaborate the reproduction steps? You can also find guided documentation for GraalVM Native Image support for Java AWS SDK v2 here: https://aws.amazon.com/blogs/developer/graalvm-native-image-support-in-the-aws-sdk-for-java-2-x/ Best, Yasmine |
Hi. Okay interesting. Maybe an important aspect is that I'm using the url-connection-client (because I'm using the AWS SDK with Quarkus). I'm including the SDK like this in my Gradle build.gradle.kt file:
Hope that helps to reproduce. At least one other person also got the same issue as reported here quarkusio/quarkus#14904 (comment) |
Hello @MarkusKramer, Thank you very much for your response and for sharing your build.gradle.kt file. Best, Yasmine |
Thanks!
|
Hello @MarkusKramer ! I have put together a small demo project to try to reproduce it, using the same Gradle dependencies. I have tried to compile and run this small project with GraalVM Again, thanks for submitting this issue to our attention! |
I am also getting this issue |
Having this issue as well. To reproduce:
|
|
Describe the bug
Building a native image with Graal fails with the latest AWS SDK 2.17.238
The issue did not yet exist with AWS SDK 2.16.51.
I was able to work around it by using
--initialize-at-run-time=software.amazon.awssdk.utils.cache.CachedSupplier
.Expected Behavior
No error
Current Behavior
Reproduction Steps
Can be reproduced with Graal 21.3.0 and 'GraalVM 22.1.0.0-Final Java 17 Mandrel Distribution'.
Possible Solution
No response
Additional Information/Context
No response
AWS Java SDK version used
2.17.238
JDK version used
11 and 17
Operating System and version
Linux
The text was updated successfully, but these errors were encountered: