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

REGRESSION: 3 TCK1.2-JNLP tests fail since Tiger-b16

    XMLWordPrintable

    Details

      Description



      Name: vsR10238 Date: 09/17/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JRE1.5.0-(b16-b19)
      Testbase : TCK1.2-JNLP
      Platform[s] : Solaris 8 (x86) (CDE)
      switch/Mode : JaWS
      Falling test[s]:
               api/javax_jnlp/FileSaveService/index.html#interactive [FileSaveService2001]
               api/javax_jnlp/FileOpenService/index.html#openMultiFile [FileOpenService0002]
               api/javax_jnlp/FileOpenService/index.html#openFile [FileOpenService0001]

      3 interactive TCK1.2-JNLP tests fail with JRE1.5.0 (as well as JDK1.5.0) starting from b16.

      I can see some changes made in PLaF for b16:
      javax/swing/plaf/metal/icons/ocean directory and javax/swing/plaf/metal/OceanTheme.class appeared.

      The NullPointerException is thrown when

      javax.swing.plaf.metal.OceanTheme$LazyIcon.createValue(OceanTheme.java:255):

                   if (type == 0) {
                       location = getClass().getResource("icons/ocean/" +
                                                         iconID + ".gif");
                   }
                   else {
                       location = getClass().getResource("icons/ocean/" +
                                                         iconID + ".png");
                   }
                   return new ImageIcon(location);


      is called from javax.swing.plaf.basic.BasicInternalFrameTitlePane.installDefaults(BasicInternalFrameTitlePane.java:147):

               maxIcon = UIManager.getIcon("InternalFrame.maximizeIcon");

      and location seems to be null.

      Please see the provided stack trace for details.

      Test source location:
      =====================
      /net/jdk/export/disk8/local.java/tckjnlp/tests/api/javax_jnlp/FileSaveService/interactiveTests.java
      /net/jdk/export/disk8/local.java/tckjnlp/tests/api/javax_jnlp/FileOpenService/openMultiFileTests.java
      /net/jdk/export/disk8/local.java/tckjnlp/tests/api/javax_jnlp/FileOpenService/openFileTests.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b19/tckjnlp/x86/sol8_x86_cde_client_JaWS_linux-10/workDir/interactive/api/javax_jnlp/FileSaveService/index_interactive.jtr
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b19/tckjnlp/x86/sol8_x86_cde_client_JaWS_linux-10/workDir/interactive/api/javax_jnlp/FileOpenService/index_openMultiFile.jtr
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b19/tckjnlp/x86/sol8_x86_cde_client_JaWS_linux-10/workDir/interactive/api/javax_jnlp/FileOpenService/index_openFile.jtr

      How to reproduce:
      =================
      1) Install jre1.5.0-b19
      2) Run api/javax_jnlp/FileSaveService/index.html#interactive using JavaTest harness for the TCK-JNLP test suite.

      No dialog window appears when you click the "Click this button to continue".

      Test output (jtr part):
      =======================

      tests: 1; failed: 1; first test case failure: FileSaveService2001
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at com.sun.tck.jnlp.lib.JNLPTest.invokeTestCase(JNLPTest.java:362)
      at com.sun.tck.jnlp.lib.JNLPTest.multiTestRun(JNLPTest.java:241)
      at com.sun.tck.jnlp.lib.JNLPTest.run(JNLPTest.java:129)
      at com.sun.tck.jnlp.lib.JNLPTest.run(JNLPTest.java:179)
      at javasoft.sqe.tests.api.javax.jnlp.FileSaveService.interactiveTests.main(interactiveTests.java:56)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at com.sun.javaws.Launcher.executeApplication(Launcher.java:985)
      at com.sun.javaws.Launcher.executeMainClass(Launcher.java:940)
      at com.sun.javaws.Launcher.continueLaunch(Launcher.java:800)
      at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:509)
      at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:257)
      at com.sun.javaws.Launcher.run(Launcher.java:177)
      at java.lang.Thread.run(Thread.java:549)
      Caused by: java.lang.NullPointerException
      at javax.swing.ImageIcon.<init>(ImageIcon.java:138)
      at javax.swing.plaf.metal.OceanTheme$LazyIcon.createValue(OceanTheme.java:255)
      at javax.swing.UIDefaults.getFromHashtable(UIDefaults.java:184)
      at javax.swing.UIDefaults.get(UIDefaults.java:129)
      at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java:44)
      at javax.swing.UIDefaults.getIcon(UIDefaults.java:410)
      at javax.swing.UIManager.getIcon(UIManager.java:558)
      at javax.swing.plaf.basic.BasicInternalFrameTitlePane.installDefaults(BasicInternalFrameTitlePane.java:147)
      at javax.swing.plaf.metal.MetalInternalFrameTitlePane.installDefaults(MetalInternalFrameTitlePane.java:93)
      at javax.swing.plaf.basic.BasicInternalFrameTitlePane.installTitlePane(BasicInternalFrameTitlePane.java:96)
      at javax.swing.plaf.basic.BasicInternalFrameTitlePane.<init>(BasicInternalFrameTitlePane.java:92)
      at javax.swing.plaf.metal.MetalInternalFrameTitlePane.<init>(MetalInternalFrameTitlePane.java:80)
      at javax.swing.plaf.metal.MetalInternalFrameUI.createNorthPane(MetalInternalFrameUI.java:120)
      at javax.swing.plaf.basic.BasicInternalFrameUI.installComponents(BasicInternalFrameUI.java:171)
      at javax.swing.plaf.basic.BasicInternalFrameUI.installUI(BasicInternalFrameUI.java:88)
      at javax.swing.plaf.metal.MetalInternalFrameUI.installUI(MetalInternalFrameUI.java:54)
      at javax.swing.JComponent.setUI(JComponent.java:600)
      at javax.swing.JInternalFrame.setUI(JInternalFrame.java:326)
      at javax.swing.JInternalFrame.updateUI(JInternalFrame.java:342)
      at javax.swing.JInternalFrame.<init>(JInternalFrame.java:290)
      at javasoft.sqe.tests.api.javax.jnlp.FileSaveService.MyDocument.<init>(interactiveTests.java:256)
      at javasoft.sqe.tests.api.javax.jnlp.FileSaveService.interactiveTests.FileSaveService2001(interactiveTests.java:88)
      ... 20 more
      FileSaveService2001: Failed. Test case throws exception: java.lang.NullPointerException




      Specific machine info:
      ======================
      Hostname: linux-10
      OS: Solaris 8 (x86) (CDE)



      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            svioletsunw Scott Violet (Inactive)
            Reporter:
            vshsunw Vsh Vsh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: