Description of problem: WebConnectorComponent throws ClassCastException when collecting _maxConnections metric on RHQ server Version-Release number of selected component (if applicable): 4.7 How reproducible: Always Steps to Reproduce: 1.Import RHQ server in inventory 2.Change the collection interval of "Max connections" to 30 seconds (to see the error quickly) 3.Open the agent log file Actual results: 2013-06-19 12:19:28,067 WARN [MeasurementManager.collector-1] (rhq.core.pc.measurement.MeasurementCollectorRunner)- Failure to collect measurement data for Resource[id=11604, uuid=c6362973-215d-43fd-b400-a753eca5927e, type={JBossAS7}Connector, key=subsystem=web,connector=https, name=https, parent=web] - cause: java.lang.ClassCastException:java.util.LinkedHashMap cannot be cast to java.lang.Integer Expected results: No warning message, metric collected Additional info: The read attribute operation returns a Map with 1 entry: EXPRESSION_VALUE->${rhq.server.startup.web.max-connections:200}
Fixed in master commit 2b58edfae71b976970e24f1b9a05f258348a1aa1 Author: Thomas Segismont <tsegismo> Date: Mon Jun 24 10:38:14 2013 +0200 Introduced a new ResolveExpression operation class Introduced new prefix for all AS7 metrics: "_expr:" Updated BaseComponent#getValues to support new metric name prefix Updated max-connections config property for expression support
Bulk closing now that 4.10 is out. If you think an issue is not resolved, please open a new BZ and link to the existing one.