[rules-users] BEST_FIT Null Pointer Exception

Geoffrey De Smet ge0ffrey.spam at gmail.com
Tue Nov 26 02:46:33 EST 2013


Can you copy-paste the whole stacktrace?

On 25-11-13 21:51, newbie wrote:
> I am currently using final 6.0 and I used
> <constructionHeuristicType>BEST_FIT</constructionHeuristicType> but after I
> have run it propmts java.lang.NullPointerException pointing to my
> PlanningVariableStrengComparator. Did I miss something? My planning variable
> comparator by the way is :
>
> public class MyVariableStrengthComparator implements Comparator<MyVariable>,
> Serializable {
>
>      public int compare(MyVariable a, MyVariable b) {
>          return new CompareToBuilder()
>                  .append(a.getId(), b.getId())
>                  .toComparison();
>      }
>
> }
>
>
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/BEST-FIT-Null-Pointer-Exception-tp4026935.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



More information about the rules-users mailing list