Hi all,

I tried to run all the tests after upgrading the carbon kernel version of
MB from 4.4.0 to 4.4.1 and all the authorization tests fail with the
following exception.

javax.jms.JMSException: Error registering consumer:
org.wso2.andes.AMQSecurityException: Permission denied: queue-name
'authQueue1' [error code 403: access refused]
at org.wso2.andes.client.AMQSession$5.execute(AMQSession.java:2114)
at org.wso2.andes.client.AMQSession$5.execute(AMQSession.java:2057)
at
org.wso2.andes.client.AMQConnectionDelegate_8_0.executeRetrySupport(AMQConnectionDelegate_8_0.java:315)
at
org.wso2.andes.client.AMQConnection.executeRetrySupport(AMQConnection.java:620)
at
org.wso2.andes.client.failover.FailoverRetrySupport.execute(FailoverRetrySupport.java:102)
at org.wso2.andes.client.AMQSession.createConsumerImpl(AMQSession.java:2055)
at org.wso2.andes.client.AMQSession.createConsumer(AMQSession.java:1028)
at org.wso2.andes.client.AMQSession.createReceiver(AMQSession.java:1423)
at
org.wso2.andes.client.AMQQueueSessionAdaptor.createReceiver(AMQQueueSessionAdaptor.java:75)
at
org.wso2.mb.integration.common.clients.AndesJMSConsumer.createQueueConnection(AndesJMSConsumer.java:208)
at
org.wso2.mb.integration.common.clients.AndesJMSConsumer.<init>(AndesJMSConsumer.java:119)
at
org.wso2.mb.integration.common.clients.AndesClient.<init>(AndesClient.java:108)
at
org.wso2.mb.integration.common.clients.AndesClient.<init>(AndesClient.java:76)
at
org.wso2.mb.integration.tests.amqp.functional.QueueUserAuthorizationTestCase.createPublishAndSubscribeFromUser(QueueUserAuthorizationTestCase.java:517)
at
org.wso2.mb.integration.tests.amqp.functional.QueueUserAuthorizationTestCase.performQueuePermissionTestCase(QueueUserAuthorizationTestCase.java:154)
Caused by: org.wso2.andes.AMQSecurityException: Permission denied:
queue-name 'authQueue1' [error code 403: access refused]
at
org.wso2.andes.client.handler.ConnectionCloseMethodHandler.methodReceived(ConnectionCloseMethodHandler.java:85)
at
org.wso2.andes.client.handler.ClientMethodDispatcherImpl.dispatchConnectionClose(ClientMethodDispatcherImpl.java:192)
at
org.wso2.andes.framing.amqp_0_91.ConnectionCloseBodyImpl.execute(ConnectionCloseBodyImpl.java:140)
at
org.wso2.andes.client.state.AMQStateManager.methodReceived(AMQStateManager.java:111)
at
org.wso2.andes.client.protocol.AMQProtocolHandler.methodBodyReceived(AMQProtocolHandler.java:515)
at
org.wso2.andes.client.protocol.AMQProtocolSession.methodFrameReceived(AMQProtocolSession.java:461)
at
org.wso2.andes.framing.AMQMethodBodyImpl.handle(AMQMethodBodyImpl.java:96)
at
org.wso2.andes.client.protocol.AMQProtocolHandler$2.run(AMQProtocolHandler.java:466)
at org.wso2.andes.pool.Job.processAll(Job.java:109)
at org.wso2.andes.pool.Job.run(Job.java:153)
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)

I tried to reproduce this locally by creating a jms consumer from jmeter
but it worked fine.

Also,
Since the test method stops running after the exception, I caught the
exception and included a Thread.sleep to view the status of the user. The
role 'create_queue' that was at the beginning of the test case was no
longer assigned after the exception occurred even though it was there right
before it occurred.

Any help on this matter would be highly appreciated.

Thank you.
-- 
Sasikala Kottegoda
*Software Engineer*
WSO2 Inc., http://wso2.com/
lean. enterprise. middleware
Mobile: +94 774835928/712792401
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to