question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NullPointerException in AmazonHttpClientInstrumentation

See original GitHub issue

Hi,

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:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mrclrchtrcommented, Aug 11, 2022

No, many thanks for the help. I would recommend the PR also 😃

0reactions
eyalkorencommented, Aug 11, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found