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

NullPointerException thrown on launching applets

XMLWordPrintable

    • b13
    • x86
    • linux

        OPERATING SYSTEM(S):
        Linux

        FULL JDK VERSION(S):
        java version "1.6.0_04"
        Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
        Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode)

        DESCRIPTION:
        Testcase launches applets from demo folder.Tested with mozilla seamonkey 1.0.3.

        STEPS TO REPRODUCE:

        1. Install the sdk rpm.
        2. Link the plugin with the browser, cd to firefox/plugins directory and execute the below command:
        >>ln -s ~/jdk6_04/jre/plugin/i386/ns7/libjavaplugin_oji.so .
        3. Enable java console
               a) Launch the control panel by executing the command : >> ~/jdk6_04/jre/bin/ControlPanel
               b) Go to Advanced tab - > Java Console and select show console radio button.
        4. Launch the applets from demo folder,in the browser

        The following exception is thrown in the java console.

        Exception in thread "Thread-17" java.lang.NullPointerException
        at sun.plugin.util.AnimationPanel.createTranslucentImage(AnimationPanel.java:231)
        at sun.plugin.util.AnimationPanel.createGradientShapeImage(AnimationPanel.java:243)
        at sun.plugin.util.AnimationPanel.initBackground(AnimationPanel.java:343)
        at sun.plugin.util.AnimationPanel.preloadResources(AnimationPanel.java:508)
        at sun.plugin.util.AnimationPanel.doPaint(AnimationPanel.java:564)
        at sun.plugin.util.AnimationPanel.run(AnimationPanel.java:1062)
        at java.lang.Thread.run(Thread.java:619)

        The problem is intermittent.

        Expected Result:
        The exception should not be thrown.

        Observed Result:
        Intermittent problem exception is thrown in the java console.

              hdongorcl Hao Dong (Inactive)
              elarsen Erik Larsen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: