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...
De : rules-users-bounces(a)lists.jboss.org
[mailto:firstname.lastname@example.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
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
which returns boolean and use the "innerObj" to compute the result.
I try to access this object with the following rule:
$firstobj : FirstObj(computesomething == true)
// take a break...
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?
rules-users mailing list