Skip to content

Instantly share code, notes, and snippets.

@ge0ffrey
Created January 22, 2018 14:55
Show Gist options
  • Save ge0ffrey/68768c065cd27be34b0df2ab293a4d9e to your computer and use it in GitHub Desktop.
Save ge0ffrey/68768c065cd27be34b0df2ab293a4d9e to your computer and use it in GitHub Desktop.
Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: There are errors in a score DRL:
Error Messages:
Message [id=1, kieBase=defaultKieBase, level=ERROR, path=org/optaplanner/examples/cheaptime/solver/cheapTimeScoreRules.drl, line=-1, column=0
text=Unable to Analyse Expression period > $lastActivePeriod:
[Error: Comparison operation requires compatible types. Found int and interface java.lang.Comparable]
[Near : {... period > $lastActivePeriod ....}]
^]
This error message doesn't distingish between the 2 sides (left and right, input and output, up and down):
[Error: Comparison operation requires compatible types. Found int and interface java.lang.Comparable]
Should be:
[Error: Comparison operation requires compatible types. Expected int but found interface java.lang.Comparable]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment