Getting security exception while conecting to jms queue

Solution Unverified - Updated -

Issue

  • we are getting below exception when trying to push a jms message in jboss eap 6 server from java client code.
Exception in thread "main" javax.jms.JMSSecurityException: Unable to validate user: xyz
    at org.hornetq.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:312)
    at org.hornetq.core.client.impl.ClientSessionFactoryImpl.createSessionInternal(ClientSessionFactoryImpl.java:781)
    at org.hornetq.core.client.impl.ClientSessionFactoryImpl.createSession(ClientSessionFactoryImpl.java:280)
    at org.hornetq.jms.client.HornetQConnection.authorize(HornetQConnection.java:611)
    at org.hornetq.jms.client.HornetQConnectionFactory.createConnectionInternal(HornetQConnectionFactory.java:684)
    at org.hornetq.jms.client.HornetQConnectionFactory.createQueueConnection(HornetQConnectionFactory.java:131)
    at com.hp.adapter.generic.StandaloneQueueSendClientSecond.init(StandaloneQueueSendClientSecond.java:53)
    at com.hp.adapter.generic.StandaloneQueueSendClientSecond.main(StandaloneQueueSendClientSecond.java:22)
Caused by: HornetQException[errorCode=105 message=Unable to validate user: xyz]
    ... 8 more

Environment

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

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.