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

java.lang.UnsupportedOperationException from SnsInterceptor when trying to publish #7147

Closed
v3rm0n opened this issue Jun 10, 2024 · 2 comments
Assignees
Labels
inst: aws sdk AWS SDK instrumentation type: bug
Milestone

Comments

@v3rm0n
Copy link

v3rm0n commented Jun 10, 2024

Looks like the interceptor is trying to modify an immutable collection

java.lang.UnsupportedOperationException: null
	at java.base/java.util.ImmutableCollections.uoe(Unknown Source)
	at java.base/java.util.ImmutableCollections$AbstractImmutableMap.put(Unknown Source)
	at com.amazonaws.internal.SdkInternalMap.put(SdkInternalMap.java:82)
	at datadog.trace.instrumentation.aws.v1.sns.SnsInterceptor.beforeMarshalling(SnsInterceptor.java:49)
	at com.amazonaws.AmazonWebServiceClient.beforeMarshalling(AmazonWebServiceClient.java:631)
	at com.amazonaws.services.sns.AmazonSNSClient.executePublish(AmazonSNSClient.java:2654)
	at com.amazonaws.services.sns.AmazonSNSClient.publish(AmazonSNSClient.java:2639)
@mcculls
Copy link
Contributor

mcculls commented Jun 10, 2024

Hi @v3rm0n - this looks related to the new SNS instrumentation added in #6908

As a workaround you can either use v1.34.0 or turn this integration off with this JVM option:

-Ddd.integration.sns.enabled=false

or this environment variable:

DD_INTEGRATION_SNS_ENABLED=false

Copy link
Contributor

🤖 This issue has been addressed in the latest release. See full details in the Release Notes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inst: aws sdk AWS SDK instrumentation type: bug
Projects
None yet
Development

No branches or pull requests

4 participants