Hello,
could you send the code of FirstObj ?
I had some problem once with final fields / method because the shadowProxy is in fact a
subclass of your class so it can't proxy final things...
-Patrick
-----Message d'origine-----
De : rules-users-bounces(a)lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org]De la part de Trägenap
Envoyé : mardi, 9. décembre 2008 15:32
À : rules-users(a)lists.jboss.org
Objet : [rules-users] shadow proxy nullpointerexception
Hello,
I got some problems with shadowproxy.
I have a couple of instances of class "FirstObj". The objects contains
some other objects like "innerObj" and have a method
"computesomething",
which returns boolean and use the "innerObj" to compute the result.
I try to access this object with the following rule:
rule "doIt"
when
$firstobj : FirstObj(computesomething == true)
then
// take a break...
System.out.println("be happy");
I debug the programm and figure out that the innerObj is not null.
Instead of my original object "firstobj", there I found a
FirstObjShadowProxy which offers a field called "innerObj" which is null.
Isnt it possible to get access to "computed" fields? What is wrong here?
Thanks
Thorsten
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users