-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Closed
Labels
bugSomething isn't working and you are sure it's a bug!Something isn't working and you are sure it's a bug!javaJava agent relatedJava agent relatedpluginPlugin for agent or collector. Be used to extend the capabilities of default implementor.Plugin for agent or collector. Be used to extend the capabilities of default implementor.
Milestone
Description
Search before asking
- I had searched in the issues 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
- beforeMethod of AbstractThreadingPoolInterceptor didn't create any span.
- 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?
- Yes I am willing to submit a pull request on my own!
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't working and you are sure it's a bug!Something isn't working and you are sure it's a bug!javaJava agent relatedJava agent relatedpluginPlugin for agent or collector. Be used to extend the capabilities of default implementor.Plugin for agent or collector. Be used to extend the capabilities of default implementor.