NullPointerException in AmazonHttpClientInstrumentation
See original GitHub issueHi,
We currently get an exception in the AmazonHttpClientInstrumentation class at line 71 in v 1.33.0:
at co.elastic.apm.agent.awssdk.v1.AmazonHttpClientInstrumentation$AdviceClass.enterInvoke(AmazonHttpClientInstrumentation.java:71)
Apparently the awsService
is null in our case after String awsService = request.getHandlerContext(HandlerContextKey.SERVICE_ID);
. I am not sure why this is and I will investigate further. Currently we can’t use the latest version because of this.
Issue Analytics
- State:
- Created a year ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Java Agent version 1.x - Elastic
Version 1.17.0 introduced a regression. Fixes NullPointerException related to JAX-RS and Quartz instrumentation - #1249; Expanding k8s pod ID discovery to some ...
Read more >java.lang.NullPointerException for ... - Stack Overflow
Trying to deploy a web app on websphere 3.5.5 but it results in null pointer exception at JAXRSServletContainerInitializer.
Read more >Determine overhead of the agent,about elastic/apm-agent-java ...
... NullPointerException in AmazonHttpClientInstrumentation HOT 7; Unable to attach to JVM with PID = xxx HOT 1; [META 671] enrich 'error.exception.type' ...
Read more >The `needs()` function should propogate run-time task arguments ...
apm-agent-java NullPointerException in AmazonHttpClientInstrumentation 7 closed 🗓️ 6 days ago. symfony [DependencyInjection][VarExporter] Generate ...
Read more >appengine:cloudSdkLogin will repeatedly hang once you close your ...
NullPointerException in AmazonHttpClientInstrumentation, 7, 2022-08-10, 2022-09-18. [META 672] Add option for when to capture the Elasticsearch query ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No, many thanks for the help. I would recommend the PR also 😃
OK, thanks for the feedback! I will merge #2740 because I assume no harm in this null check, thus closing this issue. If you still think there’s more we need to do, feel free to reopen and provide more info.