Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4452395

Java2Demo throws NullPointerException on WinNT for build-61 and 62

XMLWordPrintable

    • 2d
    • beta2
    • x86
    • windows_nt
    • Verified

      java2Demo throws NullPointerException on WinNT, Win2000 when the command prompt
      in which it is running, is pushed to the full screen mode. I am also getting
      Dr.Watson error on WinNT along with this exception and java process gets
       terminated automatically. On Win2000 also, java process is terminated by
      windows saying that it has performed an illegal operation. I noticed this bug
      only on merlin-beta build-61, 62. On Win 98, it is passing.
      Here is the exception :

      java.lang.NullPointerException
      at sun.awt.windows.Win32OffScreenImage.restoreContents(Win32OffScreenImage.java:125 at sun.awt.image.BufImgSurfaceData.getReplacement(BufImgSurfaceData.java
      :338)
      at sun.java2d.SunGraphics2D.renderSurfaceData(SunGraphics2D.java:2908)
      at sun.java2d.SunGraphics2D.clipAndRenderSurfaceData(SunGraphics2D.java:
      2949)
      at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3258)
      at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3490)
      at java2d.Intro$Surface.paint(Intro.java:309)
      at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4594)
      at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4547)
      at javax.swing.JComponent._paintImmediately(JComponent.java:4497)
      at javax.swing.JComponent.paintImmediately(JComponent.java:4329)
      at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:407)
      at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(System
      EventQueueUtilities.java:120)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:167)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:437)
      at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:15
      0)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:131)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

      To reproduce this failure,
      set the path to the latest jdk. Goto the Java2D dir located under demo and
      give the following command

      java -jar Java2Demo.jar
      Give the focus to the command prompt by clicking it and press ALT+ENTER.
      If you get the above exception, then the bug is reproduced.

            chaasesunw Chet Haase (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: