[jboss-jira] [JBoss JIRA] (WFLY-3322) Calling operations on non-existing messaging resources returns cryptic error

Jeff Mesnil (JIRA) issues at jboss.org
Wed May 7 09:02:57 EDT 2014


Jeff Mesnil created WFLY-3322:
---------------------------------

             Summary: Calling operations on non-existing messaging resources returns cryptic error
                 Key: WFLY-3322
                 URL: https://issues.jboss.org/browse/WFLY-3322
             Project: WildFly
          Issue Type: Bug
      Security Level: Public (Everyone can see)
            Reporter: Jeff Mesnil
            Assignee: Jason Greene
            Priority: Minor


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

{noformat}
[standalone at 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
{noformat}

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

{noformat}
[standalone at 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
}
{noformat}




--
This message was sent by Atlassian JIRA
(v6.2.3#6260)


More information about the jboss-jira mailing list