Hi Mailinglist,

as discussed with tirelli in irc chat yesterday, I am sending my code:

I modified the golfer example with an other riddle. I wrote all given rules and 
when I run the code I get an 

Exception in thread "main" org.drools.RuntimeDroolsException:
 Conversion to long not supported for type: class 
org.drools.examples.BilboAndTheDwarfs$DwarfShadowProxy
    at org.drools.spi.PatternExtractor.getLongValue(PatternExtractor.java:125)
    at 
org.drools.rule.VariableRestriction$LongVariableContextEntry.updateFromTuple(VariableRestriction.java:260)
    at 
org.drools.common.DefaultBetaConstraints.updateFromTuple(DefaultBetaConstraints.java:139)
    [...]

I put my code in a tgz file which contains the following files:

BilboAndTheDwarfs.java     --> my java class (based on golfer example)
BilboAndTheDwarfs.drl    -> my rules
 outputWithException.txt  -> my output on the console
remarks.txt -> some remarks to the output
riddle.txt -> the riddle (automaticly translated)
solution.txt    -> the solution of the riddle

I hope you can help me. Thank you in advance

Oliver (aka Hightower, gnumpf2006)



        __________________________________  Ihr erstes Baby? Holen Sie sich 
Tipps von anderen Eltern.  www.yahoo.de/clever

Attachment: drools-problem.tgz
Description: GNU Zip compressed data

_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to