Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Argument must be an instance of Identifier mean....?

when I use follow code :
IQueryableAttribute attribute_001= findAttribute(projectArea, auditableClient, "com.ibm.team.workitem.workItemType.requirement.riskAssessment", null);

			AttributeExpression attrExpression_001= new AttributeExpression(attribute_001, AttributeOperation.CONTAINS,"");

List list_workItem = queryClient.getGroupCounts(projectArea, attrExpression_001, "hello", null);
logger.info(list_workItem.size());

case the follow exception :
Exception in thread "main" java.lang.IllegalArgumentException: Argument must be an instance of Identifier
at com.ibm.team.workitem.common.internal.model.EnumerationAttributeType.toString(EnumerationAttributeType.java:81)
at com.ibm.team.workitem.common.internal.expression.AttributeValueFactory$ConstantValue.saveState(AttributeValueFactory.java:58)
at com.ibm.team.workitem.common.expression.AttributeExpression.saveValueProxy(AttributeExpression.java:165)
at com.ibm.team.workitem.common.expression.AttributeExpression.saveState(AttributeExpression.java:155)
at com.ibm.team.workitem.common.internal.expression.XMLExpressionSerializer.serialize(XMLExpressionSerializer.java:132)
at com.ibm.team.workitem.common.internal.expression.XMLExpressionSerializer.serialize(XMLExpressionSerializer.java:57)
at com.ibm.team.workitem.common.internal.query.impl.QueryDescriptorCustomImpl.setExpression(QueryDescriptorCustomImpl.java:40)
at com.ibm.team.workitem.common.internal.query.QueryCommon.createQuery(QueryCommon.java:258)
at com.ibm.team.workitem.common.internal.query.QueryCommon.getGroupCounts(QueryCommon.java:239)
at com.horizon.rqm.FindWorkItemsByAttributes.main(FindWorkItemsByAttributes.java:103)


can someone tell the reason ? what should I do?

1 vote


Be the first one to answer this question!

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Mar 02 '11, 4:38 a.m.

Question was seen: 4,524 times

Last updated: Oct 24 '14, 10:55 a.m.

Confirmation Cancel Confirm