XmlDataExporter java.lang.NullPointerException

Solution In Progress - Updated -

Issue

We use XmlDataExporter for saving journal, page and large-message data from a stopped instance of HornetQ in an XML format.

If a messages has a String header property with a null value, for example:

 message.setStringProperty("boot_size", null)

we see an exception like the following:

java.lang.NullPointerException
        at org.hornetq.core.persistence.impl.journal.XmlDataExporter.printMessageProperties(XmlDataExporter.java:635)
        at org.hornetq.core.persistence.impl.journal.XmlDataExporter.printSingleMessageAsXML(XmlDataExporter.java:534)
        at org.hornetq.core.persistence.impl.journal.XmlDataExporter.printAllMessagesAsXML(XmlDataExporter.java:432)
        at org.hornetq.core.persistence.impl.journal.XmlDataExporter.printDataAsXML(XmlDataExporter.java:391)
        at org.hornetq.core.persistence.impl.journal.XmlDataExporter.writeXMLData(XmlDataExporter.java:186)
        at org.hornetq.core.persistence.impl.journal.XmlDataExporter.main(XmlDataExporter.java:173)

Environment

  • Red Hat JBoss Enterprise Application Platform
    • 6.0.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content