You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I already tried to add the reflect-config.json and the resource-config.json into the classpath and run the image but failed with the following error inside the container: container.log
Is there any hint how to use AWS CRT with Spring Boot Native?
aws-crt-java version used
v0.29.18
Java version used
jdk17.0.10
Operating System and version
linux / ubi9-minimal:9.3-1612
The text was updated successfully, but these errors were encountered:
Describe the bug
Spring Boot Native build is not possible with aws-crt-java as there are many errors during the runtime.
Expected Behavior
Spring Boot Native build should run and use the JNI functionalities as it would run in a JVM.
Current Behavior
There are several issues during the runtime see solution.
Reproduction Steps
Perform a native-image build with GraalVM with Spring Boot 3.2.x.
Possible Solution
reflect-config.json
and add the following content[ { "name": "software.amazon.awssdk.crt.s3.S3Client", "methods": [ { "name": "<init>", "parameterTypes": [] } ] } ]
This is required during the native build
-H:ReflectionConfigurationResources=META-INF/.../reflect-config.json
resource-config.json
and add the following contentNote:
...
means for each so-file.This is require during the native build
-H:ResourceConfigurationResources=META-INF/.../resource-config.json
jni-config.json
for the JNI resources so that it can be applied like described here: https://www.graalvm.org/latest/reference-manual/native-image/dynamic-features/JNI/ and here https://docs.oracle.com/en/graalvm/enterprise/20/docs/reference-manual/native-image/JNI/#integration - alternatively apply the code as a custom FeatureAdditional Information/Context
I already tried to add the
reflect-config.json
and theresource-config.json
into the classpath and run the image but failed with the following error inside the container: container.logIs there any hint how to use AWS CRT with Spring Boot Native?
aws-crt-java version used
v0.29.18
Java version used
jdk17.0.10
Operating System and version
linux / ubi9-minimal:9.3-1612
The text was updated successfully, but these errors were encountered: