Support Migration Notice: To update migrated JIRA cases click here to open a new case use www.vmware.com/go/sr | vFabric Hyperic 5.7.0 is Now Available

Hyperic HQ

Resin plugin: AttributeNotFoundException reported for several attributes when running command line discover

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Deferred
  • Affects Version/s: 4.3
  • Fix Version/s: None
  • Component/s: Plugins
  • Environment:
    HQ-server 4.3.0-EE-1443 running on CentOS 5.4
    HQ-agent 4.3.0-EE-1443 running on CentOS 5.4
     - Resin 3.1.10 running with HQ-agent
  • Case Links:
    none
  • Regression:
    No

Description

Resin plugin: AttributeNotFoundException reported for several attributes when running command line discover.

Affected Attributes:

  • RedployMode
  • StartupMode
  • KeepAliveMax
  • SelectKeepAliveCount

Command:
java -jar hq-product.jar -Dplugins.include=resin -m discover -Djmx.username=testRole -Djmx.password=testRole -Djmx.url=ptql:State.Name.sw=java,Args..eq=com.caucho.server.resin.Resin,Args..eq=-Dresin.home=/opt/s2/resin/resin-3.1.10/ -Dlog=debug

Expected Result:
No Errors or Exceptions reported when running discover operation

Actual Result:
AttributeNotFoundException reported

Steps to reproduce:
1. Connect via SSH to the machine running a hq-agent with Resin
2. Run the following plugin command to obtain metrics: java -jar hq-product.jar -Dplugins.include=resin -m discover with necessary parameters specific to Resin
3. Note the reported AttributeNotFoundExceptions

Work around:
None

Additional Notes:
See attached resin-discover.log for full command output

Activity

Hide
Frederic Calindas added a comment -

When restarting the hq-agent, the following is posted:

2010-05-18 18:45:39,529 ERROR [ScheduleThread] [ScheduleThread] Error getting measurement value: java.lang.RuntimeException: javax.management.AttributeNotFoundException: 'ThreadKeepaliveCount' is an unknown attribute in 'com.caucho.management.server.PortMXBean'
2010-05-18 18:45:39,529 ERROR [ScheduleThread] [ScheduleThread] Stack trace follows:
java.lang.RuntimeException: javax.management.AttributeNotFoundException: 'ThreadKeepaliveCount' is an unknown attribute in 'com.caucho.management.server.PortMXBean'
at com.caucho.jmx.IntrospectionMBean.getAttribute(IntrospectionMBean.java:138)
at com.caucho.jmx.MBeanWrapper.getAttribute(MBeanWrapper.java:146)
at com.caucho.jmx.AbstractMBeanServer.getAttribute(AbstractMBeanServer.java:599)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1426)
at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:90)
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1284)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1382)
at javax.management.remote.rmi.RMIConnectionImpl.getAttribute(RMIConnectionImpl.java:619)
at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
at sun.rmi.transport.Transport$1.run(Transport.java:177)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl_Stub.getAttribute(Unknown Source)
at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.getAttribute(Unknown Source)
at org.hyperic.hq.product.jmx.MxUtil.getValue(MxUtil.java:581)
at org.hyperic.hq.product.jmx.MxUtil.getValue(MxUtil.java:308)
at org.hyperic.hq.product.jmx.MxMeasurementPlugin.getValue(MxMeasurementPlugin.java:58)
at org.hyperic.hq.product.MeasurementPluginManager.getPluginValue(MeasurementPluginManager.java:176)
at org.hyperic.hq.product.MeasurementPluginManager.getValue(MeasurementPluginManager.java:274)
at org.hyperic.hq.measurement.agent.server.ScheduleThread.getValue(ScheduleThread.java:298)
at org.hyperic.hq.measurement.agent.server.ScheduleThread.collect(ScheduleThread.java:387)
at org.hyperic.hq.measurement.agent.server.ScheduleThread.collect(ScheduleThread.java:344)
at org.hyperic.hq.measurement.agent.server.ScheduleThread.collect(ScheduleThread.java:490)
at org.hyperic.hq.measurement.agent.server.ScheduleThread.run(ScheduleThread.java:512)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.management.AttributeNotFoundException: 'ThreadKeepaliveCount' is an unknown attribute in 'com.caucho.management.server.PortMXBean'
at com.caucho.jmx.IntrospectionMBean.getAttribute(IntrospectionMBean.java:127)
at com.caucho.jmx.MBeanWrapper.getAttribute(MBeanWrapper.java:146)
at com.caucho.jmx.AbstractMBeanServer.getAttribute(AbstractMBeanServer.java:599)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1426)
at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:90)
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1284)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1382)
at javax.management.remote.rmi.RMIConnectionImpl.getAttribute(RMIConnectionImpl.java:619)
at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
at sun.rmi.transport.Transport$1.run(Transport.java:177)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)

Show
Frederic Calindas added a comment - When restarting the hq-agent, the following is posted: 2010-05-18 18:45:39,529 ERROR [ScheduleThread] [ScheduleThread] Error getting measurement value: java.lang.RuntimeException: javax.management.AttributeNotFoundException: 'ThreadKeepaliveCount' is an unknown attribute in 'com.caucho.management.server.PortMXBean' 2010-05-18 18:45:39,529 ERROR [ScheduleThread] [ScheduleThread] Stack trace follows: java.lang.RuntimeException: javax.management.AttributeNotFoundException: 'ThreadKeepaliveCount' is an unknown attribute in 'com.caucho.management.server.PortMXBean' at com.caucho.jmx.IntrospectionMBean.getAttribute(IntrospectionMBean.java:138) at com.caucho.jmx.MBeanWrapper.getAttribute(MBeanWrapper.java:146) at com.caucho.jmx.AbstractMBeanServer.getAttribute(AbstractMBeanServer.java:599) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1426) at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:90) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1284) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1382) at javax.management.remote.rmi.RMIConnectionImpl.getAttribute(RMIConnectionImpl.java:619) at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322) at sun.rmi.transport.Transport$1.run(Transport.java:177) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:173) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source) at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source) at sun.rmi.server.UnicastRef.invoke(Unknown Source) at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source) at javax.management.remote.rmi.RMIConnectionImpl_Stub.getAttribute(Unknown Source) at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.getAttribute(Unknown Source) at org.hyperic.hq.product.jmx.MxUtil.getValue(MxUtil.java:581) at org.hyperic.hq.product.jmx.MxUtil.getValue(MxUtil.java:308) at org.hyperic.hq.product.jmx.MxMeasurementPlugin.getValue(MxMeasurementPlugin.java:58) at org.hyperic.hq.product.MeasurementPluginManager.getPluginValue(MeasurementPluginManager.java:176) at org.hyperic.hq.product.MeasurementPluginManager.getValue(MeasurementPluginManager.java:274) at org.hyperic.hq.measurement.agent.server.ScheduleThread.getValue(ScheduleThread.java:298) at org.hyperic.hq.measurement.agent.server.ScheduleThread.collect(ScheduleThread.java:387) at org.hyperic.hq.measurement.agent.server.ScheduleThread.collect(ScheduleThread.java:344) at org.hyperic.hq.measurement.agent.server.ScheduleThread.collect(ScheduleThread.java:490) at org.hyperic.hq.measurement.agent.server.ScheduleThread.run(ScheduleThread.java:512) at java.lang.Thread.run(Unknown Source) Caused by: javax.management.AttributeNotFoundException: 'ThreadKeepaliveCount' is an unknown attribute in 'com.caucho.management.server.PortMXBean' at com.caucho.jmx.IntrospectionMBean.getAttribute(IntrospectionMBean.java:127) at com.caucho.jmx.MBeanWrapper.getAttribute(MBeanWrapper.java:146) at com.caucho.jmx.AbstractMBeanServer.getAttribute(AbstractMBeanServer.java:599) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1426) at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:90) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1284) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1382) at javax.management.remote.rmi.RMIConnectionImpl.getAttribute(RMIConnectionImpl.java:619) at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322) at sun.rmi.transport.Transport$1.run(Transport.java:177) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:173) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636)
Hide
Yoav Epelman added a comment -

Bulk change to new components

Show
Yoav Epelman added a comment - Bulk change to new components
Hide
Idan Hod added a comment -

As part of our continuous effort to improve product quality, The Hyperic product team has decided to implement a "zero bug policy" methodology.

Following this methodology, only defects that are planned to be handled in the near future will remain open. Any other defect will be deferred, with the option to be reevaluated if the need arises, or if changes to the Hyperic road-map make such defect a candidate for a fix.

We believe this new process will help create clarity and focus in the Hyperic road-map and ultimately benefit our customer base.

This bug has been deferred as part of the new policy.

We appreciate your cooperation and continues contribution to the improvement of Hyperic.

Show
Idan Hod added a comment - As part of our continuous effort to improve product quality, The Hyperic product team has decided to implement a "zero bug policy" methodology. Following this methodology, only defects that are planned to be handled in the near future will remain open. Any other defect will be deferred, with the option to be reevaluated if the need arises, or if changes to the Hyperic road-map make such defect a candidate for a fix. We believe this new process will help create clarity and focus in the Hyperic road-map and ultimately benefit our customer base. This bug has been deferred as part of the new policy. We appreciate your cooperation and continues contribution to the improvement of Hyperic.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:
    Last comment:
    42 weeks, 1 day ago