Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

java.lang.NoSuchFieldError: AWS_PARTITIONS_FILE #5449

Closed
asantoz opened this issue Aug 1, 2024 · 1 comment
Closed

java.lang.NoSuchFieldError: AWS_PARTITIONS_FILE #5449

asantoz opened this issue Aug 1, 2024 · 1 comment

Comments

@asantoz
Copy link

asantoz commented Aug 1, 2024

Describe the bug

Using the latest 2.26.27 sdk version, when I'm getting this error on a SSM get
eg.
val client = SecretsManagerClient.builder().region(Region.US_EAST_1).build() val result = client.getSecretValue(GetSecretValueRequest.builder().secretId(path).build()).secretString()

Expected Behavior

Result the secret path requested

Current Behavior

An exception or error caused a run to abort: AWS_PARTITIONS_FILE
java.lang.NoSuchFieldError: AWS_PARTITIONS_FILE
at software.amazon.awssdk.services.secretsmanager.endpoints.internal.DefaultPartitionDataProvider.systemSettingPartitionsFile(DefaultPartitionDataProvider.java:42)
at software.amazon.awssdk.services.secretsmanager.endpoints.internal.DefaultPartitionDataProvider.loadPartitions(DefaultPartitionDataProvider.java:36)
at software.amazon.awssdk.services.secretsmanager.endpoints.internal.RulesFunctions.loadPartitionData(RulesFunctions.java:158)
at software.amazon.awssdk.services.secretsmanager.endpoints.internal.RulesFunctions$LazyValue.value(RulesFunctions.java:191)
at software.amazon.awssdk.services.secretsmanager.endpoints.internal.RulesFunctions.awsPartition(RulesFunctions.java:100)
at software.amazon.awssdk.services.secretsmanager.endpoints.internal.DefaultSecretsManagerEndpointProvider.endpointRule6(DefaultSecretsManagerEndpointProvider.java:107)
at software.amazon.awssdk.services.secretsmanager.endpoints.internal.DefaultSecretsManagerEndpointProvider.endpointRule5(DefaultSecretsManagerEndpointProvider.java:100)
at software.amazon.awssdk.services.secretsmanager.endpoints.internal.DefaultSecretsManagerEndpointProvider.endpointRule0(DefaultSecretsManagerEndpointProvider.java:58)
at software.amazon.awssdk.services.secretsmanager.endpoints.internal.DefaultSecretsManagerEndpointProvider.resolveEndpoint(DefaultSecretsManagerEndpointProvider.java:36)
at software.amazon.awssdk.services.secretsmanager.endpoints.internal.SecretsManagerResolveEndpointInterceptor.modifyRequest(SecretsManagerResolveEndpointInterceptor.java:60)
at software.amazon.awssdk.core.interceptor.ExecutionInterceptorChain.modifyRequest(ExecutionInterceptorChain.java:65)
at software.amazon.awssdk.awscore.internal.AwsExecutionContextBuilder.runInitialInterceptors(AwsExecutionContextBuilder.java:242)
at software.amazon.awssdk.awscore.internal.AwsExecutionContextBuilder.invokeInterceptorsAndCreateExecutionContext(AwsExecutionContextBuilder.java:132)
at software.amazon.awssdk.awscore.client.handler.AwsSyncClientHandler.invokeInterceptorsAndCreateExecutionContext(AwsSyncClientHandler.java:67)
at software.amazon.awssdk.core.internal.handler.BaseSyncClientHandler.lambda$execute$1(BaseSyncClientHandler.java:76)
at software.amazon.awssdk.core.internal.handler.BaseSyncClientHandler.measureApiCallSuccess(BaseSyncClientHandler.java:182)
at software.amazon.awssdk.core.internal.handler.BaseSyncClientHandler.execute(BaseSyncClientHandler.java:74)
at software.amazon.awssdk.core.client.handler.SdkSyncClientHandler.execute(SdkSyncClientHandler.java:45)
at software.amazon.awssdk.awscore.client.handler.AwsSyncClientHandler.execute(AwsSyncClientHandler.java:53)
at software.amazon.awssdk.services.secretsmanager.DefaultSecretsManagerClient.getSecretValue(DefaultSecretsManagerClient.java:1129)

Reproduction Steps

val client = SecretsManagerClient.builder().region(Region.US_EAST_1).build() val result = client.getSecretValue(GetSecretValueRequest.builder().secretId(path).build()).secretString()
with version

Possible Solution

No response

Additional Information/Context

No response

AWS Java SDK version used

2.26.27

JDK version used

11

Operating System and version

MacOs and Linux

@asantoz asantoz added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Aug 1, 2024
@asantoz asantoz changed the title (short issue description) java.lang.NoSuchFieldError: AWS_PARTITIONS_FILE Aug 1, 2024
@debora-ito
Copy link
Member

NoSuchFieldError indicates you have SDK modules with mismatching versions in your classpath.

Check our Troubleshooting guide: How do I fix a NoClassDefFoundError, NoSuchMethodError or NoSuchFieldError?

Moving this to Github Discussions.

@debora-ito debora-ito removed bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Aug 1, 2024
@aws aws locked and limited conversation to collaborators Aug 1, 2024
@debora-ito debora-ito converted this issue into discussion #5453 Aug 1, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants