aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes AWT-EventQueue-0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "AWT-EventQueue-0" java.lang.NullPointerException: component argument pData" Watch "AWT-EventQueue-0" java.lang.NullPointerException: component argument pData" New topic
Author

AWT-EventQueue-0" java.lang.NullPointerException: component argument pData

J Sette
Greenhorn

Joined: Feb 19, 2009
Posts: 2
I have old code that was written in awt and ran great in JRE 1.3. Then JRE 1.4 had some problems - which I cannot remember now, so we continued to use JRE 1.3. Lo and behold, our awt problems have gone away with JRE 1.5, but a new problwm has cropped up. When the
applet closes, I get the following stack in the Console window.

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: component argument pData
at sun.awt.windows.Win32SurfaceData.initOps(Native Method)
at sun.awt.windows.Win32SurfaceData.<init>(Unknown Source)
at sun.awt.windows.Win32SurfaceData.createData(Unknown Source)
at sun.awt.Win32GraphicsConfig.createSurfaceData(Unknown Source)
at sun.awt.windows.WComponentPeer.replaceSurfaceData(Unknown Source)
at sun.awt.windows.WComponentPeer.replaceSurfaceData(Unknown Source)
at sun.awt.windows.WComponentPeer$2.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

I have been reading postings on Google which indicate that people were not getting this with 1.4 but are with 1.5.
So far, I cannot find any way to eliminate it.

Any suggestions?
Jeanne
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39415
    
  28
Welcome to JavaRanch

Don't know, I am afraid, but that question is too difficult for our beginners. Sounds like an AWT problem, so I shall move you to the GUI forum.

By the way, do you only get that problem on Windows boxes?
J Sette
Greenhorn

Joined: Feb 19, 2009
Posts: 2
We are only running this application on Windows. Thanks.
Jeanne
 
Don't get me started about those stupid light bulbs.
 
subject: AWT-EventQueue-0" java.lang.NullPointerException: component argument pData