Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-14473

Null Tracer injected on redeploy of WAR

XMLWordPrintable

    • Hide

      Build a WAR (using enclosed pom.xml) containing just simple class SampleServiceApplication.java 

      and deploy it using Management Console. Everything is fine, a log entry appears - Tracer [class io.jaegertracing.internal.JaegerTracer] registered as global tracer.

      Disable WAR and enable it after a while (5 seconds is enough). A NullPointerException appears in stacktrace:

      {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"sampleservice-1.0.0-0-SNAPSHOT.war\".undertow-deployment" => "org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke private void sampleservice.SampleServiceApplication.doOnPostConstruct() on sampleservice.SampleServiceApplication@1b826106
      Caused by: org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke private void sampleservice.SampleServiceApplication.doOnPostConstruct() on sampleservice.SampleServiceApplication@1b826106
      Caused by: java.lang.reflect.InvocationTargetException
      Caused by: java.lang.NullPointerException: Cannot register GlobalTracer <null>."}}

       

      Tested on WF 21.0.0.Final, may also others are affected.

      Show
      Build a WAR (using enclosed pom.xml ) containing just simple class  SampleServiceApplication.java   and deploy it using Management Console. Everything is fine, a log entry appears - Tracer [class io.jaegertracing.internal.JaegerTracer] registered as global tracer. Disable WAR and enable it after a while (5 seconds is enough). A NullPointerException appears in stacktrace: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"sampleservice-1.0.0-0-SNAPSHOT.war\".undertow-deployment" => "org.jboss.weld.exceptions.WeldException: WELD-000049 : Unable to invoke private void sampleservice.SampleServiceApplication.doOnPostConstruct() on sampleservice.SampleServiceApplication@1b826106 Caused by: org.jboss.weld.exceptions.WeldException: WELD-000049 : Unable to invoke private void sampleservice.SampleServiceApplication.doOnPostConstruct() on sampleservice.SampleServiceApplication@1b826106 Caused by: java.lang.reflect.InvocationTargetException Caused by: java.lang.NullPointerException: Cannot register GlobalTracer <null>."}}   Tested on WF 21.0.0.Final, may also others are affected.
    • Undefined
    • ---
    • ---

      NullPointerException appears  in log of Wildfly on redeploy of  WAR injecting JaegerTracer. See enclosed SampleServiceApplication.java please.

        1. pom.xml
          5 kB
          Bystrík Horváth
        2. SampleServiceApplication.java
          0.5 kB
          Bystrík Horváth

            ehugonne1@redhat.com Emmanuel Hugonnet
            bystrikhorvath Bystrík Horváth (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: