I think is the last one and the method is relatively old.<br>Reviewing the problem, the Afiliado object is obtained from a service and then I (accidentally?) cast it as an Object. Maybe that is the problem.<br>I must do some tests.<br>
<br>Thanks Mauricio ;)<br><br><div class="gmail_quote">On Thu, Mar 26, 2009 at 11:32 AM, Mauricio Salatino <span dir="ltr">&lt;<a href="mailto:salaboy@gmail.com">salaboy@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Are you sure that the class that you have in the classpath is the last<br>
one, and have the method getCodigoPlan()?<br>
Did you add this method recently?<br>
<br>
2009/3/26 Hugo Melendez &lt;<a href="mailto:hmelendez@gmail.com">hmelendez@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Hi, I&#39;m using JBoss Rules 4.0.7<br>
&gt; and I having this error when executing some rules.<br>
&gt;<br>
&gt; org.drools.RuntimeDroolsException: org.drools.RuntimeDroolsException:<br>
&gt; java.lang.IllegalStateException: Error in getting field access method.Unable<br>
&gt; to create Field Extractor for &#39;codigoPlan&#39; of &#39;[ClassObjectType<br>
&gt; class=com.sample.Afiliado]&#39;<br>
&gt;<br>
&gt; The Afiliado class has a getCodigoPlan() public getter to a codigoPlan<br>
&gt; field.<br>
&gt; The rule is:<br>
&gt;<br>
&gt; rule<br>
&gt; when<br>
&gt;     socio : Afiliado( $codigoPlan: codigoPlan != null );<br>
&gt; then<br>
&gt;     System.out.println( $codigoPlan );<br>
&gt; end<br>
&gt;<br>
&gt; I check the manuals and mail lists and everyone has issues with getters.<br>
&gt; That&#39;s no my case I think.<br>
&gt;<br>
&gt; Any ideas of what&#39;s happen ?<br>
&gt; Regards,<br>
&gt; --<br>
&gt; Hugo<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>
<font color="#888888"><br>
<br>
<br>
--<br>
 - Salatino Mauricio -<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>
</font></blockquote></div><br><br clear="all"><br>-- <br>Hugo<br>George Burns