Hi,<br>I have never been doing this (opening a JIRA), but I will try in next 2, meaby 3 days - when I would have some extra time for it :)<br><br>Thanks,<br>tom.<br><br><div class="gmail_quote">2010/9/15 Edson Tirelli <span dir="ltr">&lt;<a href="mailto:tirelli@post.com">tirelli@post.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">   That is odd Tom. Can you please open a JIRA for it and attach a<br>
test case to reproduce the problem plz? I will look into it when I get<br>
a chance.<br>
<br>
   Edson<br>
<br>
2010/9/14 tom ska &lt;<a href="mailto:tiberium.linux@gmail.com">tiberium.linux@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Hi,<br>
&gt; in my package definition I have two kinds of facts. I use stateFullSession<br>
&gt; and I send to ksession facts of two different types. For each type I have<br>
&gt; one rule using only this type. So what I am doing is processing two<br>
&gt; different fact&#39;s types in one session. I start fireAllRules, and I know it<br>
&gt; fires good rules, and all is working fine. But problem appears later - when<br>
&gt; I want to get my fact&#39;s back using Drools reflection API.<br>
&gt;<br>
&gt; With first type (facts of first type) all is working fine, but when I change<br>
&gt; factType object to &quot;point&quot; into another type (the second one), I get<br>
&gt; problems:<br>
&gt;<br>
&gt; [ERROR] package.Type2 cannot be cast to package.Type2<br>
&gt; java.lang.reflect.InvocationTargetException<br>
&gt;<br>
&gt; It is thrown when I call<br>
&gt;<br>
&gt; kbase.getFactType(package, Type2).get(factObject , &quot;filed1_name&quot;);<br>
&gt;<br>
&gt; I know that factObject is good, because when I use syso (factObject) I get<br>
&gt; what I want.<br>
&gt;<br>
&gt; What surprises me is when I call it for Type1 it works. Also, if I process<br>
&gt; in ksession only one fact type using my code, I don&#39;t get this error (for<br>
&gt; first and second fact type).<br>
&gt;<br>
&gt; Thanks,<br>
&gt; tom.<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><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>
&gt;<br>
<br>
<br>
<br>
--<br>
  Edson Tirelli<br>
  JBoss Drools Core Development<br>
  JBoss by Red Hat @ <a href="http://www.jboss.com" target="_blank">www.jboss.com</a><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>
</blockquote></div><br>