Bug 536393 (RHQ-747)
Summary: | ClassCastException when defining GroupDefinition | ||
---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Van Halbert <vhalbert> |
Component: | Configuration | Assignee: | Joseph Marques <jmarques> |
Status: | CLOSED NEXTRELEASE | QA Contact: | Jeff Weiss <jweiss> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 1.1pre | CC: | dajohnso |
Target Milestone: | --- | Keywords: | SubBug |
Target Release: | --- | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://jira.rhq-project.org/browse/RHQ-747 | ||
Whiteboard: | |||
Fixed In Version: | 1.1 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: |
Windows Server
|
|
Last Closed: | Type: | --- | |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 536002 |
Description
Van Halbert
2008-08-21 15:10:00 UTC
I don't know if this is it but "Definiing Plugin = MetaMatrixPlugin" doesnt look right, try "Defining Plugin = MetaMatrixPlugin" van, i notice that the expression builder created an expression of "resource.id.startsWith = MetaMatrix System" however, resource.id as an integer field, and you're trying to compare it to a non-integer value of "MetaMatrix System". you should notice that when you choose "Resource" as the expression type, that the defining plugin and resource type are grayed out. that's because they aren't relevant for that particular expression type. id is an integer type and so only the '=' operation is valid. startswith, endswith, and contains are string methods that will only match on string expressions. i'm accepting this, but only as a way to track the need to display a better error message instead of blowing up with a stack trace. rev1303 - show a much more specific and relevant error when fields are compared to values of incompatible type, or when string functions are used on non-string fields; rev1385, i tried the expression: resource.id.startsWith = MetaMatrix System and when i clicked "Calculate Groups", i got an errorblock "Probable syntax error: this is likely due to comparing an integer property of resource (such as id) to a non-numeric, or using a string function (startswith, endswith, or contains) on an integer property" which is more than sufficient to tell the user what they did wrong. This bug was previously known as http://jira.rhq-project.org/browse/RHQ-747 |