Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-2033

Can't set EnableMessageCounters to true on jboss.messaging.ServerPeer JMX interface

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: 4.3.0.GA_CP03
    • Fix Version/s: TBD EAP 4
    • Component/s: Messaging
    • Labels:
      None
    • Affects:
      Release Notes
    • Release Notes Text:
      EnableMessageCounters on the jboss.messaging.ServerPeer JMX interface, cannot be set to true. A workaround to enable message counters is to invoke the enableMessageCounters() operation on the same JMX interface.
    • Release Notes Docs Status:
      Not Required

      Description

      I'm not 100% sure I have the correct "Fix Version". The version tag of the server is "JBoss 4.3.0.GA_CP01_SOA"

      ==Software Versions==
      I believe this to be the latest released version of the SOA-P.
      Java: Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_16-b02, mixed mode) (not tried any other)
      OS: Ubuntu 8.10

      ==Configuration Changes==
      This issue happens out of the box, without any configuration changes.

      ==Why I think it's a bug==
      The bug causes a stacktrace to appear on the JMX-Console and "enableMessageCounters" to NOT be enabled. I believe it to be a bug, because enabling the "enableMessageCounters" property does not enable message counters. Also, if it is something I have done wrong, then I'd claim it was a bug because there is no human readable error message, just a stacktrace.

      ==Workaround==
      invoke "enableMessageCounters()" on the same JMX interface.

      ==Reproduction Steps==

      1. goto jmx-console
      2. select "service=ServerPeer" from "jboss.messaging" catagory
      3. set "EnableMessageCounters" radio button to true
      4. click "Apply changes"
      5. Observe:

      org.jboss.util.NestedRuntimeException: Key properties cannot be empty; - nested throwable: (javax.management.MalformedObjectNameException: Key properties cannot be empty)
      org.jboss.mx.util.propertyeditor.ObjectNameEditor.getValue(ObjectNameEditor.java:52)
      org.jboss.util.propertyeditor.PropertyEditors.convertValue(PropertyEditors.java:261)
      org.jboss.jmx.adaptor.control.Server.setAttributes(Server.java:190)
      org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.updateAttributes(HtmlAdaptorServlet.java:250)
      org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:98)
      org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:82)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      root cause

      javax.management.MalformedObjectNameException: Key properties cannot be empty
      javax.management.ObjectName.construct(ObjectName.java:467)
      javax.management.ObjectName.<init>(ObjectName.java:1403)
      org.jboss.mx.util.propertyeditor.ObjectNameEditor.getValue(ObjectNameEditor.java:49)
      org.jboss.util.propertyeditor.PropertyEditors.convertValue(PropertyEditors.java:261)
      org.jboss.jmx.adaptor.control.Server.setAttributes(Server.java:190)
      org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.updateAttributes(HtmlAdaptorServlet.java:250)
      org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:98)
      org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:82)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  gaohoward Howard Gao
                  Reporter:
                  paul.robinson Paul Robinson
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: