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

clebert suconic closed ARTEMIS-1064.
------------------------------------

> 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
>             Fix For: 2.1.0
>
>         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.4.14#64029)

Reply via email to