Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-26536

[GSS](7.4.z) Management interface does not allow to obtain JMS Topic statistics

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 7.4.14.GA
    • ActiveMQ
    • None
    • False
    • None
    • False
    • Release Notes, Migration, Compatibility/Configuration, User Experience
    • Hide

      +underlined text+Steps to reproduce:

      Please enable JMX access in the server configuration file:

       <management jmx-enabled="true"/>

      Please define a topic as follows:

      <jms-topic name="test" entries="java:/jms/topic/test java:jboss/exported/jms/topic/test"/>

      Try to obtain the consumer count or the messages added to the topic. The client will throw an exception identical to the following:

      Exception in thread "main" java.lang.reflect.UndeclaredThrowableException
          at com.sun.proxy.$Proxy2.getConsumerCount(Unknown Source)
          at org.jboss.labs.eap.jms.JMXTopicAccess.main(JMXTopicAccess.java:52)
      Caused by: javax.management.AttributeNotFoundException: No such attribute: ConsumerCount
          at com.sun.jmx.mbeanserver.PerInterface.getAttribute(PerInterface.java:81)
          at com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(MBeanSupport.java:206)
          at javax.management.StandardMBean.getAttribute(StandardMBean.java:372)
          at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:641)
          at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:678)
          at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.getAttribute(PluggableMBeanServerImpl.java:1415)
          at org.jboss.as.jmx.PluggableMBeanServerImpl.getAttribute(PluggableMBeanServerImpl.java:391)
          at org.jboss.as.jmx.BlockingNotificationMBeanServer.getAttribute(BlockingNotificationMBeanServer.java:148)
          at org.jboss.as.jmx.AuthorizingMBeanServer.getAttribute(AuthorizingMBeanServer.java:210)
          at org.jboss.remotingjmx.protocol.v2.ServerProxy$GetAttributeHandler.handle(ServerProxy.java:689)
          at org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1$1.run(ServerCommon.java:153)
          at org.jboss.as.jmx.ServerInterceptorFactory$Interceptor$1.run(ServerInterceptorFactory.java:71)
          at org.jboss.as.jmx.ServerInterceptorFactory$Interceptor$1.run(ServerInterceptorFactory.java:66)
          at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:328)
          at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:285)
          at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:254)
          at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:225)
          at org.jboss.as.jmx.ServerInterceptorFactory$Interceptor.handleEvent(ServerInterceptorFactory.java:66)
          at org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1.run(ServerCommon.java:149)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.lang.Thread.run(Thread.java:829)

       

      I have attached the reproducer code for your reference.

      Show
      +underlined text+Steps to reproduce: Please enable JMX access in the server configuration file:  <management jmx-enabled="true"/> Please define a topic as follows: <jms-topic name="test" entries="java:/jms/topic/test java:jboss/exported/jms/topic/test"/> Try to obtain the consumer count or the messages added to the topic. The client will throw an exception identical to the following: Exception in thread "main" java.lang.reflect.UndeclaredThrowableException     at com.sun.proxy.$Proxy2.getConsumerCount(Unknown Source)     at org.jboss.labs.eap.jms.JMXTopicAccess.main(JMXTopicAccess.java:52) Caused by: javax.management.AttributeNotFoundException: No such attribute: ConsumerCount     at com.sun.jmx.mbeanserver.PerInterface.getAttribute(PerInterface.java:81)     at com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(MBeanSupport.java:206)     at javax.management.StandardMBean.getAttribute(StandardMBean.java:372)     at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:641)     at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:678)     at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.getAttribute(PluggableMBeanServerImpl.java:1415)     at org.jboss.as.jmx.PluggableMBeanServerImpl.getAttribute(PluggableMBeanServerImpl.java:391)     at org.jboss.as.jmx.BlockingNotificationMBeanServer.getAttribute(BlockingNotificationMBeanServer.java:148)     at org.jboss.as.jmx.AuthorizingMBeanServer.getAttribute(AuthorizingMBeanServer.java:210)     at org.jboss.remotingjmx.protocol.v2.ServerProxy$GetAttributeHandler.handle(ServerProxy.java:689)     at org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1$1.run(ServerCommon.java:153)     at org.jboss.as.jmx.ServerInterceptorFactory$Interceptor$1.run(ServerInterceptorFactory.java:71)     at org.jboss.as.jmx.ServerInterceptorFactory$Interceptor$1.run(ServerInterceptorFactory.java:66)     at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:328)     at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:285)     at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:254)     at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:225)     at org.jboss.as.jmx.ServerInterceptorFactory$Interceptor.handleEvent(ServerInterceptorFactory.java:66)     at org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1.run(ServerCommon.java:149)     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)     at java.lang.Thread.run(Thread.java:829)   I have attached the reproducer code for your reference.

      The QueueControl class does not allow to obtain CosumerCount or MessagesAdded to a Topic using the queueControl.getConsumerCount() and queueControl.getMessagesAdded() methods respectively.

              gaohoward Howard Gao
              rhn-support-tywickra Tyronne Wickramarathne
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: