Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8E2B7DC32 for ; Fri, 2 Nov 2012 15:05:13 +0000 (UTC) Received: (qmail 33279 invoked by uid 500); 2 Nov 2012 15:05:13 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 33232 invoked by uid 500); 2 Nov 2012 15:05:13 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 33161 invoked by uid 99); 2 Nov 2012 15:05:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Nov 2012 15:05:13 +0000 Date: Fri, 2 Nov 2012 15:05:13 +0000 (UTC) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Message-ID: <807517632.60564.1351868713122.JavaMail.jiratomcat@arcas> Subject: [jira] [Resolved] (AMQ-2521) Some JMX operations fail with SecurityException with secured broker MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-2521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Timothy Bish resolved AMQ-2521. ------------------------------- Resolution: Fixed Fix Version/s: 5.6.0 5.7.0 This has since been fixed and works in at least 5.6 and 5.7+ > Some JMX operations fail with SecurityException with secured broker > ------------------------------------------------------------------- > > Key: AMQ-2521 > URL: https://issues.apache.org/jira/browse/AMQ-2521 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.3.0 > Environment: I've reproduced this on OS X and Linux > Reporter: Phil Pickett > Priority: Minor > Fix For: 5.7.0, 5.6.0 > > > I've started a secured broker using the sample configuration as follows: > ./activemq xbean:file:../conf/activemq-security.xml > After the broker was started, I used the example ProducerTool to put 2000 messages on the TEST.FOO queue. For this to work, I modified the ProducerTool to use username/password as follows: > private String user = "system"; > private String password = "manager"; > I then connected to the broker using jconsole, and created a new queue using the Broker's addQueue MBean operation. As a test, I also used the TEST.FOO queue's removeMessage MBean operation to remove a message from the queue. > The problem is that certain MBean operations fail with "Problem invoking moveMessageTo : java.lang.SecurityException: User is not authenticated." I have seen this with a queue's sendTextMessage and moveMessageTo operations. > The full exception as logged by the broker for the failed sendTextMessage operation is: > WARN | 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:82) > at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableBrokerFilter.java:89) > at org.apache.activemq.broker.TransportConnection.processAddConnection(TransportConnection.java:666) > at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:134) > at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:297) > at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:175) > at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:109) > at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:68) > at org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:205) > at org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98) > at org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:36) > This seems similar to AMQ-2516. I've tried this using the 5.3.1 and 5.4 SNAPSHOTs and see the same thing. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira