<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Yes, this should work as the javabean spec allows it and both Drools
    Expert and Planner support it:<br>
    <br>
    &nbsp; public boolean isFixed() {...}<br>
    <br>
    but IIRC a wrapper Boolean shouldn't:<br>
    <br>
    &nbsp;&nbsp;
    public Boolean isFixed() {...}<br>
    <br>
    <br>
    Op 30-01-12 08:33, Michael Anstis schreef:
    <blockquote
cite="mid:CAAG9P0tkaFfcWhDA4E8A1VZomMR+UoTyJL8d25ZyPqAiRSV7Fw@mail.gmail.com"
      type="cite">
      <p>Drools, and hence I assume Planner, *should* handle boolean
        "is" accessor. Can you provide more details?</p>
      <p>sent on the move</p>
      <p>On 30 Jan 2012 07:05, "aitchnyu" &lt;<a moz-do-not-send="true"
          href="mailto:jesvinj@technovia.co.in">jesvinj@technovia.co.in</a>&gt;
        wrote:<br type="attribution">
      </p>
      <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex;
        border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
        I have news for you!<br>
        <br>
        I had an obvious and (bad surprise) buggy mismatch.<br>
        <br>
        The obvious mismatch was: setBlockList and getBlocklist (small
        'l' in the<br>
        getter).<br>
        <br>
        The other mismatch was isFixed and setFixed. *Drools hates the
        'is'* because<br>
        (as I guessed) of it's introspector mechanism. It worked only
        when I renamed<br>
        it to getFixed. Your bugfix would have harmed instead of helped,
        as it would<br>
        have let that error pass silently.<br>
        <br>
        Please open an issue to address this.<br>
        <br>
        Wish I wasnt religious to name boolean getters with 'is'. I will
        notify of<br>
        further problems once the problem gets back on track.<br>
        <br>
        <br>
        ge0ffrey wrote<br>
        &gt;<br>
        &gt; Hi,<br>
        &gt;<br>
        &gt; The NullPointerException should definitely not happen, you
        should get a<br>
        &gt; decent error message describing what's wrong.<br>
        &gt; It's fixed in 5.4.0.Beta1.<br>
        &gt;<br>
        &gt; It looks like you're running into:<br>
        &gt; &nbsp; &nbsp;<a moz-do-not-send="true"
          href="https://issues.jboss.org/browse/JBRULES-3247"
          target="_blank">https://issues.jboss.org/browse/JBRULES-3247</a><br>
        &gt; Upgrade to planner 5.4.0.Beta1<br>
        &gt; or add a getter for that setter.<br>
        &gt;<br>
        &gt; Op 28-01-12 06:17, aitchnyu schreef:<br>
        &gt;&gt; I tried to create a solver from XML configuration. But
        the entire process<br>
        &gt;&gt; returns a *cryptic error message *that makes no sense.<br>
        &gt;&gt;<br>
        &gt;&gt; How do I fix this? And how can I make sense of this to
        actually solve<br>
        &gt;&gt; similar problems like this?<br>
        &gt;&gt;<br>
        &gt;&gt; Please excuse me if I made any bad karma. This is my
        first post on this<br>
        &gt;&gt; (and<br>
        &gt;&gt; any) mailing list.<br>
        &gt;&gt;<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp;jesvin@Jesvin-Technovia:~/dev/drools/sudoku$ java
        App<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp;Exception in thread "main"
        java.lang.NullPointerException<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
        &gt;&gt;
org.drools.planner.core.domain.solution.SolutionDescriptor.processPropertyAnnotations(SolutionDescriptor.java:69)<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
        &gt;&gt;
org.drools.planner.core.domain.solution.SolutionDescriptor.&lt;init&gt;(SolutionDescriptor.java:61)<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
        &gt;&gt;
org.drools.planner.config.solver.SolverConfig.buildSolutionDescriptor(SolverConfig.java:197)<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
        &gt;&gt;
org.drools.planner.config.solver.SolverConfig.buildSolver(SolverConfig.java:167)<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at<br>
        &gt;&gt;
org.drools.planner.config.XmlSolverConfigurer.buildSolver(XmlSolverConfigurer.java:103)<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at App.createSolver(App.java:62)<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at App.main(App.java:40)<br>
        &gt;&gt;<br>
        &gt;&gt; The function that throws it is listed here. The line is
        of course `return<br>
        &gt;&gt; configurer.buildSolver();`.<br>
        &gt;&gt;<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp;private static Solver createSolver(){<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp;XmlSolverConfigurer configurer = new
        XmlSolverConfigurer();<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp;File file = new File("solver.xml");<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp;FileInputStream fin = null;<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp;try{<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fin = new FileInputStream(file);<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp;}<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp;catch(IOException e){<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println("Unable to read drl");<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp;}<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp;configurer.configure(fin);<br>
        &gt;&gt;<br>
        &gt;&gt;
        //configurer.configure("/home/jesvin/dev/drools/sudoku/solver.xml");<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return configurer.buildSolver();<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp;}<br>
        &gt;&gt;<br>
        &gt;&gt; The content of the XML:<br>
        &gt;&gt;<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp;&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp;&lt;solver&gt;<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp;
        &nbsp;&lt;environmentMode&gt;DEBUG&lt;/environmentMode&gt;<br>
        &gt;&gt;<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp;
        &nbsp;&lt;solutionClass&gt;domain.Sudoku&lt;/solutionClass&gt;<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp;
        &nbsp;&lt;planningEntityClass&gt;domain.Digit&lt;/planningEntityClass&gt;<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;scoreDrl&gt;score.drl&lt;/scoreDrl&gt;<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;scoreDefinition&gt;<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp;&lt;scoreDefinitionType&gt;SIMPLE&lt;/scoreDefinitionType&gt;<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/scoreDefinition&gt;<br>
        &gt;&gt;<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;termination&gt;<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;scoreAttained&gt;0&lt;/scoreAttained&gt;<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/termination&gt;<br>
        &gt;&gt;<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;constructionHeuristic&gt;<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;&lt;constructionHeuristicType&gt;FIRST_FIT&lt;/constructionHeuristicType&gt;<br>
        &gt;&gt;<br>
        &gt;&gt;<br>
        &gt;&gt;
&lt;moveFactoryClass&gt;solution.RowChangeMoveFactory&lt;/moveFactoryClass&gt;<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/selector&gt;<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;acceptor&gt;<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp;&lt;completeSolutionTabuSize&gt;1000&lt;/completeSolutionTabuSize&gt;<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/acceptor&gt;<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;forager&gt;<br>
        &gt;&gt;<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/forager&gt;<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/localSearch&gt;<br>
        &gt;&gt; &nbsp; &nbsp; &nbsp;&lt;/solver&gt;<br>
        &gt;&gt;<br>
        &gt;&gt; --<br>
        &gt;&gt; View this message in context:<br>
        &gt;&gt; <a moz-do-not-send="true"
href="http://drools.46999.n3.nabble.com/Planner-has-trouble-creating-a-configurer-how-to-debug-tp3695307p3695307.html"
          target="_blank">http://drools.46999.n3.nabble.com/Planner-has-trouble-creating-a-configurer-how-to-debug-tp3695307p3695307.html</a><br>
        &gt;&gt; Sent from the Drools: User forum mailing list archive
        at Nabble.com.<br>
        &gt;&gt; _______________________________________________<br>
        &gt;&gt; rules-users mailing list<br>
        &gt;&gt; <a class="moz-txt-link-abbreviated" href="mailto:rules-users@.jboss">rules-users@.jboss</a><br>
        &gt;&gt; <a moz-do-not-send="true"
          href="https://lists.jboss.org/mailman/listinfo/rules-users"
          target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
        &gt;&gt;<br>
        &gt;<br>
        &gt; --<br>
        &gt; With kind regards,<br>
        &gt; Geoffrey De Smet<br>
        &gt;<br>
        &gt;<br>
        &gt; _______________________________________________<br>
        &gt; rules-users mailing list<br>
        &gt; <a class="moz-txt-link-abbreviated" href="mailto:rules-users@.jboss">rules-users@.jboss</a><br>
        &gt; <a moz-do-not-send="true"
          href="https://lists.jboss.org/mailman/listinfo/rules-users"
          target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
        &gt;<br>
        <br>
        <br>
        --<br>
        View this message in context: <a moz-do-not-send="true"
href="http://drools.46999.n3.nabble.com/Planner-has-trouble-creating-a-configurer-how-to-debug-tp3695307p3699291.html"
          target="_blank">http://drools.46999.n3.nabble.com/Planner-has-trouble-creating-a-configurer-how-to-debug-tp3695307p3699291.html</a><br>
        Sent from the Drools: User forum mailing list archive at
        Nabble.com.<br>
        _______________________________________________<br>
        rules-users mailing list<br>
        <a moz-do-not-send="true"
          href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
        <a moz-do-not-send="true"
          href="https://lists.jboss.org/mailman/listinfo/rules-users"
          target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
      </blockquote>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
With kind regards,
Geoffrey De Smet</pre>
  </body>
</html>