Note that there are some explanatory texts on larger screens.

plurals
  1. POJoda-Time compareTo NoSuchMethod
    primarykey
    data
    text
    <p>I'm using joda-time to keep track of several different types of dates (DateTime and DateMidnight) in a Drools file. As part of the when condition, I get the date of an object and then compare the dates of all other objects to make sure there's not a more recent object. The dates are in the same format (DateTime), but I consistently receive the following error when I try to send it a payload via Tomcat:</p> <pre><code>Caused by: java.lang.NoSuchMethodError: org.joda.time.DateTime.compareTo(Lorg/joda/time/DateTime;) at edu.measure.growth.Rule_assume_first_measurement_is_valid586933554.defaultConsequence(Rule_assume_first_measurement_is_valid586933554.java:7) at edu.measure.growth.Rule_assume_first_measurement_is_valid586933554DefaultConsequenceInvokerGenerated.evaluate(Unknown Source) at edu.measure.growth.Rule_assume_first_measurement_is_valid586933554DefaultConsequenceInvoker.evaluate(Unknown Source) </code></pre> <p>This is the rule that it is referencing in the error log:</p> <pre><code>rule "assume first measurement is valid" when // consider all measurements that have not been validated $m: Measurement($type: parameter, valid == false, $dt: date) // verify no measurements occur after target date not Measurement(parameter == $type, date&lt;$dt)) then modify($m) {setValid(true);} end </code></pre> <p>It seems to not want to compare using the &lt; operator. Is this a common error others have gotten? I haven't been able to find anything about how to fix it, so any help would be greatly appreciated!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload