activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Bertram <>
Subject Re: Client failed to authenticate
Date Fri, 15 Jan 2016 01:46:59 GMT
I made a few modifications to the AMQP example to enable security on the broker and to pass
the appropriate username and password from the client and everything worked as expected. 
Can you provide me with a way to reproduce the failure you're seeing?


----- Original Message -----
From: "spruitt" <>
Sent: Wednesday, January 13, 2016 8:18:07 AM
Subject: Client failed to authenticate

I am trying to get Artemis running and having a security not obvious.  This
is my first pass at Artemis and I installed it on windows as a service.  I
have checked the,, and
broker.xml files and all seems ok as per the user credentials to create a
session.  I'm trying to get the example working.

Code snippet is: 

ConnectionFactory connectionFactory = new
connection = connectionFactory.createConnection("admin", "xxx");
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);

I am executing from the IntelliJ debugger and after trying to create a
session the console has this snippet:

Connected to the target VM, address: '', transport: 'socket'
[AmqpProvider:(1):[amqp://localhost:5672]] INFO
org.apache.qpid.jms.sasl.SaslMechanismFinder - Best match for SASL auth was:
Exception in thread "main" javax.jms.JMSSecurityException: Client failed to
authenticate at

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message