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

java.lang.NullPointerException thrown when loading applets

XMLWordPrintable

    • 2d
    • generic
    • windows_xp


      Tested Platform: Win-XP/win2000
      Tested build: j2sdk1.5.0-b15 (SWAT build)
      at:
      /net/mizu.sfbay/usr/re/jdk1.5.0/bundles/windows-i586/latest/j2sdk-1_5_0-beta-bin-b15-windows-i586-13_aug_2003.exe


      Steps to reproduce:

      1) Install j2sdk1.5.0-b15 (SWAT build) at
      /net/mizu.sfbay/usr/re/jdk1.5.0/bundles/windows-i586/latest/j2sdk-1_5_0-beta-bin-b15-windows-i586-13_aug_2003.exe

      2) Be sure to enable Java Console
      from Start->Settings->Control panel->Java Plugin->Advanced (tab) ->Java console
      and select"Show Console" option

      3) Using IE or NS browser to run any demo applet bundled with j2sdk1.5.0 installed above.
      let's say:
      C:\j2sdk1.5.0\demo\plugin\applets\Blink\example1.html


      The applet loads fine in the browser but the excetion thrown in the Java Console as the following:

      java.lang.NullPointerException at java.awt.image.BufferedImage.flush(BufferedImage.java:1022) at sun.plugin.AppletViewer.paintForegrnd(AppletViewer.java:1764) at sun.plugin.AppletViewer.paint(AppletViewer.java:1642) at sun.awt.RepaintArea.paintComponent(RepaintArea.java:201) at sun.awt.RepaintArea.paint(RepaintArea.java:177) at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:244) at java.awt.Component.dispatchEventImpl(Component.java:3975) at java.awt.Container.dispatchEventImpl(Container.java:1962) at java.awt.Component.dispatchEvent(Component.java:3750) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:214) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)



      Every time, user run another applet, this exception is thrown over and over again

      Note: This is a regression. It passes on the same machine using promoted j2sdk1.5.0-b14

      It also seems to occur on solaris as well.




            Unassigned Unassigned
            hungnguy Hung Nguyen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: