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

BasicOpenTelemetryTestCase fails when using ee-galleon-pack server distribution

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 25.0.0.Beta1
    • 25.0.0.Final
    • None
    • None
    • Hide

      cd testsuite/integration/basic
      mvn clean test -Dtest=BasicOpenTelemetryTestCase -Dtestsuite.default.build.project.prefix=ee-

      Show
      cd testsuite/integration/basic mvn clean test -Dtest=BasicOpenTelemetryTestCase -Dtestsuite.default.build.project.prefix=ee-

    Description

      Our test suite is able to run the tests against a server distribution generated either by the ee-galleon-pack and galleon-pack

      When the server distribution is generated by the ee-galleon-pack, the BasicOpenTelemetryTestCase fails with the following trace:

      [ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 8.77 s <<< FAILURE! - in org.wildfly.test.integration.observability.opentelemetry.BasicOpenTelemetryTestCase
      [ERROR] hasDefaultInjectedTracer(org.wildfly.test.integration.observability.opentelemetry.BasicOpenTelemetryTestCase)  Time elapsed: 0.196 s  <<< ERROR!
      java.lang.NoClassDefFoundError: Lio/opentelemetry/api/trace/Tracer;
      	at java.base/java.lang.Class.getDeclaredFields0(Native Method)
      	at java.base/java.lang.Class.privateGetDeclaredFields(Class.java:3061)
      	at java.base/java.lang.Class.getDeclaredFields(Class.java:2248)
      	at deployment.arquillian-service//org.junit.runners.model.TestClass.getSortedDeclaredFields(TestClass.java:77)
      	at deployment.arquillian-service//org.junit.runners.model.TestClass.scanAnnotatedMembers(TestClass.java:70)
      	at deployment.arquillian-service//org.junit.runners.model.TestClass.<init>(TestClass.java:57)
      	at deployment.arquillian-service//org.junit.runners.ParentRunner.createTestClass(ParentRunner.java:111)
      	at deployment.arquillian-service//org.junit.runners.ParentRunner.<init>(ParentRunner.java:91)
      	at deployment.arquillian-service//org.junit.runners.BlockJUnit4ClassRunner.<init>(BlockJUnit4ClassRunner.java:74)
      	at deployment.arquillian-service//org.jboss.arquillian.junit.Arquillian.<init>(Arquillian.java:58)
      	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
      	at deployment.arquillian-service//org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:104)
      	at deployment.arquillian-service//org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:86)
      	at deployment.arquillian-service//org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:70)
      	at deployment.arquillian-service//org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:37)
      	at deployment.arquillian-service//org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:70)
      	at deployment.arquillian-service//org.junit.internal.requests.ClassRequest.createRunner(ClassRequest.java:28)
      	at deployment.arquillian-service//org.junit.internal.requests.MemoizingRequest.getRunner(MemoizingRequest.java:19)
      	at deployment.arquillian-service//org.junit.internal.requests.FilterRequest.getRunner(FilterRequest.java:36)
      	at deployment.arquillian-service//org.junit.runner.JUnitCore.run(JUnitCore.java:115)
      	at deployment.arquillian-service//org.jboss.arquillian.junit.container.JUnitTestRunner.execute(JUnitTestRunner.java:61)
      	at deployment.arquillian-service//org.jboss.arquillian.protocol.jmx.JMXTestRunner.doRunTestMethod(JMXTestRunner.java:153)
      	at deployment.arquillian-service//org.jboss.as.arquillian.service.ArquillianService$ExtendedJMXTestRunner.doRunTestMethod(ArquillianService.java:200)
      	at deployment.arquillian-service//org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethodInternal(JMXTestRunner.java:137)
      	at deployment.arquillian-service//org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethod(JMXTestRunner.java:119)
      	at deployment.arquillian-service//org.jboss.as.arquillian.service.ArquillianService$ExtendedJMXTestRunner.runTestMethod(ArquillianService.java:176)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at java.base/sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:260)
      	at java.management/com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112)
      	at java.management/com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46)
      	at java.management/com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237)
      	at java.management/com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138)
      	at java.management/com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252)
      	at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:809)
      	at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
      	at org.jboss.as.jmx@17.0.0.Beta7//org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.invoke(PluggableMBeanServerImpl.java:1493)
      	at org.jboss.as.jmx@17.0.0.Beta7//org.jboss.as.jmx.PluggableMBeanServerImpl.invoke(PluggableMBeanServerImpl.java:726)
      	at org.jboss.as.jmx@17.0.0.Beta7//org.jboss.as.jmx.BlockingNotificationMBeanServer.invoke(BlockingNotificationMBeanServer.java:168)
      	at org.jboss.as.jmx@17.0.0.Beta7//org.jboss.as.jmx.AuthorizingMBeanServer.invoke(AuthorizingMBeanServer.java:258)
      	at org.jboss.remoting-jmx@3.0.4.Final//org.jboss.remotingjmx.protocol.v2.ServerProxy$InvokeHandler.handle(ServerProxy.java:950)
      	at org.jboss.remoting-jmx@3.0.4.Final//org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1$1.run(ServerCommon.java:153)
      	at org.jboss.as.jmx@17.0.0.Beta7//org.jboss.as.jmx.ServerInterceptorFactory$Interceptor$1.run(ServerInterceptorFactory.java:71)
      	at org.jboss.as.jmx@17.0.0.Beta7//org.jboss.as.jmx.ServerInterceptorFactory$Interceptor$1.run(ServerInterceptorFactory.java:66)
      	at org.wildfly.security.elytron-base@1.17.0.Final//org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:328)
      	at org.wildfly.security.elytron-base@1.17.0.Final//org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:285)
      	at org.jboss.as.controller@17.0.0.Beta7//org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:254)
      	at org.jboss.as.controller@17.0.0.Beta7//org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:225)
      	at org.jboss.as.jmx@17.0.0.Beta7//org.jboss.as.jmx.ServerInterceptorFactory$Interceptor.handleEvent(ServerInterceptorFactory.java:66)
      	at org.jboss.remoting-jmx@3.0.4.Final//org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1.run(ServerCommon.java:149)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at java.base/java.lang.Thread.run(Thread.java:829)
      Caused by: java.lang.ClassNotFoundException: io.opentelemetry.api.trace.Tracer from [Module "deployment.64ec9917-4e44-451f-bc09-7006fc4a97ef.war" from Service Module Loader]
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
      	... 63 more
      
      [ERROR] hasDefaultInjectedOpenTelemetry(org.wildfly.test.integration.observability.opentelemetry.BasicOpenTelemetryTestCase)  Time elapsed: 0.026 s  <<< ERROR!
      java.lang.NoClassDefFoundError: Lio/opentelemetry/api/trace/Tracer;
      	at java.base/java.lang.Class.getDeclaredFields0(Native Method)
      	at java.base/java.lang.Class.privateGetDeclaredFields(Class.java:3061)
      	at java.base/java.lang.Class.getDeclaredFields(Class.java:2248)
      	at deployment.arquillian-service//org.junit.runners.model.TestClass.getSortedDeclaredFields(TestClass.java:77)
      	at deployment.arquillian-service//org.junit.runners.model.TestClass.scanAnnotatedMembers(TestClass.java:70)
      	at deployment.arquillian-service//org.junit.runners.model.TestClass.<init>(TestClass.java:57)
      	at deployment.arquillian-service//org.junit.runners.ParentRunner.createTestClass(ParentRunner.java:111)
      	at deployment.arquillian-service//org.junit.runners.ParentRunner.<init>(ParentRunner.java:91)
      	at deployment.arquillian-service//org.junit.runners.BlockJUnit4ClassRunner.<init>(BlockJUnit4ClassRunner.java:74)
      	at deployment.arquillian-service//org.jboss.arquillian.junit.Arquillian.<init>(Arquillian.java:58)
      	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
      	at deployment.arquillian-service//org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:104)
      	at deployment.arquillian-service//org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:86)
      	at deployment.arquillian-service//org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:70)
      	at deployment.arquillian-service//org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:37)
      	at deployment.arquillian-service//org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:70)
      	at deployment.arquillian-service//org.junit.internal.requests.ClassRequest.createRunner(ClassRequest.java:28)
      	at deployment.arquillian-service//org.junit.internal.requests.MemoizingRequest.getRunner(MemoizingRequest.java:19)
      	at deployment.arquillian-service//org.junit.internal.requests.FilterRequest.getRunner(FilterRequest.java:36)
      	at deployment.arquillian-service//org.junit.runner.JUnitCore.run(JUnitCore.java:115)
      	at deployment.arquillian-service//org.jboss.arquillian.junit.container.JUnitTestRunner.execute(JUnitTestRunner.java:61)
      	at deployment.arquillian-service//org.jboss.arquillian.protocol.jmx.JMXTestRunner.doRunTestMethod(JMXTestRunner.java:153)
      	at deployment.arquillian-service//org.jboss.as.arquillian.service.ArquillianService$ExtendedJMXTestRunner.doRunTestMethod(ArquillianService.java:200)
      	at deployment.arquillian-service//org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethodInternal(JMXTestRunner.java:137)
      	at deployment.arquillian-service//org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethod(JMXTestRunner.java:119)
      	at deployment.arquillian-service//org.jboss.as.arquillian.service.ArquillianService$ExtendedJMXTestRunner.runTestMethod(ArquillianService.java:176)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at java.base/sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:260)
      	at java.management/com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112)
      	at java.management/com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46)
      	at java.management/com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237)
      	at java.management/com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138)
      	at java.management/com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252)
      	at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:809)
      	at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
      	at org.jboss.as.jmx@17.0.0.Beta7//org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.invoke(PluggableMBeanServerImpl.java:1493)
      	at org.jboss.as.jmx@17.0.0.Beta7//org.jboss.as.jmx.PluggableMBeanServerImpl.invoke(PluggableMBeanServerImpl.java:726)
      	at org.jboss.as.jmx@17.0.0.Beta7//org.jboss.as.jmx.BlockingNotificationMBeanServer.invoke(BlockingNotificationMBeanServer.java:168)
      	at org.jboss.as.jmx@17.0.0.Beta7//org.jboss.as.jmx.AuthorizingMBeanServer.invoke(AuthorizingMBeanServer.java:258)
      	at org.jboss.remoting-jmx@3.0.4.Final//org.jboss.remotingjmx.protocol.v2.ServerProxy$InvokeHandler.handle(ServerProxy.java:950)
      	at org.jboss.remoting-jmx@3.0.4.Final//org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1$1.run(ServerCommon.java:153)
      	at org.jboss.as.jmx@17.0.0.Beta7//org.jboss.as.jmx.ServerInterceptorFactory$Interceptor$1.run(ServerInterceptorFactory.java:71)
      	at org.jboss.as.jmx@17.0.0.Beta7//org.jboss.as.jmx.ServerInterceptorFactory$Interceptor$1.run(ServerInterceptorFactory.java:66)
      	at org.wildfly.security.elytron-base@1.17.0.Final//org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:328)
      	at org.wildfly.security.elytron-base@1.17.0.Final//org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:285)
      	at org.jboss.as.controller@17.0.0.Beta7//org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:254)
      	at org.jboss.as.controller@17.0.0.Beta7//org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:225)
      	at org.jboss.as.jmx@17.0.0.Beta7//org.jboss.as.jmx.ServerInterceptorFactory$Interceptor.handleEvent(ServerInterceptorFactory.java:66)
      	at org.jboss.remoting-jmx@3.0.4.Final//org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1.run(ServerCommon.java:149)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at java.base/java.lang.Thread.run(Thread.java:829)
      Caused by: java.lang.ClassNotFoundException: io.opentelemetry.api.trace.Tracer from [Module "deployment.64ec9917-4e44-451f-bc09-7006fc4a97ef.war" from Service Module Loader]
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
      	... 63 more
      
      [INFO]
      [INFO] Results:
      [INFO]
      [ERROR] Errors:
      [ERROR]   BasicOpenTelemetryTestCase.hasDefaultInjectedOpenTelemetry » NoClassDefFound L...
      [ERROR]   BasicOpenTelemetryTestCase.hasDefaultInjectedTracer » NoClassDefFound Lio/open...
      [INFO]
      [ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0
      

      Attachments

        Issue Links

          Activity

            People

              jaslee@redhat.com Jason Lee
              yborgess1@redhat.com Yeray Borges Santana
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: