Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 6923 invoked from network); 18 Sep 2008 11:12:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Sep 2008 11:12:50 -0000 Received: (qmail 72824 invoked by uid 500); 18 Sep 2008 11:12:39 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 72759 invoked by uid 500); 18 Sep 2008 11:12:38 -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 72727 invoked by uid 99); 18 Sep 2008 11:12:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Sep 2008 04:12:38 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Sep 2008 11:11:37 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KgHQe-0007qh-Pd for users@activemq.apache.org; Thu, 18 Sep 2008 04:12:08 -0700 Message-ID: <19550477.post@talk.nabble.com> Date: Thu, 18 Sep 2008 04:12:08 -0700 (PDT) From: Joe Fernandez To: users@activemq.apache.org Subject: Re: Security - simpleAuthenticationPlugin - SecurityException: User name or password is invalid. In-Reply-To: <19548564.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: joe.fernandez@ttmsolutions.com References: <19548564.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org The client @ 172.19.161.51 is trying to connect with an invalid username/password. Is the broker actually terminating when it throws the SecurityException? Joe Get a free ActiveMQ user guide @ http://www.ttmsolutions.com UT wrote: > > Hi, > > i try to start activemq 5.1 with the simpleAuthenticationPlugin. When the > server starts, I get the following exception: > > DEBUG WireFormatNegotiator - tcp:///172.19.161.51:1465 after > negotiation: OpenWireFormat{version=3, cacheEnabled=true, > codingEnabled=true, sizePrefixDisabled=false} > INFO TransportServerThreadSupport - Listening for connections at: > ssl://B4022-C:61617 > INFO TransportConnector - Connector ssl Started > INFO TransportServerThreadSupport - Listening for connections at: > stomp://B4022-C:61613 > INFO TransportConnector - Connector stomp Started > DEBUG TransportConnection - Setting up new connection: > /172.19.161.51:1465 > WARN TransportConnection - Failed to add Connection > java.lang.SecurityException: User name or password is invalid. > at > org.apache.activemq.security.SimpleAuthenticationBroker.addConnection(SimpleAuthenticationBroker.java:52) > at > org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.java:81) > at > org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:88) > at > org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:662) > at > org.apache.activemq.broker.jmx.ManagedTransportConnection.processAddConnection(ManagedTransportConnection.java:86) > at > org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:125) > at > org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:292) > at > org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:180) > at > org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:68) > at > org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:143) > at > org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:206) > at > org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:84) > at > org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:196) > at > org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:183) > at java.lang.Thread.run(Unknown Source) > > > Here is my activemq configuration: > > > xmlns:amq="http://activemq.apache.org/schema/core" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd > http://activemq.apache.org/schema/core > http://activemq.apache.org/schema/core/activemq-core.xsd > http://activemq.apache.org/camel/schema/spring > http://activemq.apache.org/camel/schema/spring/camel-spring.xsd"> > > class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" > /> > dataDirectory="${activemq.base}/data"> > > > > discoveryUri="multicast://default" /> > > > > > > > > > > > > > groups="users,admins" /> > groups="users" /> > groups="guests" /> > > > > > > > > > write="all" admin="all" /> > > > admin="all" /> > > > > > > > > > When I remove the openwire transport connector the server starts. But I > need this connector, I can't remove it. > > > > -- View this message in context: http://www.nabble.com/Security---simpleAuthenticationPlugin---SecurityException%3A-User-name-or-password-is-invalid.-tp19548564p19550477.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.