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

Can not get activemq and undertow subsystem data from HTTP management api

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Critical
    • None
    • 12.0.0.Final
    • Management, Web (Undertow)
    • None
    • Workaround Exists
    • Hide

      It works if the JSON is changed to:

      curl --digest -L -D - http://localhost:9990/management --header "Content-Type: application/json" -d '{"address": [{"host":"master"},{"server":"server-two"},{"subsystem":"undertow"},{"server":"default-server"}, {"http-listener": "default"}], "include-runtime": "true","json.pretty":1,"operation":"read-resource","recursive-depth":0}' -u admin:admin
      
      Show
      It works if the JSON is changed to: curl --digest -L -D - http: //localhost:9990/management --header "Content-Type: application/json" -d '{ "address" : [{ "host" : "master" },{ "server" : "server-two" },{ "subsystem" : "undertow" },{ "server" : " default -server" }, { "http-listener" : " default " }], "include-runtime" : " true " , "json.pretty" :1, "operation" : "read-resource" , "recursive-depth" :0}' -u admin:admin

    Description

      As described in https://github.com/wildfly/wildfly/issues/11309

      I can not get some subsystems info data with the HTTP management API working with

      ======================================
      "product-version" => "12.0.0.Final",
      "product-community-identifier" => "Product",
      "product-home" => "/usr/local/wildfly-12.0.0.Final",
      "standalone-or-domain-identifier" => "HOST_CONTROLLER",
      "host-operating-system" => "Debian GNU/Linux 8 (jessie)}}

      ===============

      This the a activemq POST request with curl and its error

      --------8<----------------------------------------8<----------------------
      root@snmpcoldev01:~# curl --digest -L -D - http://localhost:9990/management --header "Content-Type: application/json" -d '

      {"host":"master","server":"server-two","subsystem":"messaging-activemq","server":"default"}

      ,"operation":"read-children-resources","child-type":"jms-queue","include-runtime":"true","json.pretty":1,"recursive-depth":2}' -u admin
      Enter host password for user 'admin':
      HTTP/1.1 401 Unauthorized
      Connection: keep-alive
      WWW-Authenticate: Digest realm="ManagementRealm", nonce="ABCwnAAANoo77ka2vPx9H1LY0IuT5cmkcn5HWBS88gigGzT786K6qnnpMAk=", opaque="00000000000000000000000000000000", algorithm=MD5, qop=auth
      X-Frame-Options: SAMEORIGIN
      Content-Length: 77
      Content-Type: text/html
      Date: Sat, 02 Jun 2018 08:05:53 GMT

      HTTP/1.1 500 Internal Server Error
      Connection: keep-alive
      X-Frame-Options: SAMEORIGIN
      Content-Type: application/json; charset=utf-8
      Content-Length: 103
      Date: Sat, 02 Jun 2018 08:05:53 GMT

      "java.io.IOException: org.jboss.dmr.stream.ModelException: Unexpected content following the DMR
      -------->8---------------------------------------->8----------------------

      And this the query with the GUI client

      jboss_jms_queue_gui_query

      Also with undertow subsystem

      --------8<----------------------------------------8<----------------------
      root@snmpcoldev01:~# curl --digest -L -D - http://localhost:9990/management --header "Content-Type: application/json" -d '{"address":

      {"host":"master","server":"server-two","subsystem":"undertow","server":"default-server","http-listener":"default"}

      ,"include-runtime":"true","json.pretty":1,"operation":"read-resource","recursive-depth":0}' -u admin
      Enter host password for user 'admin':
      HTTP/1.1 401 Unauthorized
      Connection: keep-alive
      WWW-Authenticate: Digest realm="ManagementRealm", nonce="ABC0jwAAN04NaeQD9tlEeeNzizRu5PGuUY9Adi18uuLUzOM1RZNHWkCqnc4=", opaque="00000000000000000000000000000000", algorithm=MD5, qop=auth
      X-Frame-Options: SAMEORIGIN
      Content-Length: 77
      Content-Type: text/html
      Date: Sat, 02 Jun 2018 08:19:54 GMT

      HTTP/1.1 500 Internal Server Error
      Connection: keep-alive
      X-Frame-Options: SAMEORIGIN
      Content-Type: application/json; charset=utf-8
      Content-Length: 302
      Date: Sat, 02 Jun 2018 08:19:54 GMT

      {
      "outcome" : "failed",
      "failure-description" : "WFLYCTL0030: No resource definition is registered for address [\n (\"host\" => \"master\"),\n (\"server\" => \"default-server\"),\n (\"subsystem\" => \"undertow\"),\n (\"http-listener\" => \"default\")\n]",
      "rolled-back" : true
      }
      -------->8---------------------------------------->8----------------------

      Here Image of the GUI management query.

      jboss_undertow_listener_gui_query

      Attachments

        Activity

          People

            rhn-engineering-lgao Lin Gao
            toni_moreno Toni Moreno (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: