Mmm, based on the trail of bugs cited on this thread sounds like it's
very much known and dealt with which is great.  Unfortunately, for us
upgrading in the short term (and especially as far as JDK 8 where one of
those is marked fixed) is beyond hopeless so it sounds like we're SOL.

Keith

Thus spake Alexander Scherbatiy, at Wed, Feb 19, 2014 at 01:09:03PM +0400:
> Date: Wed, 19 Feb 2014 13:09:03 +0400
> From: Alexander Scherbatiy <alexandr.scherba...@oracle.com>
> To: Keith Amling <aml...@palantir.com>
> CC: swing-...@openjdk.java.net, "awt-dev@openjdk.java.net"
>  <awt-dev@openjdk.java.net>
> Subject: Re: <Swing Dev> EventQueue NPE?
> 
> On 2/19/2014 8:03 AM, Keith Amling wrote:
> >I may be barking up the wrong tree e-mailing an OpenJDK list when I've
> >only reproduced this against an Oracle JDK (1.7.0_25, and in particular
> >it doesn't reproduce against 1.7.0_21), but the attached file produces
> >NPEs [1] via EventQueue.isDispatchThread() fairly regularly with an
> >argument of 10 [threads] and can even produce it with just 2 (although
> >less often).
>     This is an interesting exception. I am able to reproduce it with
> the JDK 7u51 but
>     not able to reproduce it with the JDK 8.
> 
>    Could you check that the issue is not reproduced on your side
> with the latest JDK 8:
>      
> https://urldefense.proofpoint.com/v1/url?u=https://jdk8.java.net/download.html&k=fDZpZZQMmYwf27OU23GmAQ%3D%3D%0A&r=BTdtcPIZXD8V7r6BhVE1Cy1S1ITG2lF8LZPYHbBpv%2B0%3D%0A&m=bNoFskKfZDc6dI4KQbzRlnScA6f5c6N035%2BomhAi8Zc%3D%0A&s=cdc869cdb6dce557a5465ba8a3d3456f6539687ed519fa62f33c56711028e3ea
> 
> >
> >We've had even weirder NPEs [2] in the code behind that but I have yet
> >to distill them to a repro unfortunately.
>     We have several reports about this NPE like:
>       
> https://urldefense.proofpoint.com/v1/url?u=https://bugs.openjdk.java.net/browse/JDK-8019272&k=fDZpZZQMmYwf27OU23GmAQ%3D%3D%0A&r=BTdtcPIZXD8V7r6BhVE1Cy1S1ITG2lF8LZPYHbBpv%2B0%3D%0A&m=bNoFskKfZDc6dI4KQbzRlnScA6f5c6N035%2BomhAi8Zc%3D%0A&s=f59a532890c08269ae9600a7e97f8fdc8b538659b054bc66b296ba03fe63f85d
> 
>     It should have been already fixed in JDK 7u60 and in the JDK 8.
> 
>    Thanks,
>    Alexandr.
> >
> >Are either of these known?  Is there something we should be doing in our
> >rather multi-threaded environment to protect this code?
> >
> >Keith
> >
> >[1] E.g.:
> >
> >>java.lang.NullPointerException
> >>    at java.awt.EventQueue.isDispatchThread(EventQueue.java:1014)
> >>    at EQNPE$1.run(EQNPE.java:23)
> >[2] Ending in:
> >
> >>java.lang.NullPointerException
> >>    at sun.awt.SunToolkit.getSystemEventQueueImplPP(SunToolkit.java:1011)
> >>    at sun.awt.SunToolkit.getSystemEventQueueImplPP(SunToolkit.java:1007)
> >>    at 
> >> sun.awt.HeadlessToolkit.getSystemEventQueueImpl(HeadlessToolkit.java:352)
> >>    at java.awt.Toolkit.getSystemEventQueue(Toolkit.java:1717)
> >>    <our code>
> 

Reply via email to