This service will be undergoing maintenance at 00:00 UTC, 2016-08-01. It is expected to last about 1 hours

Bug 861987

Summary: Error 'could not locate named parameter' when recalculating a DynaGroup query
Product: [Other] RHQ Project Reporter: Heiko W. Rupp <hrupp>
Component: Core ServerAssignee: RHQ Project Maintainer <rhq-maint>
Status: NEW --- QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.5CC: hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:

Description Heiko W. Rupp 2012-10-01 10:02:02 EDT
I have a DynaGroup expression like this:

groupby resource.resourceConfiguration[group]
resource.type.plugin.contains = JBossAS7
resource.type.name.contains = Managed Server

recalculation fails with

Caused by: java.lang.IllegalArgumentException: org.hibernate.QueryParameterException: could not locate named parameter [arg4]
	at org.hibernate.ejb.QueryImpl.setParameter(QueryImpl.java:176)
	at org.rhq.enterprise.server.resource.group.definition.framework.ExpressionEvaluator.getSingleResultList(ExpressionEvaluator.java:1027)
	at org.rhq.enterprise.server.resource.group.definition.framework.ExpressionEvaluator.access$300(ExpressionEvaluator.java:48)
	at org.rhq.enterprise.server.resource.group.definition.framework.ExpressionEvaluator$MultipleQueryIterator.next(ExpressionEvaluator.java:970)
	at org.rhq.enterprise.server.resource.group.definition.framework.ExpressionEvaluator$MultipleQueryIterator.next(ExpressionEvaluator.java:887)
	at org.rhq.enterprise.server.resource.group.definition.GroupDefinitionManagerBean.calculateGroupMembership(GroupDefinitionManagerBean.java:294)