[rules-users] Date problem

jack wu jackxwu at yahoo.com
Wed Jan 23 17:33:59 EST 2008


if i have several levels of java beans, the Date is not working. example:

        m:Message( first.second.date > "01-jan-2007" )

receive exceptions such as:
Caused by: java.lang.ClassCastException: java.lang.String
    at java.util.Date.compareTo(Date.java:112)
    at org.mvel.math.IEEEFloatingPointMath.doOperationNonNumeric(IEEEFloatingPointMath.java:111)
    at org.mvel.math.IEEEFloatingPointMath._doOperations(IEEEFloatingPointMath.java:90)
    at org.mvel.math.IEEEFloatingPointMath.doOperation(IEEEFloatingPointMath.java:41)
    at org.mvel.util.ParseTools.doOperations(ParseTools.java:798)
    at org.mvel.ast.BinaryOperation.getReducedValueAccelerated(BinaryOperation.java:20)
    at org.mvel.MVELRuntime.execute(MVELRuntime.java:88)
    at org.mvel.CompiledExpression.getValue(CompiledExpression.java:108)
    at org.mvel.MVEL.executeExpression(MVEL.java:230)
    at org.drools.base.mvel.MVELPredicateExpression.evaluate(MVELPredicateExpression.java:36)
    at org.drools.rule.PredicateConstraint.isAllowed(PredicateConstraint.java:210)


       
---------------------------------
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080123/2631692d/attachment.html 


More information about the rules-users mailing list