Details

    • Target Release:
    • Affects:
      Release Notes
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Pass the ignoreErrors=true parameter. For example,

      $ curl -X GET 'http://admin:admin@localhost:8161/console/jolokia/read/org.apache.activemq.artemis:broker="0.0.0.0"?ignoreErrors=true'
      
      Show
      Pass the ignoreErrors=true parameter. For example, $ curl -X GET 'http://admin:admin@localhost:8161/console/jolokia/read/org.apache.activemq.artemis:broker="0.0.0.0"?ignoreErrors=true'
    • Release Notes Text:
      Using Jolokia, it is now possible to request all of the attributes for the broker MBean.
    • Release Notes Docs Status:
      Documented as Resolved Issue

      Description

      A read request such as:

      curl -X GET http://admin:admin@localhost:8161/console/jolokia/read/org.apache.activemq.artemis:broker="0.0.0.0"
      

      does not retrieve all the attributes of the broker object. It returns the error:

      {"request":{"mbean":"org.apache.activemq.artemis:broker=0.0.0.0","type":"read"},"error_type":"javax.management.InstanceNotFoundException","error":"javax.management.InstanceNotFoundException : org.apache.activemq.artemis:broker=0.0.0.0","status":404}
      

      However the Hawtio doc about the read request [1] that "...If no attribute is provided, then all attributes are fetched."
      The equivalent command in AMQ6 used to work:

      curl --user admin:admin -X GET http://localhost:8181/hawtio/jolokia/read/org.apache.activemq:type=Broker,brokerName=amq
      
      {"request":{"mbean":"org.apache.activemq:brokerName=amq,type=Broker","type":"read"},"value":{"StatisticsEnabled":true,"TemporaryQueueSubscribers":[],"TotalConnectionsCount":0,"TotalMessageCount":0,"TempPercentUsage":0,"MemoryPercentUsage":0,"TransportConnectors":{"openwire":"tcp:\/\/laptop:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600","amqp":"amqp:\/\/laptop:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600","mqtt":"mqtt:\/\/laptop:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600","ws":"ws:\/\/laptop:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600"},"InactiveDurableTopicSubscribers":[],"StoreLimit":43054626439,"TotalProducerCount":0,"TopicProducers":[],"CurrentConnectionsCount":0,"QueueProducers":[],"JMSJobScheduler":null,"VMURL":"vm:\/\/amq","UptimeMillis":697271,"TemporaryTopicProducers":[],"TemporaryQueueProducers":[],"TotalDequeueCount":0,"Topics":[{"objectName":"org.apache.activemq:brokerName=amq,destinationName=ActiveMQ.Advisory.MasterBroker,destinationType=Topic,type=Broker"}],"DurableTopicSubscribers":[],"JobSchedulerStorePercentUsage":0,"Uptime":"11 minutes","QueueSubscribers":[],"BrokerId":"ID:laptop-61742-1525788148295-0:1","AverageMessageSize":1024,"DataDirectory":"\/Users\/support\/software\/jboss-a-mq-6.3.0.redhat-310\/data\/amq","Persistent":true,"TopicSubscribers":[],"BrokerVersion":"5.11.0.redhat-630310","TemporaryQueues":[],"BrokerName":"amq","MinMessageSize":1024,"MemoryLimit":334338458,"Slave":false,"DynamicDestinationProducers":[],"TotalEnqueueCount":1,"TempLimit":43052220416,"TemporaryTopicSubscribers":[],"TemporaryTopics":[],"JobSchedulerStoreLimit":0,"Queues":[],"TotalConsumerCount":0,"StorePercentUsage":0,"MaxMessageSize":1024},"timestamp":1525788845,"status":200}
      
      

      [1]: https://jolokia.org/reference/html/protocol.html#read

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ataylor Andy Taylor
                  Reporter:
                  mbelkour Amine Belkoura
                  Tester:
                  Oleg Sushchenko
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: