NPE in jacorb

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

NPE in jacorb

Ales Justin
Hey,

got this NPE at shutdown.

Running custom AS7 branch with standalone-full-ha.xml.
No changes made to IIOP, etc.

---

15:57:37,387 INFO  [org.jboss.as.logging] JBAS011503: Restored bootstrap log handlers
15:57:37,393 INFO  [jacorb.poa] POA IRPOA destroyed
15:57:37,394 INFO  [jacorb.poa] POA Naming destroyed
15:57:37,394 WARN  [org.jboss.msc.service.fail] MSC00004: Failure during stop of service jboss.jacorb.poa-service.rootpoa: java.lang.NullPointerException
        at org.jacorb.poa.POA.destroy(POA.java:1019)
        at org.jboss.as.jacorb.service.CorbaPOAService.stop(CorbaPOAService.java:187)
        at org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:1911) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
        at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:1874) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_29]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_29]
        at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_29]

15:57:37,419 INFO  [jacorb.orb] prepare ORB for shutdown...
15:57:37,420 INFO  [jacorb.orb] ORB going down...
15:57:37,424 INFO  [jacorb.poa] POA RootPOA destroyed
15:57:37,426 INFO  [jacorb.orb] ORB shutdown complete
15:57:37,427 INFO  [jacorb.orb.iiop] Listener exited
15:57:37,428 INFO  [jacorb.orb] ORB run, exit

-Ales


_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: NPE in jacorb

Shelly McGowan


Ales,

See:
https://issues.jboss.org/browse/AS7-3340

Is it easily reproducable for you?

Shelly


----- Original Message -----
From: "Ales Justin" <[hidden email]>
To: "Stefan Guilhen" <[hidden email]>
Cc: "JBoss AS7 Development" <[hidden email]>
Sent: Friday, February 24, 2012 10:03:34 AM
Subject: [jboss-as7-dev] NPE in jacorb

Hey,

got this NPE at shutdown.

Running custom AS7 branch with standalone-full-ha.xml.
No changes made to IIOP, etc.

---

15:57:37,387 INFO  [org.jboss.as.logging] JBAS011503: Restored bootstrap log handlers
15:57:37,393 INFO  [jacorb.poa] POA IRPOA destroyed
15:57:37,394 INFO  [jacorb.poa] POA Naming destroyed
15:57:37,394 WARN  [org.jboss.msc.service.fail] MSC00004: Failure during stop of service jboss.jacorb.poa-service.rootpoa: java.lang.NullPointerException
        at org.jacorb.poa.POA.destroy(POA.java:1019)
        at org.jboss.as.jacorb.service.CorbaPOAService.stop(CorbaPOAService.java:187)
        at org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:1911) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
        at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:1874) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_29]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_29]
        at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_29]

15:57:37,419 INFO  [jacorb.orb] prepare ORB for shutdown...
15:57:37,420 INFO  [jacorb.orb] ORB going down...
15:57:37,424 INFO  [jacorb.poa] POA RootPOA destroyed
15:57:37,426 INFO  [jacorb.orb] ORB shutdown complete
15:57:37,427 INFO  [jacorb.orb.iiop] Listener exited
15:57:37,428 INFO  [jacorb.orb] ORB run, exit

-Ales


_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: NPE in jacorb

Pavel Janousek
Just FYI:

It doesn't have any relation to HA or Full profile, I caught it in WebProfile too (standalone.xml).

Also my statement about relation to quick shutdown after finished start is out-dated, it is definitely not true.

Anyway - I didn't see it in ER1 yet.

Pavel

----- Original Message -----

> From: "Shelly McGowan" <[hidden email]>
> To: "Ales Justin" <[hidden email]>
> Cc: "JBoss AS7 Development" <[hidden email]>
> Sent: Friday, February 24, 2012 4:06:56 PM
> Subject: Re: [jboss-as7-dev] NPE in jacorb
>
>
>
> Ales,
>
> See:
> https://issues.jboss.org/browse/AS7-3340
>
> Is it easily reproducable for you?
>
> Shelly
>
>
> ----- Original Message -----
> From: "Ales Justin" <[hidden email]>
> To: "Stefan Guilhen" <[hidden email]>
> Cc: "JBoss AS7 Development" <[hidden email]>
> Sent: Friday, February 24, 2012 10:03:34 AM
> Subject: [jboss-as7-dev] NPE in jacorb
>
> Hey,
>
> got this NPE at shutdown.
>
> Running custom AS7 branch with standalone-full-ha.xml.
> No changes made to IIOP, etc.
>
> ---
>
> 15:57:37,387 INFO  [org.jboss.as.logging] JBAS011503: Restored
> bootstrap log handlers
> 15:57:37,393 INFO  [jacorb.poa] POA IRPOA destroyed
> 15:57:37,394 INFO  [jacorb.poa] POA Naming destroyed
> 15:57:37,394 WARN  [org.jboss.msc.service.fail] MSC00004: Failure
> during stop of service jboss.jacorb.poa-service.rootpoa:
> java.lang.NullPointerException
> at org.jacorb.poa.POA.destroy(POA.java:1019)
> at
> org.jboss.as.jacorb.service.CorbaPOAService.stop(CorbaPOAService.java:187)
> at
> org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:1911)
> [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
> at
> org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:1874)
> [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> [classes.jar:1.6.0_29]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> [classes.jar:1.6.0_29]
> at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_29]
>
> 15:57:37,419 INFO  [jacorb.orb] prepare ORB for shutdown...
> 15:57:37,420 INFO  [jacorb.orb] ORB going down...
> 15:57:37,424 INFO  [jacorb.poa] POA RootPOA destroyed
> 15:57:37,426 INFO  [jacorb.orb] ORB shutdown complete
> 15:57:37,427 INFO  [jacorb.orb.iiop] Listener exited
> 15:57:37,428 INFO  [jacorb.orb] ORB run, exit
>
> -Ales
>
>
> _______________________________________________
> jboss-as7-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
> _______________________________________________
> jboss-as7-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>
_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: NPE in jacorb

Ales Justin
In reply to this post by Shelly McGowan
> 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
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: NPE in jacorb

Stefan Guilhen
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
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev

_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: NPE in jacorb

Fernando Nasser
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
>> [hidden email]
>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
> _______________________________________________
> jboss-as7-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>

_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: NPE in jacorb

Radoslav Husar
In reply to this post by Shelly McGowan
On 02/24/2012 04:06 PM, Shelly McGowan wrote:
>
>
> Ales,
>
> See:
> https://issues.jboss.org/browse/AS7-3340

I started seeing this from time to time back in December :-/ but I don't
have anything deterministically reproducible.

https://issues.jboss.org/browse/AS7-3031

>
> Is it easily reproducable for you?
>
> Shelly
>
>
> ----- Original Message -----
> From: "Ales Justin"<[hidden email]>
> To: "Stefan Guilhen"<[hidden email]>
> Cc: "JBoss AS7 Development"<[hidden email]>
> Sent: Friday, February 24, 2012 10:03:34 AM
> Subject: [jboss-as7-dev] NPE in jacorb
>
> Hey,
>
> got this NPE at shutdown.
>
> Running custom AS7 branch with standalone-full-ha.xml.
> No changes made to IIOP, etc.
>
> ---
>
> 15:57:37,387 INFO  [org.jboss.as.logging] JBAS011503: Restored bootstrap log handlers
> 15:57:37,393 INFO  [jacorb.poa] POA IRPOA destroyed
> 15:57:37,394 INFO  [jacorb.poa] POA Naming destroyed
> 15:57:37,394 WARN  [org.jboss.msc.service.fail] MSC00004: Failure during stop of service jboss.jacorb.poa-service.rootpoa: java.lang.NullPointerException
> at org.jacorb.poa.POA.destroy(POA.java:1019)
> at org.jboss.as.jacorb.service.CorbaPOAService.stop(CorbaPOAService.java:187)
> at org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:1911) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
> at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:1874) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_29]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_29]
> at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_29]
>
> 15:57:37,419 INFO  [jacorb.orb] prepare ORB for shutdown...
> 15:57:37,420 INFO  [jacorb.orb] ORB going down...
> 15:57:37,424 INFO  [jacorb.poa] POA RootPOA destroyed
> 15:57:37,426 INFO  [jacorb.orb] ORB shutdown complete
> 15:57:37,427 INFO  [jacorb.orb.iiop] Listener exited
> 15:57:37,428 INFO  [jacorb.orb] ORB run, exit
>
> -Ales
>
>
> _______________________________________________
> jboss-as7-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
> _______________________________________________
> jboss-as7-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev

--
Radoslav Husar

JBoss QE
Czech Republic

Mobile phone: +420 608 507 607
Office phone: +420 532 294 132; ext 82-62 132

http://intranet.corp.redhat.com/ic/intranet/RadoslavHusar.html
_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev