I think is the last one and the method is relatively old.
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.
I must do some tests.
Thanks Mauricio ;)
Are you sure that the class that you have in the classpath is the last
one, and have the method getCodigoPlan()?
Did you add this method recently?
2009/3/26 Hugo Melendez <hmelendez@gmail.com>:
> _______________________________________________> Hi, I'm using JBoss Rules 4.0.7
> and I having this error when executing some rules.
>
> org.drools.RuntimeDroolsException: org.drools.RuntimeDroolsException:
> java.lang.IllegalStateException: Error in getting field access method.Unable
> to create Field Extractor for 'codigoPlan' of '[ClassObjectType
> class=com.sample.Afiliado]'
>
> The Afiliado class has a getCodigoPlan() public getter to a codigoPlan
> field.
> The rule is:
>
> rule
> when
> socio : Afiliado( $codigoPlan: codigoPlan != null );
> then
> System.out.println( $codigoPlan );
> end
>
> I check the manuals and mail lists and everyone has issues with getters.
> That's no my case I think.
>
> Any ideas of what's happen ?
> Regards,
> --
> Hugo
>
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
--
- Salatino Mauricio -
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users