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