You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (JIRA)" <ji...@apache.org> on 2017/03/23 16:41:41 UTC
[jira] [Assigned] (ARTEMIS-1064) Getting "deliveryModes" of an
Address from a client via management causes AMQ119034
[ https://issues.apache.org/jira/browse/ARTEMIS-1064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Bertram reassigned ARTEMIS-1064:
---------------------------------------
Assignee: Justin Bertram
> 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)