Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 579EE10EA2 for ; Tue, 27 Aug 2013 12:49:03 +0000 (UTC) Received: (qmail 80349 invoked by uid 500); 27 Aug 2013 12:49:03 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 79913 invoked by uid 500); 27 Aug 2013 12:49:02 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 79898 invoked by uid 99); 27 Aug 2013 12:49:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Aug 2013 12:49:01 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of tcarlyle@gmail.com does not designate 216.139.250.139 as permitted sender) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Aug 2013 12:48:56 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VEIgs-0001E1-SV for users@activemq.apache.org; Tue, 27 Aug 2013 05:48:10 -0700 Date: Tue, 27 Aug 2013 05:47:55 -0700 (PDT) From: tcarlyle To: users@activemq.apache.org Message-ID: <1377607675673-4670730.post@n4.nabble.com> Subject: Is it possible to connect with anonymous user through mqtt+nio connector MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I have a broker configured to accept mqtt+nio, tcp+ssl and tcp connections. I can connect anonymously using tcp and jms, but when I try to use the mqtt-client java library https://github.com/fusesource/mqtt-client to connect anonymously, I get the following error log in the broker's side: java.lang.SecurityException: User anonymous is not authorized to write to: queue://ActiveMQ.DLQ 2013-08-27 15:16:40,148 | WARN | Failed to add Connection ID:snf-58412-58115-1377164175964-1:62, reason: java.lang.SecurityException: User name [anonymous] or password is invalid. | org.apache.activemq.broker.TransportConnection | ActiveMQ NIO Worker 782 2013-08-27 15:16:40,155 | WARN | Transport Connection to: tcp://78.91.103.24:32863 failed: java.io.IOException: User name [anonymous] or password is invalid. | org.apache.activemq.broker.TransportConnection.Transport | ActiveMQ NIO Worker 782 2013-08-27 15:16:42,152 | INFO | Stopping null because Failed with SecurityException: User name [anonymous] or password is invalid. | org.apache.activemq.broker.TransportConnection | ActiveMQ BrokerService[localhost] Task-339 I can connect using the mqtt-client if Im using a valid username/password. -- View this message in context: http://activemq.2283324.n4.nabble.com/Is-it-possible-to-connect-with-anonymous-user-through-mqtt-nio-connector-tp4670730.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.