Bug 1094397 - NoSuchMethodError at runtime while comparing org.joda.time.DateTime instances
Summary: NoSuchMethodError at runtime while comparing org.joda.time.DateTime instances
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: BRE
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ER3
: 6.0.2
Assignee: Mario Fusco
QA Contact: Marek Winkler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-05 15:09 UTC by Mario Fusco
Modified: 2014-08-06 19:54 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 19:54:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker DROOLS-469 0 Major Resolved NoSuchMethodError at runtime while comparing org.joda.time.DateTime instances 2018-06-21 07:14:07 UTC

Description Mario Fusco 2014-05-05 15:09:36 UTC
Given the following rule:

—
import org.joda.time.DateTime;

rule "in the past"
when
exists DateTime( this < new DateTime() )
then
System.out.println("in the past");
end
—

I obtain this exception at runtime while comparing a large number of DateTimes:

// java.lang.NoSuchMethodError: org.joda.time.DateTime.compareTo(Lorg/joda/time/DateTime;)I
// at ConditionEvaluatorc959ae5f82e8456f9e4f2d8b7e07b19d.evaluate(Unknown Source)
// at org.drools.core.rule.constraint.MvelConstraint.evaluate(MvelConstraint.java:217)
// at org.drools.core.rule.constraint.MvelConstraint.isAllowed(MvelConstraint.java:174)
// at org.drools.core.phreak.PhreakFromNode.checkConstraintsAndPropagate(PhreakFromNode.java:298)
// at org.drools.core.phreak.PhreakFromNode.doLeftInserts(PhreakFromNode.java:101)
// at org.drools.core.phreak.PhreakFromNode.doNode(PhreakFromNode.java:49)
// at org.drools.core.phreak.RuleNetworkEvaluator.innerEval(RuleNetworkEvaluator.java:348)
// at org.drools.core.phreak.RuleNetworkEvaluator.doRiaNode(RuleNetworkEvaluator.java:604)
// at org.drools.core.phreak.RuleNetworkEvaluator.evalBetaNode(RuleNetworkEvaluator.java:528)
// at org.drools.core.phreak.RuleNetworkEvaluator.innerEval(RuleNetworkEvaluator.java:334)

Comment 1 Mario Fusco 2014-05-05 15:10:14 UTC
Fixed by https://github.com/droolsjbpm/drools/commit/4a5af55b8

Comment 4 Mario Fusco 2014-05-06 15:57:56 UTC
Cherry-picked to 6.0.x branch with https://github.com/droolsjbpm/drools/commit/9f74dbe01

Comment 5 Marek Winkler 2014-06-06 13:51:16 UTC
Verified on BRMS 6.0.2 ER3.


Note You need to log in before you can comment on or make changes to this bug.