Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-3676

Met NPE when trying to export the messages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • AMQ 7.8.0.CR4
    • AMQ 7.6.0.GA, AMQ 7.7.0.CR1
    • None
    • None

      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.

              rhn-support-jbertram Justin Bertram
              rhn-support-xiwu Xiaohui Wu
              Tiago Bueno Tiago Bueno
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: