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

Opentelemetry-tracing quickstart fails to build bootable-jar and openshift profiles

XMLWordPrintable

      If you try to build the opentelemetry-tracing quickstart with "bootable-jar" profile:

      $ mvn clean package -Pbootable-jar
      
      ...
      
      [ERROR] ERROR: WFLYCTL0013: Operation ("write-attribute") failed - address: ([("subsystem" => "opentelemetry")]) [ERROR] java.lang.IllegalArgumentException: WFLYCTL0484: Attribute definition of attribute 'endpoint' is null [ERROR] at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.AbstractWriteAttributeHandler.getAttributeDefinition(AbstractWriteAttributeHandler.java:259) [ERROR] at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.AbstractWriteAttributeHandler.execute(AbstractWriteAttributeHandler.java:88) [ERROR] at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.operations.global.WriteAttributeHandler.doExecuteInternal(WriteAttributeHandler.java:208) [ERROR] at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.operations.global.WriteAttributeHandler.execute(WriteAttributeHandler.java:116) [ERROR] at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:1057) [ERROR] at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:778) [ERROR] at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:469) [ERROR] at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1433) [ERROR] at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:448) [ERROR] at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.ModelControllerImpl.lambda$executeForResponse$0(ModelControllerImpl.java:259) [ERROR] at org.wildfly.security.elytron-base@2.2.2.Final-redhat-00001//org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:304) [ERROR] at org.wildfly.security.elytron-base@2.2.2.Final-redhat-00001//org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:270) [ERROR] at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.ModelControllerImpl.executeForResponse(ModelControllerImpl.java:259) [ERROR] at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.ModelControllerImpl.executeOperation(ModelControllerImpl.java:253) [ERROR] at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient.executeInModelControllerCl(ModelControllerClientFactoryImpl.java:275) [ERROR] at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient.lambda$runOperation$0(ModelControllerClientFactoryImpl.java:265) [ERROR] at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.access.InVmAccess.runInVm(InVmAccess.java:63) [ERROR] at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.SecurityActions$InVmActions$1.runInVm(SecurityActions.java:103) [ERROR] at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.SecurityActions.runInVm(SecurityActions.java:47) [ERROR] at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient.runOperation(ModelControllerClientFactoryImpl.java:265) [ERROR] at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient$2$1.run(ModelControllerClientFactoryImpl.java:215) [ERROR] at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient$2$1.run(ModelControllerClientFactoryImpl.java:210) [ERROR] at org.wildfly.security.elytron-base@2.2.2.Final-redhat-00001//org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:304) [ERROR] at org.wildfly.security.elytron-base@2.2.2.Final-redhat-00001//org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:270) [ERROR] at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:198) [ERROR] at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:175) [ERROR] at org.jboss.as.controller@21.0.5.Final-redhat-00001//org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient$2.run(ModelControllerClientFactoryImpl.java:210) [ERROR] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [ERROR] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [ERROR] at java.base/java.lang.Thread.run(Thread.java:833) [ERROR] [ERROR] Feb 05, 2024 3:36:52 PM org.jboss.as.server.ApplicationServerService stop [ERROR] INFO: WFLYSRV0050: JBoss EAP 8.0.0.GA (WildFly Core 21.0.5.Final-redhat-00001) stopped in 5ms [ERROR] Exception in thread "main" java.lang.reflect.InvocationTargetException [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) [ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:568) [ERROR] at org.wildfly.plugins.bootablejar.maven.cli.CLIWrapper.handle(CLIWrapper.java:82) [ERROR] at org.wildfly.plugins.bootablejar.maven.cli.CLIForkedExecutor.main(CLIForkedExecutor.java:49) [ERROR] Caused by: org.jboss.as.cli.CommandLineException: { [ERROR]     "outcome" => "failed", [ERROR]     "failure-description" => "WFLYCTL0158: Operation handler failed: java.lang.IllegalArgumentException: WFLYCTL0484: Attribute definition of attribute 'endpoint' is null", [ERROR]     "rolled-back" => true [ERROR] } [ERROR] at org.jboss.as.cli.handlers.OperationRequestHandler.handle(OperationRequestHandler.java:95) [ERROR] at org.jboss.as.cli.impl.CommandContextImpl.handleOperation(CommandContextImpl.java:1921) [ERROR] at org.jboss.as.cli.impl.CommandContextImpl.handle(CommandContextImpl.java:876) [ERROR] ... 6 more
       

      Similarly if you try to build "openshift" profile:

      $ mvn clean package -Popenshift
      
      ...
      
      [INFO] Excuting CLI commands and scripts
      [disconnected /] embed-server --server-config=standalone.xml
      [standalone@embedded /] if (outcome != success) of /extension=org.wildfly.extension.opentelemetry:read-resource
      [standalone@embedded /] /subsystem=opentelemetry:write-attribute(name=endpoint,value=http://${OTEL_COLLECTOR_HOST:localhost}:4317)
      {
          "outcome" => "failed",
          "failure-description" => "WFLYCTL0158: Operation handler failed: java.lang.IllegalArgumentException: WFLYCTL0484: Attribute definition of attribute 'endpoint' is null",
          "rolled-back" => true
      } 

      The issue is wrt the execution of the https://github.com/jbossas/eap-quickstarts/blob/xp-5.0.x/opentelemetry-tracing/configure-opentelemetry.cli 

      Here is a link to the quickstart's pom.xml: https://github.com/jbossas/eap-quickstarts/blob/xp-5.0.x/opentelemetry-tracing/pom.xml

       

       

              jaslee@redhat.com Jason Lee
              emartins@redhat.com Eduardo Martins
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: