This content has been marked as final.
Show 2 replies
-
1. Re: RaiseEvent set injected members to null - Seam 2.1.0
baz Nov 9, 2008 6:27 PM (in response to mb.martin.unicent.de)We have the same problem. But it is not easy to reproduce. Given a table of data with a link in one column. This link calls the elCalledMethod.
Sometimes it is functioning sometimes not.We are not able to reproduce this error in an easy way.
Do some others have seen some similar errors (context variabels are nulled out)?
Any suggestions for hunting down this kind of error?
-
2. Re: RaiseEvent set injected members to null - Seam 2.1.0
mb.martin.unicent.de Nov 10, 2008 10:29 AM (in response to mb.martin.unicent.de)I spent some time with debugging and there was two things I wondered:
APageScopedClass :: onMyEvent() use SessionScopedClassA too.
All injectable variables are injected and disjected on every use (within APageScopedClass :: onMyEvent()).
The last thing, which is done, is disjecting. This explains why, the initialy injected, variables of SessionScopedClassA are null when returning to SessionScopedClassA :: public String elCalledMethod().
I had a look at org.jboss.seam.core.BijectionInterceptor.
The methode aroundInvoke() inject variables, calls invocation.proceed(), disinject variables and have a member -> counter <-
I thougt - the often repeated dis-/injection - there is something wrong - and printed out the current value of counter (awaited a value > 0, and because of the often repeated dis-/injection exactly one) before invocation.proceed();.
But the counter becomes negative and now I know that i dont understand the code or there is a bug.
Any suggestion in which direction to debug next?
Yours sincerely
Martin