-
Notifications
You must be signed in to change notification settings - Fork 812
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
NPE in Netty 4 instrumentation #8939
Comments
@stevesea do you always get this NPE or only occasionally? Can you reproduce this at will? |
@laurit yes, we can reproduce it at will. the warning message appears three times during application startup, during initialization of tomcat Still working with our internal team to get good reproduction steps and more details about what might make this particular application unique. The org has already added otel to a handful of different Spring Boot 3 apps, including one using Spring Cloud Gateway which should have exercised lots of those Netty/webflux code paths. |
The application in question is a Pulsar consumer and producer. The Netty libraries are brought in via transitive dependency on org.apache.pulsar:pulsar-client-original. This might be the first of our apps to migrate to otel that use Spring Boot + pulsar. Others have been Spring Boot + tomcat/jersey REST APIs. Or, Pulsar consumers/producers that are built on http4k/ktor rather than Spring Boot. |
Further digging continues to point the finger at this being a symptom of Pulsar + Netty instrumentation. And, the NPE only occurs when the app connects to a 'pulsar+ssl:https://' url (that is, my typical test harness with a local non-TLS pulsar running via docker-compose doesn't have the NPE). attached is lightly-redacted application output with otel.javaagent.debug=true (this run was using the latest agent v1.28.0) |
let us know how this is going, probably we will need a repro to be able to understand what's going on here |
I think the key was a pulsar client to a SSL endpoint. I'll work on creating a standalone repository that'll reproduce the problem |
Here's a repository that can reproduce the issue https://github.com/stevesea/2023-07-otel-pulsar-ssl-npe It's not very exciting/functional, but it'll reproduce the NPE in the Netty instrumentation. |
Describe the bug
NPE during Netty instrumentation of a Spring Boot 3 app (spring boot parent 3.1.1, spring-cloud 2022.0.3).
Steps to reproduce
Still working on reproduction steps with our internal team.
What version are you using?
v.1.27.0
Environment
Compiler: temurin 17 jdk
OS: temurin 17 jre
The text was updated successfully, but these errors were encountered: