[
https://issues.apache.org/jira/browse/ARTEMIS-4762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17843883#comment-17843883
]
ASF subversion and git services commented on ARTEMIS-4762:
----------------------------------------------------------
Commit f9e2f0920766633b6bd85cbc4248db14f09198d5 in activemq-artemis's branch
refs/heads/main from Clebert Suconic
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=f9e2f09207 ]
ARTEMIS-4762 NPE when running 'artemis queue stat' against older server
> 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: 20m
> 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)