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
The reflect-config.json is missing in the s3 for services-custom/s3-transfer-manager/src/main/java/software/amazon/awssdk/transfer/s3/internal/ApplyUserAgentInterceptor.java which causes the Spring Boot Native build to throw a java.lang.ClassNotFoundException
Expected Behavior
When the reflect-config.json is added like in other packages and it is added via -H:ReflectionConfigurationResources to the native build, no java.lang.ClassNotFoundException is going to occur anymore.
Current Behavior
There is a java.lang.ClassNotFoundException during the runtime as the class ApplyUserAgentInterceptor.java can not be loaded JIT in a native image.
This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
Describe the bug
The
reflect-config.json
is missing in thes3
forservices-custom/s3-transfer-manager/src/main/java/software/amazon/awssdk/transfer/s3/internal/ApplyUserAgentInterceptor.java
which causes the Spring Boot Native build to throw a java.lang.ClassNotFoundExceptionExpected Behavior
When the
reflect-config.json
is added like in other packages and it is added via-H:ReflectionConfigurationResources
to the native build, nojava.lang.ClassNotFoundException
is going to occur anymore.Current Behavior
There is a
java.lang.ClassNotFoundException
during the runtime as the class ApplyUserAgentInterceptor.java can not be loaded JIT in a native image.Reproduction Steps
Native compile a Spring Boot application like described here: https://aws.amazon.com/de/blogs/developer/graalvm-native-image-support-in-the-aws-sdk-for-java-2-x/ - note: the
-H:ReflectionConfigurationResources=META-INF/native-image/software.amazon.awssdk/s3/reflect-config.json
is not working anymore as it is missing.Possible Solution
Add the
reflect-config.json
to the s3 package with the following content.[ { "name": "software.amazon.awssdk.transfer.s3.internal.ApplyUserAgentInterceptor", "methods": [ { "name": "<init>", "parameterTypes": [] } ] } ]
Additional Information/Context
N/A
AWS Java SDK version used
2.25.34
JDK 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: