You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by "ForrestWang123 (via GitHub)" <gi...@apache.org> on 2024/04/18 09:53:10 UTC
[I] [Bug]NPE in jdk-threadpool-plugin [skywalking]
ForrestWang123 opened a new issue, #12128:
URL: https://github.com/apache/skywalking/issues/12128
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no similar issues.
### Apache SkyWalking Component
Java Agent (apache/skywalking-java)
### What happened
NPE in jdk-threadpool-plugin
java.lang.NullPointerException
at org.apache.skywalking.apm.agent.core.context.ContextManager.activeSpan(ContextManager.java:184)
at org.apache.skywalking.apm.plugin.AbstractThreadingPoolInterceptor.handleMethodException(AbstractThreadingPoolInterceptor.java:66)
at org.apache.skywalking.apm.plugin.ThreadPoolExecuteMethodInterceptor_internal.intercept(InstanceMethodInterWithOverrideArgsTemplate.java:92)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java)
at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
### What you expected to happen
Should not have NPE
### How to reproduce
1. beforeMethod of AbstractThreadingPoolInterceptor didn't create any span.
2. exception occur in execution body of the Runnable/Callable
### Anything else
_No response_
### Are you willing to submit a pull request to fix on your own?
- [X] Yes I am willing to submit a pull request on my own!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug]NPE in jdk-threadpool-plugin [skywalking]
Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng closed issue #12128: [Bug]NPE in jdk-threadpool-plugin
URL: https://github.com/apache/skywalking/issues/12128
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug]NPE in jdk-threadpool-plugin [skywalking]
Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng commented on issue #12128:
URL: https://github.com/apache/skywalking/issues/12128#issuecomment-2063664660
Follow up through https://github.com/apache/skywalking-java/pull/681
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org