[ https://issues.apache.org/jira/browse/ARTEMIS-4762?focusedWorklogId=917940&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-917940 ]
ASF GitHub Bot logged work on ARTEMIS-4762: ------------------------------------------- Author: ASF GitHub Bot Created on: 06/May/24 20:56 Start Date: 06/May/24 20:56 Worklog Time Spent: 10m Work Description: clebertsuconic merged PR #4923: URL: https://github.com/apache/activemq-artemis/pull/4923 Issue Time Tracking ------------------- Worklog Id: (was: 917940) Time Spent: 20m (was: 10m) > 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)