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