activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Bertram <jbert...@apache.com>
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?


Justin

----- Original Message -----
From: "spruitt" <steve.pruitt@hp.com>
To: users@activemq.apache.org
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 artemis-roles.properties, artemis-users.properties, and
broker.xml files and all seems ok as per the user credentials to create a
session.  I'm trying to get the example AMQPQueueExample.java working.

Code snippet is: 

ConnectionFactory connectionFactory = new
JmsConnectionFactory("amqp://localhost:5672");
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: '127.0.0.1:57367', transport: 'socket'
[AmqpProvider:(1):[amqp://localhost:5672]] INFO
org.apache.qpid.jms.sasl.SaslMechanismFinder - Best match for SASL auth was:
SASL-PLAIN
Exception in thread "main" javax.jms.JMSSecurityException: Client failed to
authenticate at
org.apache.qpid.jms.provider.amqp.AmqpSaslAuthenticator.handleSaslFail(AmqpSaslAuthenticator.java:51)
at
org.apache.qpid.jms.provider.amqp.AmqpSaslAuthenticator.authenticate(AmqpSaslAuthenticator.java:93)
 at
org.apache.qpid.jms.provider.amqp.AmqpProvider.processSaslAuthentication(AmqpProvider.java:826)



--
View this message in context: http://activemq.2283324.n4.nabble.com/Client-failed-to-authenticate-tp4705907.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message