activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebastian T. (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMQ-5643) javax.jms.JMSSecurityException: User is not authorized to write to: queue:// with NIO Transport
Date Fri, 06 Mar 2015 14:17:38 GMT

     [ https://issues.apache.org/jira/browse/AMQ-5643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sebastian T. updated AMQ-5643:
------------------------------
    Attachment: activemq.xml

>  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
>
>
> 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)

Mime
View raw message