Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-4774

.CLI command to write attribute is giving a StackOverflow Exception

XMLWordPrintable

      In the RHAMT team we are trying to migrate the application from WF 15 to WF 18.
      As part of the build the process starts WF and execute few .cli commands .

      I get a StackOverflowError in a command :

      /subsystem=undertow/server=default-server/host=default-host/location=\//:write-attribute(name=handler,value=windup-web-redirect)
      Error 
       Command execution failed for command '/subsystem=undertow/server=default-server/host=default-host/location=\//:write-attribute(name=handler,value=windup-web-redirect)'. {
      [ERROR]     "outcome" => "failed",
      [ERROR]     "failure-description" => "java.lang.StackOverflowError:null"
      [ERROR] }
      
      ^[[0m^[[31m17:48:42,651 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0403: Unexpected failure during execution of the following operation(s): [{
          "address" => [
              ("subsystem" => "undertow"),
              ("server" => "default-server"),
              ("host" => "default-host"),
              ("location" => "/")
          ],
          "operation" => "write-attribute",
          "name" => "handler",
          "value" => "windup-web-redirect",
          "operation-headers" => {
              "caller-type" => "user",
              "access-mechanism" => "NATIVE"
          }
      }]: java.lang.StackOverflowError
              at org.jboss.as.controller.CapabilityRegistry.getDependentCapabilityStatus(CapabilityRegistry.java:418)
              at org.jboss.as.controller.CapabilityRegistry.getCapabilityStatus(CapabilityRegistry.java:392)
              at org.jboss.as.controller.CapabilityRegistry.getDependentCapabilityStatus(CapabilityRegistry.java:426)
              at org.jboss.as.controller.CapabilityRegistry.getCapabilityStatus(CapabilityRegistry.java:392)
              at org.jboss.as.controller.CapabilityRegistry.getDependentCapabilityStatus(CapabilityRegistry.java:426)
              at org.jboss.as.controller.CapabilityRegistry.getCapabilityStatus(CapabilityRegistry.java:392)
              at org.jboss.as.controller.CapabilityRegistry.getDependentCapabilityStatus(CapabilityRegistry.java:426)
      

      If I connect to WF 18, using jboss-cli.sh and this is the result of the read command :

      [standalone@localhost:9990 /] /subsystem=undertow/server=default-server/host=default-host/location=\//:read-attribute(name=handler)
      {
          "outcome" => "success",
          "result" => "welcome-content",
          "response-headers" => {"process-state" => "restart-required"}
      }
      

      But if I do the write command :

      [standalone@localhost:9990 /] /subsystem=undertow/server=default-server/host=default-host/location=\//:write-attribute(name=handler,value=windup-web-redirect)
      {
          "outcome" => "failed",
          "failure-description" => "java.lang.StackOverflowError:null"
      }
      

      Even if I try to write the same value as I get from the read command it gives the same error.
      If I try to use add instead of write-attribute, I get a resource duplicated error.

      This is stopping our current migration of RHAMT 4.3.0 to WF 18

              yborgess1@redhat.com Yeray Borges Santana
              jvilalop@redhat.com Jonathan Vila Lopez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: