[ 
https://issues.apache.org/jira/browse/ARTEMIS-5777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18058118#comment-18058118
 ] 

Grzegorz Grzybek commented on ARTEMIS-5777:
-------------------------------------------

The actual object name created is
{noformat}
org.apache.activemq.artemis:broker="0.0.0.0",component=addresses,address="c\\d",subcomponent=queues,routing-type="anycast",queue="to.lxxx.\*"
{noformat}

because 
{{org.apache.activemq.artemis.api.core.management.ObjectNameBuilder#getQueueObjectName()}}
 calls {{javax.management.ObjectName#quote()}}. But the matching 
{{javax.management.ObjectName#unquote()}} is never called in Artemis.

When displaying the queues, Artemis Console sends this Jolokia request:
{code:json}
{
  "type": "exec",
  "mbean": "org.apache.activemq.artemis:broker=\"0.0.0.0\"",
  "operation": "listQueues(java.lang.String,int,int)",
  "arguments": [
    
"{\"field\":\"\",\"operation\":\"\",\"value\":\"\",\"sortOrder\":\"asc\",\"sortColumn\":\"id\"}",
    1,
    10
  ]
}
{code}

and receives:
{code:json}
{
  "request": {
    "mbean": "org.apache.activemq.artemis:broker=\"0.0.0.0\"",
    "arguments": [
      
"{\"field\":\"\",\"operation\":\"\",\"value\":\"\",\"sortOrder\":\"asc\",\"sortColumn\":\"id\"}",
      1,
      10
    ],
    "type": "exec",
    "operation": "listQueues(java.lang.String,int,int)"
  },
  "value": 
"{\"data\":[{\"id\":\"3\",\"name\":\"DLQ\",\"address\":\"DLQ\",\"filter\":\"\",\"durable\":\"true\",\"paused\":\"false\",\"persistedPause\":\"false\",\"temporary\":\"false\",\"purgeOnNoConsumers\":\"false\",\"consumerCount\":\"0\",\"maxConsumers\":\"-1\",\"autoCreated\":\"false\",\"user\":\"\",\"routingType\":\"ANYCAST\",\"messagesAdded\":\"0\",\"messageCount\":\"0\",\"messagesAcked\":\"0\",\"messagesExpired\":\"0\",\"deliveringCount\":\"0\",\"messagesKilled\":\"0\",\"directDeliver\":\"false\",\"exclusive\":\"false\",\"lastValue\":\"false\",\"lastValueKey\":\"\",\"scheduledCount\":\"0\",\"groupRebalance\":\"false\",\"groupRebalancePauseDispatch\":\"false\",\"groupBuckets\":\"-1\",\"groupFirstKey\":\"\",\"enabled\":\"true\",\"ringSize\":\"-1\",\"consumersBeforeDispatch\":\"0\",\"delayBeforeDispatch\":\"-1\",\"autoDelete\":\"false\",\"internalQueue\":\"false\"},{\"id\":\"7\",\"name\":\"ExpiryQueue\",\"address\":\"ExpiryQueue\",\"filter\":\"\",\"durable\":\"true\",\"paused\":\"false\",\"persistedPause\":\"false\",\"temporary\":\"false\",\"purgeOnNoConsumers\":\"false\",\"consumerCount\":\"0\",\"maxConsumers\":\"-1\",\"autoCreated\":\"false\",\"user\":\"\",\"routingType\":\"ANYCAST\",\"messagesAdded\":\"0\",\"messageCount\":\"0\",\"messagesAcked\":\"0\",\"messagesExpired\":\"0\",\"deliveringCount\":\"0\",\"messagesKilled\":\"0\",\"directDeliver\":\"false\",\"exclusive\":\"false\",\"lastValue\":\"false\",\"lastValueKey\":\"\",\"scheduledCount\":\"0\",\"groupRebalance\":\"false\",\"groupRebalancePauseDispatch\":\"false\",\"groupBuckets\":\"-1\",\"groupFirstKey\":\"\",\"enabled\":\"true\",\"ringSize\":\"-1\",\"consumersBeforeDispatch\":\"0\",\"delayBeforeDispatch\":\"-1\",\"autoDelete\":\"false\",\"internalQueue\":\"false\"},{\"id\":\"13\",\"name\":\"$sys.mqtt.sessions\",\"address\":\"$sys.mqtt.sessions\",\"filter\":\"\",\"durable\":\"true\",\"paused\":\"false\",\"persistedPause\":\"false\",\"temporary\":\"false\",\"purgeOnNoConsumers\":\"false\",\"consumerCount\":\"0\",\"maxConsumers\":\"-1\",\"autoCreated\":\"false\",\"user\":\"\",\"routingType\":\"ANYCAST\",\"messagesAdded\":\"0\",\"messageCount\":\"0\",\"messagesAcked\":\"0\",\"messagesExpired\":\"0\",\"deliveringCount\":\"0\",\"messagesKilled\":\"0\",\"directDeliver\":\"false\",\"exclusive\":\"false\",\"lastValue\":\"true\",\"lastValueKey\":\"_AMQ_LVQ_NAME\",\"scheduledCount\":\"0\",\"groupRebalance\":\"false\",\"groupRebalancePauseDispatch\":\"false\",\"groupBuckets\":\"-1\",\"groupFirstKey\":\"\",\"enabled\":\"true\",\"ringSize\":\"-1\",\"consumersBeforeDispatch\":\"0\",\"delayBeforeDispatch\":\"-1\",\"autoDelete\":\"false\",\"internalQueue\":\"true\"},{\"id\":\"40\",\"name\":\"a.b\",\"address\":\"e\\\\f\",\"filter\":\"\",\"durable\":\"true\",\"paused\":\"false\",\"persistedPause\":\"false\",\"temporary\":\"false\",\"purgeOnNoConsumers\":\"false\",\"consumerCount\":\"0\",\"maxConsumers\":\"-1\",\"autoCreated\":\"false\",\"user\":\"\",\"routingType\":\"ANYCAST\",\"messagesAdded\":\"0\",\"messageCount\":\"0\",\"messagesAcked\":\"0\",\"messagesExpired\":\"0\",\"deliveringCount\":\"0\",\"messagesKilled\":\"0\",\"directDeliver\":\"false\",\"exclusive\":\"false\",\"lastValue\":\"false\",\"lastValueKey\":\"\",\"scheduledCount\":\"0\",\"groupRebalance\":\"false\",\"groupRebalancePauseDispatch\":\"false\",\"groupBuckets\":\"-1\",\"groupFirstKey\":\"\",\"enabled\":\"true\",\"ringSize\":\"-1\",\"consumersBeforeDispatch\":\"0\",\"delayBeforeDispatch\":\"-1\",\"autoDelete\":\"false\",\"internalQueue\":\"false\"},{\"id\":\"55\",\"name\":\"client1.Consumer
 ActiveMQTopic[address\\\\.test1\\\\.topic], 
thread=0\",\"address\":\"address.test1.topic\",\"filter\":\"\",\"durable\":\"true\",\"paused\":\"false\",\"persistedPause\":\"false\",\"temporary\":\"false\",\"purgeOnNoConsumers\":\"false\",\"consumerCount\":\"0\",\"maxConsumers\":\"-1\",\"autoCreated\":\"false\",\"user\":\"\",\"routingType\":\"MULTICAST\",\"messagesAdded\":\"0\",\"messageCount\":\"0\",\"messagesAcked\":\"0\",\"messagesExpired\":\"0\",\"deliveringCount\":\"0\",\"messagesKilled\":\"0\",\"directDeliver\":\"false\",\"exclusive\":\"false\",\"lastValue\":\"false\",\"lastValueKey\":\"\",\"scheduledCount\":\"0\",\"groupRebalance\":\"false\",\"groupRebalancePauseDispatch\":\"false\",\"groupBuckets\":\"-1\",\"groupFirstKey\":\"\",\"enabled\":\"true\",\"ringSize\":\"-1\",\"consumersBeforeDispatch\":\"0\",\"delayBeforeDispatch\":\"-1\",\"autoDelete\":\"false\",\"internalQueue\":\"false\"},{\"id\":\"244\",\"name\":\"to.lxxx.*\",\"address\":\"c\\\\d\",\"filter\":\"\",\"durable\":\"true\",\"paused\":\"false\",\"persistedPause\":\"false\",\"temporary\":\"false\",\"purgeOnNoConsumers\":\"false\",\"consumerCount\":\"0\",\"maxConsumers\":\"-1\",\"autoCreated\":\"false\",\"user\":\"\",\"routingType\":\"ANYCAST\",\"messagesAdded\":\"0\",\"messageCount\":\"0\",\"messagesAcked\":\"0\",\"messagesExpired\":\"0\",\"deliveringCount\":\"0\",\"messagesKilled\":\"0\",\"directDeliver\":\"false\",\"exclusive\":\"false\",\"lastValue\":\"false\",\"lastValueKey\":\"\",\"scheduledCount\":\"0\",\"groupRebalance\":\"false\",\"groupRebalancePauseDispatch\":\"false\",\"groupBuckets\":\"-1\",\"groupFirstKey\":\"\",\"enabled\":\"true\",\"ringSize\":\"-1\",\"consumersBeforeDispatch\":\"0\",\"delayBeforeDispatch\":\"-1\",\"autoDelete\":\"false\",\"internalQueue\":\"false\"},{\"id\":\"249\",\"name\":\"to.lxxxx.*\",\"address\":\"asd\",\"filter\":\"\",\"durable\":\"true\",\"paused\":\"false\",\"persistedPause\":\"false\",\"temporary\":\"false\",\"purgeOnNoConsumers\":\"false\",\"consumerCount\":\"0\",\"maxConsumers\":\"-1\",\"autoCreated\":\"false\",\"user\":\"\",\"routingType\":\"ANYCAST\",\"messagesAdded\":\"0\",\"messageCount\":\"0\",\"messagesAcked\":\"0\",\"messagesExpired\":\"0\",\"deliveringCount\":\"0\",\"messagesKilled\":\"0\",\"directDeliver\":\"false\",\"exclusive\":\"false\",\"lastValue\":\"false\",\"lastValueKey\":\"\",\"scheduledCount\":\"0\",\"groupRebalance\":\"false\",\"groupRebalancePauseDispatch\":\"false\",\"groupBuckets\":\"-1\",\"groupFirstKey\":\"\",\"enabled\":\"true\",\"ringSize\":\"-1\",\"consumersBeforeDispatch\":\"0\",\"delayBeforeDispatch\":\"-1\",\"autoDelete\":\"false\",\"internalQueue\":\"false\"}],\"count\":7}",
  "status": 200
}
{code}

When parsing the {{value}}, we get:
{noformat}
$ xclip -o | jq -r .value | jq .
{
  "data": [
    ...
    {
      "id": "249",
      "name": "to.lxxxx.*",
      "address": "asd",
      "filter": "",
      "durable": "true",
      "paused": "false",
      "persistedPause": "false",
      "temporary": "false",
      "purgeOnNoConsumers": "false",
      "consumerCount": "0",
      "maxConsumers": "-1",
      "autoCreated": "false",
      "user": "",
      "routingType": "ANYCAST",
      "messagesAdded": "0",
      "messageCount": "0",
      "messagesAcked": "0",
      "messagesExpired": "0",
      "deliveringCount": "0",
      "messagesKilled": "0",
      "directDeliver": "false",
      "exclusive": "false",
      "lastValue": "false",
      "lastValueKey": "",
      "scheduledCount": "0",
      "groupRebalance": "false",
      "groupRebalancePauseDispatch": "false",
      "groupBuckets": "-1",
      "groupFirstKey": "",
      "enabled": "true",
      "ringSize": "-1",
      "consumersBeforeDispatch": "0",
      "delayBeforeDispatch": "-1",
      "autoDelete": "false",
      "internalQueue": "false"
    }
  ],
  "count": 7
}
{noformat}

At browser side, {{listQueues()}} in 
{{artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/queues/QueuesTable.tsx}}
 calls {{JSON.parse(value)}} and we get:
 !screenshot-1.png! 

that's why the table properly shows {{to.lxxxx.*}}.

But when I click it, I get:
{noformat}
TypeError: w.map is not a function
    Lt http://localhost:8161/console/static/js/931.13da561f.chunk.js:1
    vo http://localhost:8161/console/static/js/react.e0f1c01e.chunk.js:2
    _u http://localhost:8161/console/static/js/react.e0f1c01e.chunk.js:2
    Ei http://localhost:8161/console/static/js/react.e0f1c01e.chunk.js:2
    bs http://localhost:8161/console/static/js/react.e0f1c01e.chunk.js:2
    gs http://localhost:8161/console/static/js/react.e0f1c01e.chunk.js:2
    vs http://localhost:8161/console/static/js/react.e0f1c01e.chunk.js:2
    ls http://localhost:8161/console/static/js/react.e0f1c01e.chunk.js:2
    as http://localhost:8161/console/static/js/react.e0f1c01e.chunk.js:2
    _ http://localhost:8161/console/static/js/other.05028eea.chunk.js:2
    P http://localhost:8161/console/static/js/other.05028eea.chunk.js:2
{noformat}

Checking...

> Cannot do operations on queue with wildcard in its name
> -------------------------------------------------------
>
>                 Key: ARTEMIS-5777
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5777
>             Project: Artemis
>          Issue Type: Task
>          Components: Web Console
>    Affects Versions: console-1.4.0
>            Reporter: Gašper Čefarin
>            Priority: Minor
>         Attachments: screenshot-1.png
>
>
> A queue with name "to.lxxx.*" has no available operations for "delete, purge, 
> browse, send" in the web console.
> When clicking on the queue name, an error message appears:
> {code:java}
>  javax.management.InstanceNotFoundException : 
> org.apache.activemq.artemis:broker="B-TEST",component=addresses,address="to.lxxx.*",subcomponent=queues,routing-type="anycast",queue="to.lxxx.*"
> {code}
> Clicking on the address name produces no errors.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to