You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Sebastian T. (JIRA)" <ji...@apache.org> on 2015/03/11 10:48:38 UTC
[jira] [Closed] (AMQ-5643) javax.jms.JMSSecurityException: User is
not authorized to write to: queue:// with NIO Transport
[ https://issues.apache.org/jira/browse/AMQ-5643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebastian T. closed AMQ-5643.
-----------------------------
Resolution: Not a Problem
Authorization is done by group not by user
> javax.jms.JMSSecurityException: User is not authorized to write to: queue:// with NIO Transport
> -------------------------------------------------------------------------------------------------
>
> Key: AMQ-5643
> URL: https://issues.apache.org/jira/browse/AMQ-5643
> Project: ActiveMQ
> Issue Type: Bug
> Components: JMS client
> Affects Versions: 5.9.0, 5.10.0, 5.11.0
> Reporter: Sebastian T.
> Labels: security
> Attachments: AccessJMSTest.java, activemq.xml, groups.properties, users.properties
>
>
> Tried to write a message to an existing queue, but getting a JMSSecurityException.
> Checked the configuration of the authorizationMap twice (attched). Added also a sample program to verify my issue.
> Exception in thread "main" javax.jms.JMSSecurityException: User testUser is not authorized to write to: queue://queue1
> at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:52)
> at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1420)
> at org.apache.activemq.ActiveMQSession.syncSendPacket(ActiveMQSession.java:2018)
> at org.apache.activemq.ActiveMQMessageProducer.<init>(ActiveMQMessageProducer.java:124)
> at org.apache.activemq.ActiveMQSession.createProducer(ActiveMQSession.java:1048)
> at com.sobis.activemqtests.AccessJMSTest.main(AccessJMSTest.java:47)
> Caused by: java.lang.SecurityException: User testUser is not authorized to write to: queue://queue1
> at org.apache.activemq.security.AuthorizationBroker.addProducer(AuthorizationBroker.java:196)
> at org.apache.activemq.broker.MutableBrokerFilter.addProducer(MutableBrokerFilter.java:107)
> at org.apache.activemq.broker.TransportConnection.processAddProducer(TransportConnection.java:565)
> at org.apache.activemq.command.ProducerInfo.visit(ProducerInfo.java:108)
> at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:294)
> at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:148)
> at org.apache.activemq.transport.MutexTransport.onCommand(MutexTransport.java:50)
> at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113)
> at org.apache.activemq.transport.AbstractInactivityMonitor.onCommand(AbstractInactivityMonitor.java:270)
> at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
> at org.apache.activemq.transport.nio.NIOTransport.serviceRead(NIOTransport.java:138)
> at org.apache.activemq.transport.nio.NIOTransport$1.onSelect(NIOTransport.java:69)
> at org.apache.activemq.transport.nio.SelectorSelection.onSelect(SelectorSelection.java:94)
> at org.apache.activemq.transport.nio.SelectorWorker$1.run(SelectorWorker.java:119)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)