Uploaded image for project: 'Distributed Tracing'
  1. Distributed Tracing
  2. TRACING-248

WildFly MicroProfile OpenTracing subsystem fails on runtime exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • Kiali Sprint #11

      When the tracer client can communicate with the remote sampling port on Jaeger (5778), the tracer fails to parse the JSON content (see WFLY-11045 for more details).

      To reproduce, follow the blog post at https://medium.com/jaegertracing/automatic-tracing-of-java-ee-applications-with-wildfly-14-and-jaeger-176366927212 , starting Jaeger with:

      docker run --rm --name jaeger -p6831:6831/udp -p16686:16686 -p 5778:5778 jaegertracing/all-in-one:1.6
      

      And the application server with:

      JAEGER_REPORTER_LOG_SPANS=true JAEGER_SAMPLER_TYPE=remote $WILDFLY_HOME/bin/standalone.sh
      

      Results in:

      2018-09-19 17:48:09,902 ERROR [stderr] (Timer-1) Exception in thread "Timer-1" java.lang.RuntimeException: Unable to invoke no-args constructor for class io.jaegertracing.internal.samplers.http.SamplingStrategyResponse. Registering an InstanceCreator with Gson for this type may fix this problem.
      2018-09-19 17:48:09,902 ERROR [stderr] (Timer-1) 	at com.google.gson.internal.ConstructorConstructor$14.construct(ConstructorConstructor.java:226)
      2018-09-19 17:48:09,903 ERROR [stderr] (Timer-1) 	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:210)
      2018-09-19 17:48:09,903 ERROR [stderr] (Timer-1) 	at com.google.gson.Gson.fromJson(Gson.java:888)
      2018-09-19 17:48:09,903 ERROR [stderr] (Timer-1) 	at com.google.gson.Gson.fromJson(Gson.java:853)
      2018-09-19 17:48:09,903 ERROR [stderr] (Timer-1) 	at com.google.gson.Gson.fromJson(Gson.java:802)
      2018-09-19 17:48:09,903 ERROR [stderr] (Timer-1) 	at com.google.gson.Gson.fromJson(Gson.java:774)
      2018-09-19 17:48:09,903 ERROR [stderr] (Timer-1) 	at io.jaegertracing.internal.samplers.HttpSamplingManager.parseJson(HttpSamplingManager.java:49)
      2018-09-19 17:48:09,904 ERROR [stderr] (Timer-1) 	at io.jaegertracing.internal.samplers.HttpSamplingManager.getSamplingStrategy(HttpSamplingManager.java:68)
      2018-09-19 17:48:09,904 ERROR [stderr] (Timer-1) 	at io.jaegertracing.internal.samplers.RemoteControlledSampler.updateSampler(RemoteControlledSampler.java:88)
      2018-09-19 17:48:09,904 ERROR [stderr] (Timer-1) 	at io.jaegertracing.internal.samplers.RemoteControlledSampler$1.run(RemoteControlledSampler.java:70)
      2018-09-19 17:48:09,904 ERROR [stderr] (Timer-1) 	at java.util.TimerThread.mainLoop(Timer.java:555)
      2018-09-19 17:48:09,904 ERROR [stderr] (Timer-1) 	at java.util.TimerThread.run(Timer.java:505)
      2018-09-19 17:48:09,904 ERROR [stderr] (Timer-1) Caused by: java.lang.UnsupportedOperationException: Cannot allocate class io.jaegertracing.internal.samplers.http.SamplingStrategyResponse
      2018-09-19 17:48:09,905 ERROR [stderr] (Timer-1) 	at com.google.gson.internal.UnsafeAllocator$4.newInstance(UnsafeAllocator.java:104)
      2018-09-19 17:48:09,905 ERROR [stderr] (Timer-1) 	at com.google.gson.internal.ConstructorConstructor$14.construct(ConstructorConstructor.java:223)
      2018-09-19 17:48:09,905 ERROR [stderr] (Timer-1) 	... 11 more
      

              jpkroehling@redhat.com Juraci Paixão Kröhling (Inactive)
              jpkroehling@redhat.com Juraci Paixão Kröhling (Inactive)
              Distributed Tracing
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: