<p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;background-color:white;background-repeat:initial initial">The entryPoint and obs aren&#39;t null. I&#39;m sorry, where do you see the
error? </span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;background-color:white;background-repeat:initial initial"><br></span></p><p class="MsoNormal">
<span lang="EN-US" style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;background-color:white;background-repeat:initial initial">Carolina</span></p><br><div class="gmail_quote">2012/7/24 Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com" target="_blank">wolfgang.laun@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Well, then it&#39;s a bug in your code. Do we all agree on this now?<br>
<br>
-W<br>
<div class="im"><br>
<br>
On 24/07/2012, Carolina Pellecchia &lt;<a href="mailto:carolina.pellecchia@gmail.com">carolina.pellecchia@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;If there is an insert() call in<br>
&gt;&gt;&gt;org.tass.utils.ExpertSystemManager.java in line 156 then *this* is<br>
&gt;&gt;&gt;where the insert occurs, not the insert() in the rule.<br>
&gt;<br>
&gt; org.tass.utils.ExpertSystemManager.java is our class and the source code is<br>
&gt; this:<br>
&gt;<br>
</div>&gt; 153.         *public* *void* insertObservation(String entryPoint,<br>
&gt; Observation obs) {<br>
&gt;<br>
&gt;<br>
&gt; 154.                 *try* {<br>
&gt;<br>
&gt; 155.                     *if*(entryPoints.containsKey(entryPoint)) {<br>
<div class="im">&gt;<br>
&gt; 156.                         entryPoints.get(entryPoint).insert(obs);<br>
&gt;<br>
&gt; 157.<br>
&gt;<br>
&gt; 158.                         ksession.fireAllRules();<br>
&gt;<br>
&gt; 159.                     }<br>
&gt;<br>
&gt; 160.                 }<br>
&gt;<br>
</div>&gt; 161.                 *catch* (Exception e) {<br>
<div class="HOEnZb"><div class="h5">&gt;<br>
&gt; 162.                     logger.error(e, e);<br>
&gt;<br>
&gt; 163.                 }<br>
&gt;<br>
&gt; 164.             }<br>
&gt;<br>
&gt;&gt;&gt;Where is org.tass.utils coming from?<br>
&gt;<br>
&gt; Where is org.tass.utils coming from? it is our class.<br>
&gt;<br>
&gt;<br>
&gt;&gt;&gt;It&#39;s still a mystery to me how it&#39;s possible to have a stack trace<br>
&gt;&gt;&gt;element from NamedEntryPoint.java line 48 - there&#39;s no code in this<br>
&gt;&gt;&gt;line.<br>
&gt;<br>
&gt;<br>
&gt; I agree, at the line 48 there isn&#39;t code. It would seem that &quot;Drools 5.3.0<br>
&gt; final&quot; has different binary and  source code.<br>
&gt;<br>
&gt;<br>
&gt;&gt;&gt;There is another mystery : why this is working when getting rules from a<br>
&gt; DRL file and not from Guvnor ...<br>
&gt;&gt;&gt;Did you add the POJO model into the Guvnor&#39;s package ?<br>
&gt;<br>
&gt;<br>
&gt; Yes, I did.<br>
&gt;<br>
&gt;&gt;&gt;But if this is it, package compilation should raise a compilation error<br>
&gt; ...<br>
&gt;<br>
&gt;<br>
&gt; The package compilation is ok.<br>
&gt;<br>
&gt;<br>
&gt;&gt;&gt;What is sure is that the problem does not comes from the rules, as the<br>
&gt; stack trace shows an &quot;insert&quot; call outside the rules, otherwise there would<br>
&gt; be a &gt;&gt;reteoo...ConsequenceInvocator (something like that) before ..<br>
&gt;<br>
&gt;<br>
&gt; yes, It is sure<br>
&gt;<br>
&gt;<br>
&gt;&gt;&gt;And a last question : is &quot;org.tass.utils.ExpertSystemManager&quot; a class<br>
&gt; from you, or does it take place into another third-party framework (that<br>
&gt; could use a &gt;&gt;different or modified version of drools).<br>
&gt;<br>
&gt;<br>
&gt; org.tass.utils.ExpertSystemManager.java is our class. We aren&#39;t using<br>
&gt; third-party<br>
&gt; framework.<br>
&gt;<br>
&gt;<br>
&gt; Thank you<br>
&gt;<br>
&gt; Carolina<br>
&gt;<br>
&gt;<br>
&gt; 2012/7/23 Vincent LEGENDRE &lt;<a href="mailto:vincent.legendre@eurodecision.com">vincent.legendre@eurodecision.com</a>&gt;<br>
&gt;<br>
&gt;&gt; There is another mystery : why this is working when getting rules from a<br>
&gt;&gt; DRL file and not from Guvnor ...<br>
&gt;&gt; Did you add the POJO model into the Guvnor&#39;s package ?<br>
&gt;&gt; But if this is it, package compilation should raise a compilation error<br>
&gt;&gt; ...<br>
&gt;&gt;<br>
&gt;&gt; What is sure is that the problem does not comes from the rules, as the<br>
&gt;&gt; stack trace shows an &quot;insert&quot; call outside the rules, otherwise there<br>
&gt;&gt; would<br>
&gt;&gt; be a reteoo...ConsequenceInvocator (something like that) before ..<br>
&gt;&gt;<br>
&gt;&gt; And a last question : is &quot;org.tass.utils.ExpertSystemManager&quot; a class<br>
&gt;&gt; from<br>
&gt;&gt; you, or does it take place into another third-party framework (that could<br>
&gt;&gt; use a different or modified version of drools).<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; rules-users mailing list<br>
&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><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;&gt;<br>
&gt;<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>
</div></div></blockquote></div><br>