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

Calling operations on non-existing messaging resources returns cryptic error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 8.1.0.CR2, 8.1.0.Final
    • 8.1.0.CR1
    • JMS
    • None

      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
      }
      

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

                Created:
                Updated:
                Resolved: