0 Replies Latest reply: May 27, 2011 2:39 AM by 829836 RSS

    Issue with applet

    829836
      I have an applet which parses and displays DXF files. Sometimes when loading a DXF file I get the following exception :
      Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException: component argument pData
      at sun.java2d.windows.GDIWindowSurfaceData.initOps(Native Method)
      at sun.java2d.windows.GDIWindowSurfaceData.<init>(Unknown Source)
      at sun.java2d.windows.GDIWindowSurfaceData.createData(Unknown Source)
      at sun.java2d.d3d.D3DScreenUpdateManager.createScreenSurface(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.dispatchEventImpl(Unknown Source)
      at java.awt.EventQueue.access$000(Unknown Source)
      at java.awt.EventQueue$1.run(Unknown Source)
      at java.awt.EventQueue$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(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)

      Does anyone know why this issue occurs and how to solve it? I've seen a similar bug report http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5062191 but found no solution or workaround. Thanks in advance.