Hi,<br>in my package definition I have two kinds of facts. I use stateFullSession and I send to ksession facts of two different types. For each type I have one rule using only this type. So what I am doing is processing two different fact&#39;s types in one session. I start fireAllRules, and I know it fires good rules, and all is working fine. But problem appears later - when I want to get my fact&#39;s back using Drools reflection API.<br>
<br>With first type (facts of first type) all is working fine, but when I change factType object to &quot;point&quot; into another type (the second one), I get problems:<br><br><span class="gI">[ERROR] package.Type2 cannot be cast to </span><span class="gI">package.Type2</span><br>
<span class="gI">java.lang.reflect.InvocationTargetException<br><br>It is thrown when I call <br><br>kbase.getFactType(package, Type2).get(factObject , &quot;filed1_name&quot;);<br><br>I know that factObject is good, because when I use syso (factObject) I get what I want.<br>
<br>What surprises me is when I call it for Type1 it works. Also, if I process in ksession only one fact type using my code, I don&#39;t get this error (for first and second fact type).<br><br>Thanks,<br>tom.<br></span>