# Error on transformation software.amazon.awssdk.core.internal.handler.BaseAsyncClientHandler

**URL:** <https://discuss.elastic.co/t/error-on-transformation-software-amazon-awssdk-core-internal-handler-baseasyncclienthandler/345278>\
**Category:** APM\
**Tags:** java\
**Created:** [October 18, 2023, 11:36am UTC](https://discuss.elastic.co/t/error-on-transformation-software-amazon-awssdk-core-internal-handler-baseasyncclienthandler/345278 "2023-10-18T11:36:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![IngoStrauch2020](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ingostrauch2020/32/123847_2.png) [@IngoStrauch2020](https://discuss.elastic.co/u/IngoStrauch2020)\
**Post date:** [October 18, 2023, 11:36am UTC](https://discuss.elastic.co/t/error-on-transformation-software-amazon-awssdk-core-internal-handler-baseasyncclienthandler/345278/1 "2023-10-18T11:36:25Z")

</div>

**APM Agent language and version** :  
Java 1.43.0

**Description of the problem including expected versus actual behavior.**  
After upgrading the AWS SDK v2 in our spring boot service from 2.20.162 to 2.21.0 we see the following message during startup that did not happen before:

```auto
2023-10-18 06:26:05,586 [main] WARN co.elastic.apm.agent.bci.bytebuddy.ErrorLoggingListener - Error on transformation software.amazon.awssdk.core.internal.handler.BaseAsyncClientHandler
java.lang.IllegalStateException: Cannot locate field named clientConfiguration for class software.amazon.awssdk.core.internal.handler.BaseAsyncClientHandler
	at net.bytebuddy.asm.Advice$OffsetMapping$ForField$Unresolved.resolve(Advice.java:2556) ~[elastic-apm-agent-40510175845988f13f6162ed8526f0b0-a9910a9589b2cceb9a41936e297bb41c.jar:1.43.0]
	at net.bytebuddy.asm.Advice$OffsetMapping$ForField.resolve(Advice.java:2481) ~[elastic-apm-agent-40510175845988f13f6162ed8526f0b0-a9910a9589b2cceb9a41936e297bb41c.jar:1.43.0]
...

```

As a consequence, traces that contain communication over SQS stop after an SQS message was sent and the spans after receiving the message are missing.

**Steps to reproduce**

1. Start a spring boot service that uses the APM Java agent 1.43.0 and the AWS Java SDK 2.20.162
2. Trigger a transaction that sends a message via SQS to another service with the same dependency versions
3. Check the corresponding trace in Kibana

**Expected behavior**  
No error message on startup.  
Traces continue after SQS message is received.

**Actual behavior**  
Error at service startup.  
Received SQS messages are not visible in their corresponding trace.

**Addtional information**  
I think the relevant change in the AWS Java SDK is this

> <https://github.com/aws/aws-sdk-java-v2/commit/9a0d9b896701e30018ae8e3934d7dd7e32997d3d#diff-148b2d4931defc8f8993345d2ff4a2664e3923117b27ce3ae301708404a8103d>
>
> \* Request level plugin execution
> 
> \* Update PR after internaly sync up about th…e approach
> 
> \* Update PR after internaly sync up about the approach
> 
> \* Fix time offset handling

Looking at the "Cannot locate field named clientConfiguration" part of the error to me it seems the root cause is that `clientConfiguration` has been removed from the derived class and only exists on the base class now where it's private.

Edit 2024-05-16: somehow this topic got flagged as spam?!? Editing it to unhide it...

---

<div class="post-metadata">

**Author:** ![nugusbayevkk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nugusbayevkk/32/126683_2.png) [@nugusbayevkk](https://discuss.elastic.co/u/nugusbayevkk)\
**Post date:** [October 19, 2023, 5:25am UTC](https://discuss.elastic.co/t/error-on-transformation-software-amazon-awssdk-core-internal-handler-baseasyncclienthandler/345278/2 "2023-10-19T05:25:02Z")

</div>

> [@IngoStrauch2020](#):
>
> 2.21.0

Hi @IngoStrauch2020 ,  
Yes, indeed, there have been changes in the new version of the aws sdk. Today I will send a hotfix to solve this problem.

---

<div class="post-metadata">

**Author:** ![Jonas\_Kunz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonas_kunz/32/110740_2.png) [@Jonas\_Kunz](https://discuss.elastic.co/u/Jonas_Kunz)\
**Post date:** [October 19, 2023, 11:09am UTC](https://discuss.elastic.co/t/error-on-transformation-software-amazon-awssdk-core-internal-handler-baseasyncclienthandler/345278/3 "2023-10-19T11:09:36Z")

</div>

@IngoStrauch2020 You can follow this [PR](https://github.com/elastic/apm-agent-java/pull/3373) for updates.

---

<div class="post-metadata">

**Author:** ![IngoStrauch2020](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ingostrauch2020/32/123847_2.png) [@IngoStrauch2020](https://discuss.elastic.co/u/IngoStrauch2020)\
**Post date:** [October 20, 2023, 9:20am UTC](https://discuss.elastic.co/t/error-on-transformation-software-amazon-awssdk-core-internal-handler-baseasyncclienthandler/345278/4 "2023-10-20T09:20:33Z")

</div>

Thank you so much, will report back once we've updated to the fixed version.

---

<div class="post-metadata">

**Author:** ![IngoStrauch2020](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ingostrauch2020/32/123847_2.png) [@IngoStrauch2020](https://discuss.elastic.co/u/IngoStrauch2020)\
**Post date:** [November 13, 2023, 1:37pm UTC](https://discuss.elastic.co/t/error-on-transformation-software-amazon-awssdk-core-internal-handler-baseasyncclienthandler/345278/5 "2023-11-13T13:37:36Z")

</div>

The PR got merged about a month ago but it seems there was no release since then.  
Do you have an estimate when the next version will come?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 11, 2023, 1:37pm UTC](https://discuss.elastic.co/t/error-on-transformation-software-amazon-awssdk-core-internal-handler-baseasyncclienthandler/345278/6 "2023-12-11T13:37:47Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
