[jboss-as7-dev] NPE in jacorb

Fernando Nasser fnasser at redhat.com
Fri Feb 24 11:56:29 EST 2012


On 12-02-24 11:06 AM, Stefan Guilhen wrote:
> 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.
How is that upstream release with (almost all of) our patches incorporated?
I guess this one can also e included...

Cheers,
Fernando

> 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 at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>



More information about the jboss-as7-dev mailing list