[ https://issues.apache.org/jira/browse/ARTEMIS-1064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15945781#comment-15945781 ]
ASF GitHub Bot commented on ARTEMIS-1064: ----------------------------------------- GitHub user jbertram opened a pull request: https://github.com/apache/activemq-artemis/pull/1146 ARTEMIS-1064 AddressControl routingType fix You can merge this pull request into a Git repository by running: $ git pull https://github.com/jbertram/activemq-artemis ARTEMIS-1064 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/activemq-artemis/pull/1146.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1146 ---- commit f0712f1b30f7f5d617b74f2f2c299261fdbe20fe Author: Justin Bertram <jbert...@apache.org> Date: 2017-03-28T19:28:31Z ARTEMIS-1064 AddressControl routingType fix ---- > Getting "deliveryModes" of an Address from a client via management causes > AMQ119034 > ----------------------------------------------------------------------------------- > > Key: ARTEMIS-1064 > URL: https://issues.apache.org/jira/browse/ARTEMIS-1064 > Project: ActiveMQ Artemis > Issue Type: Bug > Components: Broker > Affects Versions: 2.0.0 > Environment: WIndows 64 bits > Reporter: Denis Forveille > Assignee: Justin Bertram > Attachments: ARTEMIS-1064_stacktrace.txt > > > Trying to get the "deliveryModes2 from an Address by using the management > queue from a client causes the following exception: > {code} > AMQ222112: exception while retrieving attribute deliveryModes on > address.8c7fdeb1-7b6d-4a62-ba46-ebc9 > eption: AMQ119034: Params for management operations must be of the following > type: int long double String boolean Map or array thereof but found > java.util.HashSet > {code} > {code} > Session sessionJMS = ... > Queue managementQueue = ActiveMQJMSClient.createQueue("activemq.management"); > QueueRequestor requestorJMS = new QueueRequestor((QueueSession) sessionJMS, > managementQueue); > Message m = sessionJMS.createMessage(); > JMSManagementHelper.putAttribute(m, ResourceNames.BROKER, "addressNames"); > Message r = requestorJMS.request(m); > Object t = JMSManagementHelper.getResult(r); > for (Object o : (Object[]) t) { > String adressName = (String) o; > m = sessionJMS.createMessage(); > JMSManagementHelper.putAttribute(m, ResourceNames.ADDRESS + adressName, > "deliveryModes"); > r = requestorJMS.request(m); // Fails with AMQ119034 > } > {code} > (I will attach the full stack trace separatly) -- This message was sent by Atlassian JIRA (v6.3.15#6346)