Skip to content
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

awssdk-alignment #61

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

aurelienmarie
Copy link
Contributor

Issue:

[ERROR] 2025-01-02 10:55:21,755 [main]  com.oltpbenchmark.DBWorkload main - Unexpected error when creating benchmark database tables.
java.lang.NoSuchFieldError: Class software.amazon.awssdk.utils.JavaSystemSetting does not have member field 'software.amazon.awssdk.utils.JavaSystemSetting USER_REGION'
        at software.amazon.awssdk.core.util.SdkUserAgent.getUserAgent(SdkUserAgent.java:101)
        at software.amazon.awssdk.core.util.SdkUserAgent.initializeUserAgent(SdkUserAgent.java:95)
        at software.amazon.awssdk.core.util.SdkUserAgent.<init>(SdkUserAgent.java:65)
        at software.amazon.awssdk.core.util.SdkUserAgent.create(SdkUserAgent.java:72)
        at software.amazon.awssdk.regions.util.ResourcesEndpointProvider.headers(ResourcesEndpointProvider.java:60)
        at software.amazon.awssdk.auth.credentials.internal.StaticResourcesEndpointProvider.<init>(StaticResourcesEndpointProvider.java:34)
        at software.amazon.awssdk.auth.credentials.InstanceProfileCredentialsProvider.getToken(InstanceProfileCredentialsProvider.java:229)
        at software.amazon.awssdk.auth.credentials.InstanceProfileCredentialsProvider.createEndpointProvider(InstanceProfileCredentialsProvider.java:211)
        at software.amazon.awssdk.auth.credentials.InstanceProfileCredentialsProvider.refreshCredentials(InstanceProfileCredentialsProvider.java:158)
        at software.amazon.awssdk.utils.cache.CachedSupplier.lambda$jitteredPrefetchValueSupplier$8(CachedSupplier.java:300)
        at software.amazon.awssdk.utils.cache.CachedSupplier$PrefetchStrategy.fetch(CachedSupplier.java:448)
        at software.amazon.awssdk.utils.cache.CachedSupplier.refreshCache(CachedSupplier.java:208)
        at software.amazon.awssdk.utils.cache.CachedSupplier.get(CachedSupplier.java:135)
        at software.amazon.awssdk.auth.credentials.InstanceProfileCredentialsProvider.resolveCredentials(InstanceProfileCredentialsProvider.java:149)
        at software.amazon.awssdk.auth.credentials.AwsCredentialsProvider.resolveIdentity(AwsCredentialsProvider.java:54)
        at software.amazon.awssdk.identity.spi.IdentityProvider.resolveIdentity(IdentityProvider.java:60)
        at software.amazon.awssdk.auth.credentials.AwsCredentialsProviderChain.resolveCredentials(AwsCredentialsProviderChain.java:109)
        at software.amazon.awssdk.auth.credentials.internal.LazyAwsCredentialsProvider.resolveCredentials(LazyAwsCredentialsProvider.java:45)
        at software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider.resolveCredentials(DefaultCredentialsProvider.java:129)
        at software.amazon.awssdk.auth.credentials.AwsCredentialsProvider.resolveIdentity(AwsCredentialsProvider.java:54)
        at software.amazon.awssdk.identity.spi.IdentityProvider.resolveIdentity(IdentityProvider.java:60)
        at software.amazon.awssdk.services.dsql.DefaultDsqlUtilities.resolveCredentials(DefaultDsqlUtilities.java:128)
        at software.amazon.awssdk.services.dsql.DefaultDsqlUtilities.generateAuthToken(DefaultDsqlUtilities.java:96)
        at software.amazon.awssdk.services.dsql.DefaultDsqlUtilities.generateDbConnectAdminAuthToken(DefaultDsqlUtilities.java:77)
        at software.amazon.awssdk.services.dsql.DsqlUtilities.generateDbConnectAdminAuthToken(DsqlUtilities.java:91)
        at com.oltpbenchmark.util.IAMUtil.generateAuroraDsqlPasswordToken(IAMUtil.java:40)
        at com.oltpbenchmark.util.IAMUtil.generateAuroraDsqlPasswordToken(IAMUtil.java:18)
        at com.oltpbenchmark.api.BenchmarkModule.makeConnection(BenchmarkModule.java:98)
        at com.oltpbenchmark.util.ConnectionUtil.makeConnectionWithRetry(ConnectionUtil.java:21)
        at com.oltpbenchmark.api.BenchmarkModule.createDatabase(BenchmarkModule.java:229)
        at com.oltpbenchmark.DBWorkload.runCreator(DBWorkload.java:767)
        at com.oltpbenchmark.DBWorkload.main(DBWorkload.java:487)

Description of changes:

As per the documentation How do I fix a NoClassDefFoundError, NoSuchMethodError or NoSuchFieldError?, this is resolved by using the same awssdk.

@Alif-2001 Alif-2001 merged commit 881b355 into amazon-contributing:dsql Jan 2, 2025
140 of 141 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants