Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-1064

Getting "deliveryModes" of an Address from a client via management causes AMQ119034

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.1.0
    • Broker
    • None
    • WIndows 64 bits

    Description

      Trying to get the "deliveryModes2 from an Address by using the management queue from a client causes the following exception:

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

      (I will attach the full stack trace separatly)

      Attachments

        1. ARTEMIS-1064_stacktrace.txt
          5 kB
          Denis Forveille

        Issue Links

          Activity

            People

              jbertram Justin Bertram
              denis.forveille Denis Forveille
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: