Toshiya Kobayashi created DROOLS-740:
----------------------------------------
Summary: NoSuchMethodError at runtime while evaluating String and Long
Key: DROOLS-740
URL:
https://issues.jboss.org/browse/DROOLS-740
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 6.2.0.Final
Reporter: Toshiya Kobayashi
Assignee: Mario Fusco
When you write a LHS like this,
{noformat}
Person( name == "Elizabeth" + new Long(2L) )
{noformat}
you will face NoSuchMethodError after 20 evaluation.
{noformat}
testJittedConstraintStringAndLong(org.drools.compiler.integrationtests.Misc2Test) Time
elapsed: 1.216 sec <<< ERROR!
java.lang.NoSuchMethodError:
java.lang.StringBuilder.append(Ljava/lang/Long;)Ljava/lang/StringBuilder;
at ConditionEvaluator80a8832efb1646d488df2cde72963f02.evaluate(Unknown Source)
at org.drools.core.rule.constraint.MvelConstraint.evaluate(MvelConstraint.java:230)
at org.drools.core.rule.constraint.MvelConstraint.isAllowed(MvelConstraint.java:187)
at org.drools.core.reteoo.AlphaNode.assertObject(AlphaNode.java:141)
at
org.drools.core.reteoo.SingleObjectSinkAdapter.propagateAssertObject(SingleObjectSinkAdapter.java:60)
at org.drools.core.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:294)
at org.drools.core.reteoo.EntryPointNode.assertObject(EntryPointNode.java:255)
at org.drools.core.common.NamedEntryPoint.insert(NamedEntryPoint.java:277)
at org.drools.core.common.NamedEntryPoint.insert(NamedEntryPoint.java:237)
at
org.drools.core.impl.StatefulKnowledgeSessionImpl.insert(StatefulKnowledgeSessionImpl.java:1495)
at
org.drools.core.impl.StatefulKnowledgeSessionImpl.insert(StatefulKnowledgeSessionImpl.java:1450)
at
org.drools.compiler.integrationtests.Misc2Test.testJittedConstraintStringAndLong(Misc2Test.java:7253)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)