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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • TBD EAP 4
    • 4.3.0.GA_CP03
    • Messaging
    • None
    • Release Notes
    • 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.
    • 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)

      Attachments

        Issue Links

          Activity

            People

              gaohoward Howard Gao
              paul.robinson@redhat.com Paul Robinson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: