null pointer exception in imageWindow.windowActivated() ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

null pointer exception in imageWindow.windowActivated() ?

Colin Poczatek
Hi all,

So we seem to be hitting a race condition that ends up throwing an
exception (stack trace below), and of course it's intermittent.  I
really can't see anything in our code that's odd.  All we do is have a
class that extends imageplus, call our constructor, and call
showWindow() which sometimes throws an exception.  I'm just looking for
hints/advice if anyone has any.

Thanks,
Collin


System info:
IJ 1.45s
Java 1.6.0_26
Ubuntu 10.10 with Gnome

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
         at ij.gui.ImageWindow.windowActivated(ImageWindow.java:531)
         at java.awt.Window.processWindowEvent(Window.java:1877)
         at java.awt.Window.processEvent(Window.java:1823)
         at java.awt.Component.dispatchEventImpl(Component.java:4651)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4481)
         at
java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1850)
         at
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:910)
         at
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:409)
         at java.awt.Component.dispatchEventImpl(Component.java:4523)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4481)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
         at java.awt.EventQueue.access$000(EventQueue.java:84)
         at java.awt.EventQueue$1.run(EventQueue.java:602)
         at java.awt.EventQueue$1.run(EventQueue.java:600)
         at java.security.AccessController.doPrivileged(Native Method)
         at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
         at java.awt.EventQueue$2.run(EventQueue.java:616)
         at java.awt.EventQueue$2.run(EventQueue.java:614)
         at java.security.AccessController.doPrivileged(Native Method)
         at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
         at java.awt.SentEvent.dispatch(SentEvent.java:55)
         at
java.awt.DefaultKeyboardFocusManager$DefaultKeyboardFocusManagerSentEvent.dispatch(DefaultKeyboardFocusManager.java:183)
         at
java.awt.DefaultKeyboardFocusManager.sendMessage(DefaultKeyboardFocusManager.java:210)
         at
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:286)
         at java.awt.Component.dispatchEventImpl(Component.java:4523)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4481)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
         at java.awt.EventQueue.access$000(EventQueue.java:84)
         at java.awt.EventQueue$1.run(EventQueue.java:602)
         at java.awt.EventQueue$1.run(EventQueue.java:600)
         at java.security.AccessController.doPrivileged(Native Method)
         at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
         at java.awt.EventQueue$2.run(EventQueue.java:616)
         at java.awt.EventQueue$2.run(EventQueue.java:614)
         at java.security.AccessController.doPrivileged(Native Method)
         at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
         at java.awt.SequencedEvent.dispatch(SequencedEvent.java:101)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
         at java.awt.EventQueue.access$000(EventQueue.java:84)
         at java.awt.EventQueue$1.run(EventQueue.java:602)
         at java.awt.EventQueue$1.run(EventQueue.java:600)
         at java.security.AccessController.doPrivileged(Native Method)
         at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
         at java.awt.EventQueue$2.run(EventQueue.java:616)
         at java.awt.EventQueue$2.run(EventQueue.java:614)
         at java.security.AccessController.doPrivileged(Native Method)
         at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
         at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.