You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/04/02 03:54:57 UTC

[GitHub] [skywalking] markusleevip opened a new issue #6674: Ignoring url using the trace-ignore-plugin plug-in throw a java.lang.NullPointerException

markusleevip opened a new issue #6674:
URL: https://github.com/apache/skywalking/issues/6674


   ### Bug
   - Which version of SkyWalking, OS, and JRE?
   OS:CentOS Linux release 8.2.2004 
   JAR :openjdk version "1.8.0_252"
   
   - What happened?
   Ignoring url using the trace-ignore-plugin plug-in throw a java.lang.NullPointerException
   
   /apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/ContextManager.java
   ```
   
       /**
        * Recommend use ContextManager::stopSpan(AbstractSpan span), because in that way, the TracingContext core could
        * verify this span is the active one, in order to avoid stop unexpected span. If the current span is hard to get or
        * only could get by low-performance way, this stop way is still acceptable.
        */
       public static void stopSpan() {
           final AbstractTracerContext context = get();
           // Throw NullPointerException
           stopSpan(context.activeSpan(), context);
       }
   ```
   error log
   ```
   2021-04-02 10:55:03,218 [TID:Ignored_Trace] [XNIO-1 task-1] [com.demo.home.HomeController] [INFO] - I am hello. log4j
   2021-04-02 10:55:03,220 [TID:N/A] [XNIO-1 task-1] [org.jboss.threads.errors] [ERROR] - Thread Thread[XNIO-1 task-1,5,main] threw an uncaught exception
   java.lang.NullPointerException
   	at org.apache.skywalking.apm.agent.core.context.ContextManager.stopSpan(ContextManager.java:199)
   	at org.apache.skywalking.apm.plugin.undertow.v2x.SWRunnable.run(SWRunnable.java:47)
   	at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
   	at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2019)
   	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1558)
   	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1449)
   	at java.lang.Thread.run(Thread.java:748)
   
   ```
   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] markusleevip commented on issue #6674: Ignoring url using the trace-ignore-plugin plug-in throw a java.lang.NullPointerException

Posted by GitBox <gi...@apache.org>.
markusleevip commented on issue #6674:
URL: https://github.com/apache/skywalking/issues/6674#issuecomment-812321686


   This is a repeat problem.
   Hope to fix it.


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng closed issue #6674: Ignoring url using the trace-ignore-plugin plug-in throw a java.lang.NullPointerException

Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #6674:
URL: https://github.com/apache/skywalking/issues/6674


   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #6674: Ignoring url using the trace-ignore-plugin plug-in throw a java.lang.NullPointerException

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6674:
URL: https://github.com/apache/skywalking/issues/6674#issuecomment-812322923


   > This is a repeat problem.
   > Hope to fix it.
   
   Fixing belongs to the whole community, including yourself. 
   Taking action rather than a hope. Hope means no one is doing this now.


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #6674: Ignoring url using the trace-ignore-plugin plug-in throw a java.lang.NullPointerException

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6674:
URL: https://github.com/apache/skywalking/issues/6674#issuecomment-812309823


   This may be a bug of webflux. Ignoring plugin has not relationship with this npe.


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org