-
Bug
-
Resolution: Done
-
Major
-
AMQ 7.6.0.GA
-
None
-
-
-
-
Previously, if the journal was exported to XML via the `artemis data exp` command it might encounter a null pointer exception because it failed to verify the journal data properly. This issue is now resolved.
-
Verified in a release
I met many errors like below when starting the broker:
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
the broker can be started up successfully, but I want to export the messages to do some backup work, I met NPE when exporting the messages through the cli:
artemis data exp --output ./export.data --verbose
Error:null
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)
Pls provide a way to export the data even if my journal files maybe corrupt.
- clones
-
ENTMQBR-3676 Met NPE when trying to export the messages
- Closed