• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
J Sette
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are only running this application on Windows. Thanks.
Jeanne
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic