Uploaded image for project: 'HAL'
  1. HAL
  2. HAL-1822

TopologyTasks.RunningServers uses invalid resource addresses

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.6.6.Final
    • 3.6.4.Final, 3.6.5.Final
    • None
    • None

      User Marco Muyulema reported problems using domain mode with WildFly 27 – see https://groups.google.com/g/wildfly/c/5akXv8SAbGY. The server throws exceptions when the domain screens are manipulated.

      11:37:11,385 ERROR [io.undertow.request] (External Management Request Threads -- 2) UT005071: Undertow request failed HttpServerExchange{ POST /management}: org.jboss.as.controller.PathElement$OperationClientIllegalArgumentException: WFLYCTL0110: Invalid resource address element 'topologyTasks.server=*'. The key 'topologyTasks.server' is not valid for an element in a resource address.
      [Host Controller]     at org.jboss.a...@19.0.0.Final//org.jboss.as.controller.PathElement.<init>(PathElement.java:78)
      [Host Controller]     at org.jboss.a...@19.0.0.Final//org.jboss.as.controller.PathAddress.pathAddress(PathAddress.java:96)
      [Host Controller]     at org.jboss.as.doma...@19.0.0.Final//org.jboss.as.domain.http.server.DomainApiHandler.sendPreparedResponse(DomainApiHandler.java:337)
      [Host Controller]     at org.jboss.as.doma...@19.0.0.Final//org.jboss.as.domain.http.server.DomainApiHandler.handleRequest(DomainApiHandler.java:200)
      [Host Controller]     at io.under...@2.3.0.Final//io.undertow.server.handlers.encoding.EncodingHandler.handleRequest(EncodingHandler.java:72)
      [Host Controller]     at org.jboss.as.doma...@19.0.0.Final//org.jboss.as.domain.http.server.DomainApiCheckHandler.handleRequest(DomainApiCheckHandler.java:91)
      [Host Controller]     at org.jboss.as.doma...@19.0.0.Final//org.jboss.as.domain.http.server.security.ElytronIdentityHandler.lambda$handleRequest$0(ElytronIdentityHandler.java:62)
      [Host Controller]     at org.wildfly.secu...@2.0.0.Final//org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:328)
      [Host Controller]     at org.wildfly.secu...@2.0.0.Final//org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:285)
      [Host Controller]     at org.jboss.a...@19.0.0.Final//org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:254)
      [Host Controller]     at org.jboss.a...@19.0.0.Final//org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:225)
      [Host Controller]     at org.jboss.as.doma...@19.0.0.Final//org.jboss.as.domain.http.server.security.ElytronIdentityHandler.handleRequest(ElytronIdentityHandler.java:61)
      [Host Controller]     at io.under...@2.3.0.Final//io.undertow.server.handlers.BlockingHandler.handleRequest(BlockingHandler.java:56)
      [Host Controller]     at io.under...@2.3.0.Final//io.undertow.server.Connectors.executeRootHandler(Connectors.java:391)
      [Host Controller]     at io.under...@2.3.0.Final//io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:859)
      [Host Controller]     at org.jbos...@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      [Host Controller]     at org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
      [Host Controller]     at org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
      [Host Controller]     at org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
      [Host Controller]     at java.base/java.lang.Thread.run(Thread.java:833)
      [Host Controller]     at org.jbos...@2.4.0.Final//org.jboss.threads.JBossThread.run(JBossThread.java:513)
      

      I traced the problem to the work on HAL-1795, which replaced an imported constant[1] with value 'server' with a local constant with value 'topologyTask.server'.[2] The only use of the constant is to create a ResourceAddress[3], and for that use the correct value is 'server', not 'topologyTask.server'.

      [1] https://github.com/hal/console/commit/e87f00a82a732a08b43a9492e58486ecd51f2acc#diff-7b0c0e6525bec905e73f99591c5f24a9ed42fa0e9c130b4626ab4405801b4bcdL83
      [2] https://github.com/hal/console/commit/e87f00a82a732a08b43a9492e58486ecd51f2acc#diff-7b0c0e6525bec905e73f99591c5f24a9ed42fa0e9c130b4626ab4405801b4bcdR98
      [3] https://github.com/hal/console/blob/e87f00a82a732a08b43a9492e58486ecd51f2acc/core/src/main/java/org/jboss/hal/core/runtime/TopologyTasks.java#L667

              rhn-support-abaral1 Anilabha Baral
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: