Yea, this is a hard one to reproduce. After inspecting the JacORB code I
think I know where the problem is. I'll change the CorbaPOAService so
that only the RootPOA is destroyed (it will destroy all child POAs in
the process).
Calling destroy on all POAs as we are doing now can lead to a race
condition where a child POA can remove itself from the parent POA while
the parent POA is iterating through its children to destroy them.
Iterating through an Enumeration, like JacORB does in this case, is not
fail fast and the above scenario will lead to the NPE that is randomly seen.
Cheers,
Stefan
On 02/24/2012 01:40 PM, Ales Justin wrote:
> See:
>
https://issues.jboss.org/browse/AS7-3340
Ah, OK, should have checked JIRA first ...
> Is it easily reproducable for you?
Not really, just saw it once -- before I sent the email.
And I do run AS7 a lot these days, hence it's probably gonna be hard to find the real
cause.
btw: my "capedwarf" branch is merged with AS7.1.0.Final tag.
-Ales
_______________________________________________
jboss-as7-dev mailing list
jboss-as7-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev