<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#222222;background:white">>>If there is an insert() call in</span><span lang="EN-US" style="font-size:10.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#222222"><br>
<span style="background:white">>>org.tass.utils.ExpertSystemManager.java in line 156 then *this* is</span><br>
<span style="background:white">>>where the insert occurs, not the insert() in the rule.</span></span><span lang="EN-US" style="font-size:12.0pt;line-height:115%;font-family:"Cambria","serif""></span></p>
<div><font color="#222222" face="arial, sans-serif"><br></font><div><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#222222;background:white">org.tass.utils.</span>ExpertSystemManager.java is our class and the source code
is this:</p>
<div style="border:none;border-left:solid #6ce26c 2.25pt;padding:0cm 0cm 0cm 0cm;background:white;margin-left:15.75pt;margin-right:0cm">
<p class="MsoNormal" style="margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:18.0pt;margin-bottom:.0001pt;line-height:10.5pt;background:white;border:none;padding:0cm"><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c">153.<span style="font-size:7pt;line-height:normal;font-family:'Times New Roman'">
</span></span><b><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#006699">public</span></b><span lang="EN-US" style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> </span><b><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#006699">void</span></b><span lang="EN-US" style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> insertObservation(String entryPoint, Observation obs) {
</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c"></span></p>
<p class="MsoNormal" style="margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:18.0pt;margin-bottom:.0001pt;line-height:10.5pt;background:#f8f8f8;border:none;padding:0cm"><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c">154.<span style="font-size:7pt;line-height:normal;font-family:'Times New Roman'">
</span></span><span lang="EN-US" style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> </span><b><span style="font-size:9.0pt;font-family:Consolas;color:#006699">try</span></b><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> { </span><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c"></span></p>
<p class="MsoNormal" style="margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:18.0pt;margin-bottom:.0001pt;line-height:10.5pt;background:white;border:none;padding:0cm"><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c">155.<span style="font-size:7pt;line-height:normal;font-family:'Times New Roman'">
</span></span><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> </span><b><span style="font-size:9.0pt;font-family:Consolas;color:#006699">if</span></b><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm">(entryPoints.containsKey(entryPoint)) {
</span><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c"></span></p>
<p class="MsoNormal" style="margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:18.0pt;margin-bottom:.0001pt;line-height:10.5pt;background:#f8f8f8;border:none;padding:0cm"><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c">156.<span style="font-size:7pt;line-height:normal;font-family:'Times New Roman'">
</span></span><span lang="EN-US" style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> entryPoints.get(entryPoint).insert(obs);
</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c"></span></p>
<p class="MsoNormal" style="margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:18.0pt;margin-bottom:.0001pt;line-height:10.5pt;background:white;border:none;padding:0cm"><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c">157.<span style="font-size:7pt;line-height:normal;font-family:'Times New Roman'">
</span></span><span lang="EN-US" style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm">
</span><span lang="EN-US" style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c"></span></p>
<p class="MsoNormal" style="margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:18.0pt;margin-bottom:.0001pt;line-height:10.5pt;background:#f8f8f8;border:none;padding:0cm"><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c">158.<span style="font-size:7pt;line-height:normal;font-family:'Times New Roman'">
</span></span><span lang="EN-US" style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> </span><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm">ksession.fireAllRules(); </span><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c"></span></p>
<p class="MsoNormal" style="margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:18.0pt;margin-bottom:.0001pt;line-height:10.5pt;background:white;border:none;padding:0cm"><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c">159.<span style="font-size:7pt;line-height:normal;font-family:'Times New Roman'">
</span></span><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> }
</span><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c"></span></p>
<p class="MsoNormal" style="margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:18.0pt;margin-bottom:.0001pt;line-height:10.5pt;background:#f8f8f8;border:none;padding:0cm"><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c">160.<span style="font-size:7pt;line-height:normal;font-family:'Times New Roman'">
</span></span><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> }
</span><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c"></span></p>
<p class="MsoNormal" style="margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:18.0pt;margin-bottom:.0001pt;line-height:10.5pt;background:white;border:none;padding:0cm"><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c">161.<span style="font-size:7pt;line-height:normal;font-family:'Times New Roman'">
</span></span><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> </span><b><span style="font-size:9.0pt;font-family:Consolas;color:#006699">catch</span></b><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> (Exception e) {
</span><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c"></span></p>
<p class="MsoNormal" style="margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:18.0pt;margin-bottom:.0001pt;line-height:10.5pt;background:#f8f8f8;border:none;padding:0cm"><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c">162.<span style="font-size:7pt;line-height:normal;font-family:'Times New Roman'">
</span></span><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> logger.error(e, e);
</span><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c"></span></p>
<p class="MsoNormal" style="margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:18.0pt;margin-bottom:.0001pt;line-height:10.5pt;background:white;border:none;padding:0cm"><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c">163.<span style="font-size:7pt;line-height:normal;font-family:'Times New Roman'">
</span></span><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> }
</span><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c"></span></p>
<p class="MsoNormal" style="margin-left:18.0pt;line-height:10.5pt;background:#f8f8f8;border:none;padding:0cm"><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c">164.<span style="font-size:7pt;line-height:normal;font-family:'Times New Roman'">
</span></span><span style="font-size:9pt;font-family:Consolas;border:1pt none windowtext;padding:0cm"> } </span><span style="font-size:9.0pt;font-family:Consolas;color:#5c5c5c"></span></p>
</div><div><br></div><div><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#222222;background:white">>>Where is org.tass.utils coming from?</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#222222;background:white"></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;line-height:115%;background-color:white;background-repeat:initial initial">Where is org.tass.utils coming from?</span> it is our class.</p>
<p class="MsoNormal"><br></p><p></p></div><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#222222;background:white">>>It's still a mystery to me how it's possible to have a stack
trace</span><span lang="EN-US" style="font-size:10.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#222222"><br>
<span style="background:white">>>element from NamedEntryPoint.java line 48
- there's no code in this</span><br>
<span style="background:white">>>line.</span></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#222222;background:white"><br></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#222222;background:white">I agree, at the line 48 there isn't code. It would seem that "Drools
5.3.0 final" has different binary and source code.</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#222222;background:white"><br>
</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#222222;background:white"><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;line-height:normal">>>There is another mystery : why this is working when getting rules from a DRL file and not from Guvnor ...</span><br style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;line-height:normal">
<span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;line-height:normal">>>Did you add the POJO model into the Guvnor's package ?</span></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#222222;background:white"><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;line-height:normal"><br>
</span></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#222222;background:white">Yes, I did.<br style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;line-height:normal">
<span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;line-height:normal"><br></span></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#222222;background:white"><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;line-height:normal">>>But if this is it, package compilation should raise a compilation error ...</span>
</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#222222;background:white"></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;line-height:115%;background-color:white;background-repeat:initial initial"><br>
</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;line-height:115%;background-color:white;background-repeat:initial initial">The package compilation is ok.</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;line-height:115%;background-color:white;background-repeat:initial initial"><br>
</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;line-height:115%;background-color:white;background-repeat:initial initial"><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;line-height:normal">>>What is sure is that the problem does not comes from the rules, as the stack trace shows an "insert" call outside the rules, otherwise there would be a >>reteoo...ConsequenceInvocator (something like that) before ..</span><br style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;line-height:normal">
</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;line-height:115%;background-color:white;background-repeat:initial initial"><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;line-height:normal"><br>
</span></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;line-height:115%;background-color:white;background-repeat:initial initial"></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;line-height:115%;background-color:white;background-repeat:initial initial">yes, It is sure</span><span lang="EN-US" style="font-size:12.0pt;line-height:115%;font-family:"Cambria","serif""></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;line-height:115%;background-color:white;background-repeat:initial initial"><br></span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;line-height:115%;background-color:white;background-repeat:initial initial"><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;line-height:normal">>>And a last question : is "org.tass.utils.</span><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;line-height:normal">ExpertSystemManager" a class from you, or does it take place into another third-party framework (that could use a >>different or modified version of drools).</span><br style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;line-height:normal">
</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;line-height:115%;background-color:white;background-repeat:initial initial"><br></span></p><p></p><p></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#222222;background:white"><span lang="EN-US" style="font-size:10pt;background-color:white">org.tass.utils.</span><span style="color:rgb(0,0,0);font-family:arial;font-size:small;line-height:normal">ExpertSystemManager.java is our class. We aren't </span></span><span lang="EN-US" style="font-size:11pt;line-height:115%;font-family:Arial,sans-serif;background-color:white;background-repeat:initial initial">using</span><span lang="EN-US" style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;background-color:white;background-repeat:initial initial"> </span><span style="background-color:rgb(255,255,255);font-family:arial,helvetica,sans-serif;font-size:13px">third-party framework.</span></p>
<p class="MsoNormal"><span style="background-color:rgb(255,255,255);font-family:arial,helvetica,sans-serif;font-size:13px"><br></span></p><p class="MsoNormal"><span style="background-color:rgb(255,255,255);font-family:arial,helvetica,sans-serif;font-size:13px">Thank you</span></p>
<p class="MsoNormal"><span style="background-color:rgb(255,255,255);font-family:arial,helvetica,sans-serif;font-size:13px">Carolina</span></p><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;line-height:115%;font-family:"Arial","sans-serif";color:#222222;background:white"><br>
</span></p><div class="gmail_quote">2012/7/23 Vincent LEGENDRE <span dir="ltr"><<a href="mailto:vincent.legendre@eurodecision.com" target="_blank">vincent.legendre@eurodecision.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:10pt;font-family:arial,helvetica,sans-serif">There is another mystery : why this is working when getting rules from a DRL file and not from Guvnor ...<br>Did you add the POJO model into the Guvnor's package ?<br>
But if this is it, package compilation should raise a compilation error ...<br><br>What is sure is that the problem does not comes from the rules, as the stack trace shows an "insert" call outside the rules, otherwise there would be a reteoo...ConsequenceInvocator (something like that) before ..<br>
<br>And a last question : is "org.tass.utils.ExpertSystemManager" a class from you, or does it take place into another third-party framework (that could use a different or modified version of drools).<br><br></div>
</div><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>
<br></blockquote></div><br></div></div>