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
Native image build fails when using DynamoDB Enhanced Client
Expected behavior
Build succeeds
Actual behavior
Error: Unsupported features in 2 methods
Detailed message:
Error: Detected an instance of Random/SplittableRandom class in the image heap. Instances created during image generation have cached seed values and don't behave as expected. To see how this object got instantiated use --trace-object-instantiation=java.util.Random. The object was probably created by a class initializer and is reachable from a static field. You can request class initialization at image runtime by using the option --initialize-at-run-time=. Or you can write your own initialization methods and call them explicitly from your main entry point.
Trace: Object was reached by
reading field software.amazon.awssdk.core.retry.backoff.FullJitterBackoffStrategy.random of
constant software.amazon.awssdk.core.retry.backoff.FullJitterBackoffStrategy@493a12c reached by
scanning method software.amazon.awssdk.services.dynamodb.DynamoDbRetryPolicy.resolveRetryPolicy(DynamoDbRetryPolicy.java:82)
Call path from entry point to software.amazon.awssdk.services.dynamodb.DynamoDbRetryPolicy.resolveRetryPolicy(SdkClientConfiguration):
at software.amazon.awssdk.services.dynamodb.DynamoDbRetryPolicy.resolveRetryPolicy(DynamoDbRetryPolicy.java:62)
at software.amazon.awssdk.services.dynamodb.DefaultDynamoDbBaseClientBuilder.finalizeServiceConfiguration(DefaultDynamoDbBaseClientBuilder.java:67)
at software.amazon.awssdk.awscore.client.builder.AwsDefaultClientBuilder.finalizeChildConfiguration(AwsDefaultClientBuilder.java:132)
at software.amazon.awssdk.core.client.builder.SdkDefaultClientBuilder.syncClientConfiguration(SdkDefaultClientBuilder.java:157)
at software.amazon.awssdk.services.dynamodb.DefaultDynamoDbClientBuilder.buildClient(DefaultDynamoDbClientBuilder.java:44)
at software.amazon.awssdk.services.dynamodb.DefaultDynamoDbClientBuilder.buildClient(DefaultDynamoDbClientBuilder.java:22)
at software.amazon.awssdk.core.client.builder.SdkDefaultClientBuilder.build(SdkDefaultClientBuilder.java:129)
at com.augmentor.dao.QuantaResource.createQuanta(QuantaResource.java:29)
at com.oracle.svm.reflect.QuantaResource_createQuanta_67c7b58fb5daa5a5db921ac1e2bbccd0a5707888_181.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Method.java:566)
at java.util.ServiceLoader$ProviderImpl.invokeFactoryMethod(ServiceLoader.java:737)
at java.util.ServiceLoader$ProviderImpl.get(ServiceLoader.java:720)
at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:216)
at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:169)
at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:291)
at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_ARRAY:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Detected an instance of Random/SplittableRandom class in the image heap. Instances created during image generation have cached seed values and don't behave as expected. Object has been initialized by the org.apache.http.impl.auth.NTLMEngineImpl class initializer with a trace:
at java.security.SecureRandom.(SecureRandom.java:323)
at java.security.SecureRandom.getInstance(SecureRandom.java:383)
To Reproduce
Link to a small reproducer (preferably a Maven project if the issue is not Gradle-specific).
Or attach an archive containing the reproducer to the issue.
Steps to reproduce the behavior:
1.
2.
3.
Configuration
# Add your application.properties here, if applicable.
Screenshots
(If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
Output of uname -a or ver
Output of java -version
GraalVM version (if different from Java)
Quarkus version or git rev
Build tool (ie. output of mvnw --version or gradlew --version)
Additional context
(Add any other context about the problem here.)
The text was updated successfully, but these errors were encountered:
Describe the bug
Native image build fails when using DynamoDB Enhanced Client
Expected behavior
Build succeeds
Actual behavior
Error: Unsupported features in 2 methods
Detailed message:
Error: Detected an instance of Random/SplittableRandom class in the image heap. Instances created during image generation have cached seed values and don't behave as expected. To see how this object got instantiated use --trace-object-instantiation=java.util.Random. The object was probably created by a class initializer and is reachable from a static field. You can request class initialization at image runtime by using the option --initialize-at-run-time=. Or you can write your own initialization methods and call them explicitly from your main entry point.
Trace: Object was reached by
reading field software.amazon.awssdk.core.retry.backoff.FullJitterBackoffStrategy.random of
constant software.amazon.awssdk.core.retry.backoff.FullJitterBackoffStrategy@493a12c reached by
scanning method software.amazon.awssdk.services.dynamodb.DynamoDbRetryPolicy.resolveRetryPolicy(DynamoDbRetryPolicy.java:82)
Call path from entry point to software.amazon.awssdk.services.dynamodb.DynamoDbRetryPolicy.resolveRetryPolicy(SdkClientConfiguration):
at software.amazon.awssdk.services.dynamodb.DynamoDbRetryPolicy.resolveRetryPolicy(DynamoDbRetryPolicy.java:62)
at software.amazon.awssdk.services.dynamodb.DefaultDynamoDbBaseClientBuilder.finalizeServiceConfiguration(DefaultDynamoDbBaseClientBuilder.java:67)
at software.amazon.awssdk.awscore.client.builder.AwsDefaultClientBuilder.finalizeChildConfiguration(AwsDefaultClientBuilder.java:132)
at software.amazon.awssdk.core.client.builder.SdkDefaultClientBuilder.syncClientConfiguration(SdkDefaultClientBuilder.java:157)
at software.amazon.awssdk.services.dynamodb.DefaultDynamoDbClientBuilder.buildClient(DefaultDynamoDbClientBuilder.java:44)
at software.amazon.awssdk.services.dynamodb.DefaultDynamoDbClientBuilder.buildClient(DefaultDynamoDbClientBuilder.java:22)
at software.amazon.awssdk.core.client.builder.SdkDefaultClientBuilder.build(SdkDefaultClientBuilder.java:129)
at com.augmentor.dao.QuantaResource.createQuanta(QuantaResource.java:29)
at com.oracle.svm.reflect.QuantaResource_createQuanta_67c7b58fb5daa5a5db921ac1e2bbccd0a5707888_181.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Method.java:566)
at java.util.ServiceLoader$ProviderImpl.invokeFactoryMethod(ServiceLoader.java:737)
at java.util.ServiceLoader$ProviderImpl.get(ServiceLoader.java:720)
at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:216)
at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:169)
at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:291)
at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_ARRAY:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Detected an instance of Random/SplittableRandom class in the image heap. Instances created during image generation have cached seed values and don't behave as expected. Object has been initialized by the org.apache.http.impl.auth.NTLMEngineImpl class initializer with a trace:
at java.security.SecureRandom.(SecureRandom.java:323)
at java.security.SecureRandom.getInstance(SecureRandom.java:383)
To Reproduce
Link to a small reproducer (preferably a Maven project if the issue is not Gradle-specific).
Or attach an archive containing the reproducer to the issue.
Steps to reproduce the behavior:
1.
2.
3.
Configuration
# Add your application.properties here, if applicable.
Screenshots
(If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
Output of
uname -a
orver
Output of
java -version
GraalVM version (if different from Java)
Quarkus version or git rev
Build tool (ie. output of
mvnw --version
orgradlew --version
)Additional context
(Add any other context about the problem here.)
The text was updated successfully, but these errors were encountered: