Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-4721

CLONE - Jms client can't authenticate to messaging subsystem

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.1.2.Final (EAP)
    • 7.1.1.Final
    • JMS, Security
    • None

      Jms client can't authenticate to messaging subsystem. I've prepared reproducer for EAP 6 ER6 but this issue is also in AS7 master.

      Exception:

      Exception in thread "main" javax.jms.JMSSecurityException: Unable to validate user: admin
      	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:601)
      	at org.hornetq.jms.client.HornetQConnectionFactory.createConnectionInternal(HornetQConnectionFactory.java:684)
      	at org.hornetq.jms.client.HornetQConnectionFactory.createConnection(HornetQConnectionFactory.java:119)
      	at testjndi.SecurityClient.getConnection(SecurityClient.java:308)
      	at testjndi.SecurityClient.initializeClient(SecurityClient.java:83)
      	at testjndi.SecurityClient.main(SecurityClient.java:363)
      Caused by: HornetQException[errorCode=105 message=Unable to validate user: admin]
      	... 9 more
      
      

      Steps to reproduce:
      1. Download and unzip EAP 6 ER6 - http://download.devel.redhat.com/devel/candidates/JBEAP/JBEAP-6.0.0-ER6/jboss-eap-6.0.0.ER6.zip
      2. Using add-user.sh create user to application realm - for example with username: admin, password:adminadmin, role:guest
      3. Unzip attached reproducer.zip and copy standalone-full-ha.xml to $JBOSS_HOME/stanalone/configuration
      4. Start server
      5. Start jms client in reproducer - sh start-client.sh 127.0.0.1 jms/queue/testQueue0 admin adminadmin (parameters are hostname queueJndiName username password)

              jgreene@redhat.com Jason Greene
              mnovak1@redhat.com Miroslav Novak
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: