<br>   Ok, this one was hidden for a long time. Interesting no one stumbled on it before you. <br><br><a href="https://jira.jboss.org/jira/browse/JBRULES-2424">https://jira.jboss.org/jira/browse/JBRULES-2424</a><br><br>   The problem is triggered in case your fact class/interface has a method that matches the following 3 conditions:<br>
<br>* it is public<br>* its name starts with &quot;set&quot;<br>* it has no parameters<br><br>    Your fact interface had a method:<br><br>public XXX setup();<br><br>    That would make the ClassFieldInspector class to raise an exception, making it impossible to create any field accessors for it.<br>
<br>    Anyway, it is fixed now on trunk (to be released in M2) and branch 5.0.x. Meanwhile, the possible workaround is to break one of the three conditions above: either make the method non-public, or rename it to not start with &quot;set&quot; or add at least one (dummy) parameter to it.<br>
<br>    Thanks for reporting.<br><br>     Edson<br>  <br><br><br><div class="gmail_quote">2010/2/4 Brice Figureau <span dir="ltr">&lt;<a href="mailto:brice%2Bdrools@daysofwonder.com">brice+drools@daysofwonder.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Thu, 2010-02-04 at 09:25 +0100, Brice Figureau wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; On Wed, 2010-02-03 at 14:03 -0500, Edson Tirelli wrote:<br>
&gt; &gt;<br>
&gt; &gt;      Hi Brice,<br>
&gt; &gt;<br>
&gt; &gt;      You are doing it right:<br>
&gt; &gt;<br>
&gt; &gt; Scenario( id == 6147 )<br>
&gt; &gt;<br>
&gt; &gt;      We&#39;ve been through quite some changes in trunk, and because of<br>
&gt; &gt; that there were some regressions that are being fixed as we speak. I<br>
&gt; &gt; suggest that you either use the stable 5.0.1 for now or if you can<br>
&gt; &gt; wait till M2, it should fix this kind of issue.<br>
&gt;<br>
&gt; I will use the stable version for the moment and will upgrade when M2 is<br>
&gt; available. I&#39;ll try to produce a test case for this problem if that can<br>
&gt; be of any help.<br>
<br>
</div>It looks like the problem also happens with the 5.0.1 version :-(<br>
<div><div></div><div class="h5">--<br>
Brice Figureau<br>
My Blog: <a href="http://www.masterzen.fr/" target="_blank">http://www.masterzen.fr/</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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>