[
https://issues.jboss.org/browse/JBRULES-3072?page=com.atlassian.jira.plug...
]
Geoffrey De Smet updated JBRULES-3072:
--------------------------------------
Fix Version/s: 5.3.0.CR1
(was: 5.3.0.Beta1)
CCE due to non-boolean constraint expression
--------------------------------------------
Key: JBRULES-3072
URL:
https://issues.jboss.org/browse/JBRULES-3072
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-compiler (expert)
Affects Versions: 5.2.0.CR1
Reporter: Wolfgang Laun
Assignee: Mark Proctor
Fix For: 5.3.0.CR1
(Possibly related to JBRULES-3011)
class Person { String name; }
when
$p1: Person( name + name )
This is compiled, and execution fails with:
Caused by: org.drools.RuntimeDroolsException: Exception executing predicate name + name
at org.drools.rule.PredicateConstraint.isAllowed(PredicateConstraint.java:298)
at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:130)
at
org.drools.reteoo.SingleObjectSinkAdapter.propagateAssertObject(SingleObjectSinkAdapter.java:59)
at org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:193)
at org.drools.reteoo.EntryPointNode.assertObject(EntryPointNode.java:143)
at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:332)
at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:293)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:905)
at org.drools.base.DefaultKnowledgeHelper.insert(DefaultKnowledgeHelper.java:119)
at org.drools.base.DefaultKnowledgeHelper.insert(DefaultKnowledgeHelper.java:113)
at freeform.Rule_ins_0.defaultConsequence(Rule_ins_0.java:9)
at
freeform.Rule_ins_0DefaultConsequenceInvoker.evaluate(Rule_ins_0DefaultConsequenceInvoker.java:23)
at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:905)
... 7 more
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to
java.lang.Boolean
at
org.drools.base.mvel.MVELPredicateExpression.evaluate(MVELPredicateExpression.java:101)
at org.drools.rule.PredicateConstraint.isAllowed(PredicateConstraint.java:291)
... 19 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira