Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-22215

microprofile-opentracing arqullian tests failing due to old opentracing dependencies

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • EAP-XP-3.0.0.CR2
    • EAP-XP-3.0.0.CR1
    • Quickstarts
    • None
    • False
    • False
    • Regression
    • Undefined
    • Hide

      Follow QS readme, run arquillian tests:

      # start server
      JAEGER_REPORTER_LOG_SPANS=true JAEGER_SAMPLER_TYPE=const JAEGER_SAMPLER_PARAM=1 bin/standalone.sh
      
      # run tests from <qs>/microprofile-opentracing
      mvn clean verify -Parq-remote
      
      Show
      Follow QS readme, run arquillian tests: # start server JAEGER_REPORTER_LOG_SPANS=true JAEGER_SAMPLER_TYPE=const JAEGER_SAMPLER_PARAM=1 bin/standalone.sh # run tests from <qs>/microprofile-opentracing mvn clean verify -Parq-remote

      Following QS README user ends up with failing tests:

      [ERROR] Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 5.653 s <<< FAILURE! - in org.wildfly.quickstarts.microprofile.opentracing.MicroProfileOpenTracingIT
      [ERROR] testTrace(org.wildfly.quickstarts.microprofile.opentracing.MicroProfileOpenTracingIT)  Time elapsed: 0.604 s  <<< FAILURE!
      java.lang.AssertionError: expected:<200> but was:<500>
      	at org.wildfly.quickstarts.microprofile.opentracing.MicroProfileOpenTracingIT.appGetInvoke(MicroProfileOpenTracingIT.java:139)
      	at org.wildfly.quickstarts.microprofile.opentracing.MicroProfileOpenTracingIT.testTrace(MicroProfileOpenTracingIT.java:95)
      
      [ERROR] testCDITracing(org.wildfly.quickstarts.microprofile.opentracing.MicroProfileOpenTracingIT)  Time elapsed: 0.293 s  <<< FAILURE!
      java.lang.AssertionError: expected:<200> but was:<500>
      	at org.wildfly.quickstarts.microprofile.opentracing.MicroProfileOpenTracingIT.appGetInvoke(MicroProfileOpenTracingIT.java:139)
      	at org.wildfly.quickstarts.microprofile.opentracing.MicroProfileOpenTracingIT.testCDITracing(MicroProfileOpenTracingIT.java:120)
      
      

      with error on server side:

      21:51:11,346 ERROR [io.undertow.request] (default task-2) UT005023: Exception handling request to /e1aac492-51cd-4782-b7e3-3e7826370629/hello/traced: java.lang.NoSuchMethodError: io.opentracing.ScopeManager.active()Lio/opentracing/Scope;
      	at io.opentracing.mock.MockTracer.activeSpan(MockTracer.java:187)
      	at io.opentracing.contrib.jaxrs2.server.ServerTracingFilter.parentSpanContext(ServerTracingFilter.java:103)
      	at io.opentracing.contrib.jaxrs2.server.ServerTracingFilter.filter(ServerTracingFilter.java:69)
      	at org.jboss.resteasy.core.interception.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:308)
      ...
      

              Unassigned Unassigned
              jbliznak@redhat.com Jan Blizňák
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: