HornetQ's XmlDataImporter utility does not work with broker security enabled.
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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
