HornetQ's XmlDataImporter utility does not work with broker security enabled.

Solution Verified - Updated -

Issue

The importer command throws the following exception:

bin]$ java org.hornetq.jms.persistence.impl.journal.XmlDataImporter exportFromEAP63.xml localhost 5445 false false
HornetQException[errorType=SECURITY_EXCEPTION message=HQ119031: Unable to validate user: null]
    at org.hornetq.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:394)
    at org.hornetq.core.client.impl.ClientSessionFactoryImpl.createSessionInternal(ClientSessionFactoryImpl.java:878)
    at org.hornetq.core.client.impl.ClientSessionFactoryImpl.createSessionInternal(ClientSessionFactoryImpl.java:787)
    at org.hornetq.core.client.impl.ClientSessionFactoryImpl.createSession(ClientSessionFactoryImpl.java:392)
    at org.hornetq.jms.persistence.impl.journal.XmlDataImporter.<init>(XmlDataImporter.java:178)
    at org.hornetq.jms.persistence.impl.journal.XmlDataImporter.<init>(XmlDataImporter.java:186)
    at org.hornetq.jms.persistence.impl.journal.XmlDataImporter.main(XmlDataImporter.java:201)

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.2.x
    • 6.4.x

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