Skip to content

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

@v3rm0n

Description

@v3rm0n

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)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions