You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Clebert Suconic (Jira)" <ji...@apache.org> on 2024/05/06 19:13:00 UTC

[jira] [Updated] (ARTEMIS-4762) Queue Stat throw NPE if executed against old server

     [ https://issues.apache.org/jira/browse/ARTEMIS-4762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Clebert Suconic updated ARTEMIS-4762:
-------------------------------------
    Description: 
Start 2.28 server, and run ./artemis queue stat against that server.

You will get a NullPointerException within JSON:

java.lang.NullPointerException: no mapping for internalQueue
	at org.apache.johnzon.core.JsonObjectImpl.valueOrExcpetion(JsonObjectImpl.java:52)
	at org.apache.johnzon.core.JsonObjectImpl.getString(JsonObjectImpl.java:85)
	at org.apache.activemq.artemis.json.impl.JsonObjectImpl.getString(JsonObjectImpl.java:68)
	at org.apache.activemq.artemis.cli.commands.queue.StatQueue.getColumnSizes(StatQueue.java:293)
	at org.apache.activemq.artemis.cli.commands.queue.StatQueue.printStats(StatQueue.java:268)
	at org.apache.activemq.artemis.cli.commands.queue.StatQueue.lambda$printStats$1(StatQueue.java:227)
	at org.apache.activemq.artemis.api.core.management.ManagementHelper.doManagement(ManagementHelper.java:127)
	at org.apache.activemq.artemis.api.core.management.ManagementHelper.doManagement(ManagementHelper.java:111)
	at org.apache.activemq.artemis.cli.commands.messages.BasicConnectionAbstract.performCoreManagement(BasicConnectionAbstract.java:90)
	at org.apache.activemq.artemis.cli.commands.queue.StatQueue.printStats(StatQueue.java:223)
	at org.apache.activemq.artemis.cli.commands.queue.StatQueue.singleExeuction(StatQueue.java:212)
	at org.apache.activemq.artemis.cli.commands.queue.StatQueue.execute(StatQueue.java:172)
	at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)

  was:
Start 2.28 server, and run ./artemis queue stat against that server.

You will get a NullPointerException or a JSON exception:


> Queue Stat throw NPE if executed against old server
> ---------------------------------------------------
>
>                 Key: ARTEMIS-4762
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4762
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Clebert Suconic
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Start 2.28 server, and run ./artemis queue stat against that server.
> You will get a NullPointerException within JSON:
> java.lang.NullPointerException: no mapping for internalQueue
> 	at org.apache.johnzon.core.JsonObjectImpl.valueOrExcpetion(JsonObjectImpl.java:52)
> 	at org.apache.johnzon.core.JsonObjectImpl.getString(JsonObjectImpl.java:85)
> 	at org.apache.activemq.artemis.json.impl.JsonObjectImpl.getString(JsonObjectImpl.java:68)
> 	at org.apache.activemq.artemis.cli.commands.queue.StatQueue.getColumnSizes(StatQueue.java:293)
> 	at org.apache.activemq.artemis.cli.commands.queue.StatQueue.printStats(StatQueue.java:268)
> 	at org.apache.activemq.artemis.cli.commands.queue.StatQueue.lambda$printStats$1(StatQueue.java:227)
> 	at org.apache.activemq.artemis.api.core.management.ManagementHelper.doManagement(ManagementHelper.java:127)
> 	at org.apache.activemq.artemis.api.core.management.ManagementHelper.doManagement(ManagementHelper.java:111)
> 	at org.apache.activemq.artemis.cli.commands.messages.BasicConnectionAbstract.performCoreManagement(BasicConnectionAbstract.java:90)
> 	at org.apache.activemq.artemis.cli.commands.queue.StatQueue.printStats(StatQueue.java:223)
> 	at org.apache.activemq.artemis.cli.commands.queue.StatQueue.singleExeuction(StatQueue.java:212)
> 	at org.apache.activemq.artemis.cli.commands.queue.StatQueue.execute(StatQueue.java:172)
> 	at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)



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