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"><<a href="mailto:salaboy@gmail.com">salaboy@gmail.com</a>></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 <<a href="mailto:hmelendez@gmail.com">hmelendez@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Hi, I'm using JBoss Rules 4.0.7<br>
> and I having this error when executing some rules.<br>
><br>
> org.drools.RuntimeDroolsException: org.drools.RuntimeDroolsException:<br>
> java.lang.IllegalStateException: Error in getting field access method.Unable<br>
> to create Field Extractor for 'codigoPlan' of '[ClassObjectType<br>
> class=com.sample.Afiliado]'<br>
><br>
> The Afiliado class has a getCodigoPlan() public getter to a codigoPlan<br>
> field.<br>
> The rule is:<br>
><br>
> rule<br>
> when<br>
> socio : Afiliado( $codigoPlan: codigoPlan != null );<br>
> then<br>
> System.out.println( $codigoPlan );<br>
> end<br>
><br>
> I check the manuals and mail lists and everyone has issues with getters.<br>
> That's no my case I think.<br>
><br>
> Any ideas of what's happen ?<br>
> Regards,<br>
> --<br>
> Hugo<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>
<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