You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/06/29 18:46:00 UTC

[jira] [Work logged] (ARTEMIS-2830) NPE in XML exporter

     [ https://issues.apache.org/jira/browse/ARTEMIS-2830?focusedWorklogId=452573&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-452573 ]

ASF GitHub Bot logged work on ARTEMIS-2830:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 29/Jun/20 18:45
            Start Date: 29/Jun/20 18:45
    Worklog Time Spent: 10m 
      Work Description: jbertram opened a new pull request #3207:
URL: https://github.com/apache/activemq-artemis/pull/3207


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 452573)
    Remaining Estimate: 0h
            Time Spent: 10m

> NPE in XML exporter
> -------------------
>
>                 Key: ARTEMIS-2830
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2830
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Justin Bertram
>            Assignee: Justin Bertram
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> It's sometimes possible for there to be acks in the journal for messages which aren't actually in the journal any more. In this situation you would see messages like this in the log when starting the broker:
> {noformat}
> 2020-06-24 10:28:08,630 ERROR [org.apache.activemq.artemis.core.server] AMQ224009: Cannot find message 20,491,425
> 2020-06-24 10:28:08,630 ERROR [org.apache.activemq.artemis.core.server] AMQ224010: Cannot find queue messages for queueID=996 on ack for messageID=20,491,432
> {noformat}
> If you run the {{data exp}} command to export the journal in this condition you'll hit a {{NullPointerException}}:
> {noformat}
> java.lang.NullPointerException
>  at org.apache.activemq.artemis.cli.commands.tools.xml.XmlDataExporter.removeAcked(XmlDataExporter.java:279)
>  at org.apache.activemq.artemis.cli.commands.tools.xml.XmlDataExporter.processMessageJournal(XmlDataExporter.java:267)
>  at org.apache.activemq.artemis.cli.commands.tools.xml.XmlDataExporter.writeXMLData(XmlDataExporter.java:149)
>  at org.apache.activemq.artemis.cli.commands.tools.xml.XmlDataExporter.writeOutput(XmlDataExporter.java:143)
>  at org.apache.activemq.artemis.cli.commands.tools.xml.XmlDataExporter.process(XmlDataExporter.java:132)
>  at org.apache.activemq.artemis.cli.commands.tools.xml.XmlDataExporter.execute(XmlDataExporter.java:99)
>  at org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:150)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)