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

Calling operations on non-existing messaging resources returns cryptic error

    XMLWordPrintable

Details

    Description

      Calling operations on messaging resources that do not exist fails with a cryptic error:

      [standalone@localhost:9990 /] /subsystem=messaging/hornetq-server=default/runtime-queue=non-exisiting-queue:count-messages
      {
          "outcome" => "failed",
          "result" => undefined,
          "failure-description" => "JBAS014749: Operation handler failed: null",
          "rolled-back" => true
      

      Instead, the normal error for that case should be return:

      [standalone@localhost:9990 /] /subsystem=messaging/hornetq-server=default/runtime-queue=non-exisiting-queue:count-messages
      {
          "outcome" => "failed",
          "failure-description" => "JBAS014807: Management resource '[
          (\"subsystem\" => \"messaging\"),
          (\"hornetq-server\" => \"default\"),
          (\"runtime-queue\" => \"non-exisiting-queue\")
      ]' not found",
          "rolled-back" => true
      }
      

      Attachments

        Activity

          People

            jmesnil1@redhat.com Jeff Mesnil
            jmesnil1@redhat.com Jeff Mesnil
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: