<p>Drools, and hence I assume Planner, *should* handle boolean &quot;is&quot; accessor. Can you provide more details?</p>
<p>sent on the move</p>
<p>On 30 Jan 2012 07:05, &quot;aitchnyu&quot; &lt;<a href="mailto:jesvinj@technovia.co.in">jesvinj@technovia.co.in</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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 &#39;l&#39; in the<br>
getter).<br>
<br>
The other mismatch was isFixed and setFixed. *Drools hates the &#39;is&#39;* because<br>
(as I guessed) of it&#39;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 &#39;is&#39;. 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&#39;s wrong.<br>
&gt; It&#39;s fixed in 5.4.0.Beta1.<br>
&gt;<br>
&gt; It looks like you&#39;re running into:<br>
&gt;    <a 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;      jesvin@Jesvin-Technovia:~/dev/drools/sudoku$ java App<br>
&gt;&gt;      Exception in thread &quot;main&quot; java.lang.NullPointerException<br>
&gt;&gt;              at<br>
&gt;&gt; org.drools.planner.core.domain.solution.SolutionDescriptor.processPropertyAnnotations(SolutionDescriptor.java:69)<br>
&gt;&gt;              at<br>
&gt;&gt; org.drools.planner.core.domain.solution.SolutionDescriptor.&lt;init&gt;(SolutionDescriptor.java:61)<br>
&gt;&gt;              at<br>
&gt;&gt; org.drools.planner.config.solver.SolverConfig.buildSolutionDescriptor(SolverConfig.java:197)<br>
&gt;&gt;              at<br>
&gt;&gt; org.drools.planner.config.solver.SolverConfig.buildSolver(SolverConfig.java:167)<br>
&gt;&gt;              at<br>
&gt;&gt; org.drools.planner.config.XmlSolverConfigurer.buildSolver(XmlSolverConfigurer.java:103)<br>
&gt;&gt;              at App.createSolver(App.java:62)<br>
&gt;&gt;              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;      private static Solver createSolver(){<br>
&gt;&gt;      XmlSolverConfigurer configurer = new XmlSolverConfigurer();<br>
&gt;&gt;      File file = new File(&quot;solver.xml&quot;);<br>
&gt;&gt;      FileInputStream fin = null;<br>
&gt;&gt;      try{<br>
&gt;&gt;          fin = new FileInputStream(file);<br>
&gt;&gt;      }<br>
&gt;&gt;      catch(IOException e){<br>
&gt;&gt;           System.out.println(&quot;Unable to read drl&quot;);<br>
&gt;&gt;      }<br>
&gt;&gt;      configurer.configure(fin);<br>
&gt;&gt;<br>
&gt;&gt; //configurer.configure(&quot;/home/jesvin/dev/drools/sudoku/solver.xml&quot;);<br>
&gt;&gt;          return configurer.buildSolver();<br>
&gt;&gt;      }<br>
&gt;&gt;<br>
&gt;&gt; The content of the XML:<br>
&gt;&gt;<br>
&gt;&gt;      &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>
&gt;&gt;      &lt;solver&gt;<br>
&gt;&gt;        &lt;environmentMode&gt;DEBUG&lt;/environmentMode&gt;<br>
&gt;&gt;<br>
&gt;&gt;        &lt;solutionClass&gt;domain.Sudoku&lt;/solutionClass&gt;<br>
&gt;&gt;        &lt;planningEntityClass&gt;domain.Digit&lt;/planningEntityClass&gt;<br>
&gt;&gt;        &lt;scoreDrl&gt;score.drl&lt;/scoreDrl&gt;<br>
&gt;&gt;        &lt;scoreDefinition&gt;<br>
&gt;&gt;          &lt;scoreDefinitionType&gt;SIMPLE&lt;/scoreDefinitionType&gt;<br>
&gt;&gt;        &lt;/scoreDefinition&gt;<br>
&gt;&gt;<br>
&gt;&gt;        &lt;termination&gt;<br>
&gt;&gt;          &lt;scoreAttained&gt;0&lt;/scoreAttained&gt;<br>
&gt;&gt;        &lt;/termination&gt;<br>
&gt;&gt;<br>
&gt;&gt;        &lt;constructionHeuristic&gt;<br>
&gt;&gt;          &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;          &lt;/selector&gt;<br>
&gt;&gt;          &lt;acceptor&gt;<br>
&gt;&gt;            &lt;completeSolutionTabuSize&gt;1000&lt;/completeSolutionTabuSize&gt;<br>
&gt;&gt;          &lt;/acceptor&gt;<br>
&gt;&gt;          &lt;forager&gt;<br>
&gt;&gt;<br>
&gt;&gt;          &lt;/forager&gt;<br>
&gt;&gt;        &lt;/localSearch&gt;<br>
&gt;&gt;      &lt;/solver&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; View this message in context:<br>
&gt;&gt; <a 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; rules-users@.jboss<br>
&gt;&gt; <a 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; rules-users@.jboss<br>
&gt; <a 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 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 href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></p>