Bug 976291
| Summary: | [as7] WebConnectorComponent throws ClassCastException when collecting _maxConnections metric on RHQ server | ||
|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | Thomas Segismont <tsegismo> |
| Component: | Plugins | Assignee: | Thomas Segismont <tsegismo> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 4.7 | CC: | hrupp |
| Target Milestone: | --- | ||
| Target Release: | RHQ 4.9 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-03-26 08:31:54 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
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. |
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}