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

JCK tests fail with spurious NullPointerException with JIT

XMLWordPrintable

    • jit
    • sparc
    • solaris_2.5.1



      Name: akC57697 Date: 10/05/98



         JCK tests may fail with JIT's spurious NullPointerExceptions.
        
         The statistics says at least one of JCK Swing tests fails
       with such NPE in slave JVM in master-slave run. The example of
       NPE stack trace you may see below. Moreover, this JIT NPE failure
       depends on:

      1.The cpu load of the station where tests are executing.
         The high load reduces possibility of failure, for example:
          a) "-trace" option for Slave
          b) or "trace" option of JIT (JIT_ARGS)
             It maybe not reproducible at all in this case.
             
      2. How many tests have been executed in the JVM of MasterSlave before.

         It shows some "accumulated" reason of this bug.
         The set of JCK swing tests is enough for reproduce at least one
         failure.
         
      3. The speed to access class-files.
          The access for class-files located on fast local filesystem reduce
          possibility of the failure.
          
      4. The failure becomes reproducible in this run, i.e
         repeating of the test causes the same failure.
         
         
         Failed on Solaris 2.5.1 w/o patch.
         Not reproducible under Solaris 2.6
         Not tested under patched Solaris 2.6
       
         Unfortunatelly the minimal test extends to 411 sub-tests invokations
         that is not easier than JCK swing run in same Slave JVM.
         
      java full version "JDK-1.2fcs-L"
      --------------------------------------------------------
      #Test Results
      #Mon Oct 05 12:35:25 GMT 1998
      testsuite=/set/java-sqe/jck12-a-int/tests
      source=getsetTests.java
      executeClass=javasoft.sqe.tests.api.javax.swing.UIManager.getsetTests
      title=UIManager getXXXX and setXXXX tests
      status=Failed. tests: 10; passed: 6; failed: 4; first test case failure: UIManager2008
      work=/home/kuzm/results/api/javax_swing/UIManager
      execStatus=Failed. tests: 10; passed: 6; failed: 4; first test case failure: UIManager2008
      description=file:/set/java-sqe/jck12-a-int/tests/api/javax_swing/UIManager/manual.html#getset
      id=getset
      javatestVersion=JT_2.0_ze
      sections=testExecute testExecute
      file=/set/java-sqe/jck12-a-int/tests/api/javax_swing/UIManager/manual.html
      end=Mon Oct 05 12:35:25 GMT 1998
      start=Mon Oct 05 12:35:23 GMT 1998
      keywords=javax positive runtime swing
      environment=jck-runtime-slave
      executeArgs=-TestCaseID ALL

      test: api/javax_swing/UIManager/manual.html#getset
      script: javasoft.sqe.javatest.lib.JCKScript -runtime
      Executing test class...
      command: javasoft.sqe.javatest.lib.SlaveCommand -tag file:/set/java-sqe/jck12-a-int/tests/api/javax_swing/UIManager/manual.html#getset -mapArgs javasoft.sqe.javatest.lib.ExecJCKTestSameJVMCmd javasoft.sqe.tests.api.javax.swing.UIManager.getsetTests -TestCaseID ALL
      ----------ref:testExecute(71/4890)----------
      ====== UIManager2002 ====== public static void put(Object,Object) and public static Object get(Object)
      ====== UIManager2003 ====== public static Color getColor(Object)
      ====== UIManager2004 ====== public static Color getBorder(Object)
      ====== UIManager2005 ====== public static Font getFont(Object)
      ====== UIManager2006 ====== public static String getString(Object)
      ====== UIManager2007 ====== public static Icon getIcon(Object)
      ====== UIManager2008 ====== public static AbstractLookAndFeel getLookAndFeel() and public static void setLookAndFeel(AbstractLookAndFeel)
      java.lang.reflect.InvocationTargetException: java.lang.NullPointerException
      at javax.swing.plaf.basic.BasicLookAndFeel.initComponentDefaults(Compiled Code)
      at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(Compiled Code)
      at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(Compiled Code)
      at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(Compiled Code)
      at javax.swing.UIManager.setLookAndFeel(Compiled Code)
      at javasoft.sqe.tests.api.javax.swing.UIManager.getsetTests.UIManager2008(Compiled Code)
      at java.lang.reflect.Method.invoke(Native Method)
      at javasoft.sqe.jck.lib.MultiTest.run(Compiled Code)
      at javasoft.sqe.javatest.lib.ExecJCKTestSameJVMCmd.executeOldTest(Compiled Code)
      at javasoft.sqe.javatest.lib.ExecJCKTestSameJVMCmd.run(Compiled Code)
      at javasoft.sqe.javatest.SlaveThread.executeCommand(Compiled Code)
      at javasoft.sqe.javatest.SlaveThread.handleRequest(Compiled Code)
      at javasoft.sqe.javatest.SlaveThread.run(Compiled Code)
      ====== UIManager2009 ====== public static synchronized void addPropertyChangeListener(PropertyChangeListener listener)
      java.lang.reflect.InvocationTargetException: java.lang.NullPointerException
      at javax.swing.plaf.basic.BasicLookAndFeel.initComponentDefaults(Compiled Code)
      at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(Compiled Code)
      at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(Compiled Code)
      at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(Compiled Code)
      at javax.swing.UIManager.setLookAndFeel(Compiled Code)
      at javasoft.sqe.tests.api.javax.swing.UIManager.getsetTests.UIManager2009(Compiled Code)
      at java.lang.reflect.Method.invoke(Native Method)
      at javasoft.sqe.jck.lib.MultiTest.run(Compiled Code)
      at javasoft.sqe.javatest.lib.ExecJCKTestSameJVMCmd.executeOldTest(Compiled Code)
      at javasoft.sqe.javatest.lib.ExecJCKTestSameJVMCmd.run(Compiled Code)
      at javasoft.sqe.javatest.SlaveThread.executeCommand(Compiled Code)
      at javasoft.sqe.javatest.SlaveThread.handleRequest(Compiled Code)
      at javasoft.sqe.javatest.SlaveThread.run(Compiled Code)
      ====== UIManager2010 ====== public static synchronized void removePropertyChangeListener(PropertyChangeListener listener)
      java.lang.reflect.InvocationTargetException: java.lang.NullPointerException
      at javax.swing.plaf.basic.BasicLookAndFeel.initComponentDefaults(Compiled Code)
      at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(Compiled Code)
      at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(Compiled Code)
      at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(Compiled Code)
      at javax.swing.UIManager.setLookAndFeel(Compiled Code)
      at javasoft.sqe.tests.api.javax.swing.UIManager.getsetTests.UIManager2010(Compiled Code)
      at java.lang.reflect.Method.invoke(Native Method)
      at javasoft.sqe.jck.lib.MultiTest.run(Compiled Code)
      at javasoft.sqe.javatest.lib.ExecJCKTestSameJVMCmd.executeOldTest(Compiled Code)
      at javasoft.sqe.javatest.lib.ExecJCKTestSameJVMCmd.run(Compiled Code)
      at javasoft.sqe.javatest.SlaveThread.executeCommand(Compiled Code)
      at javasoft.sqe.javatest.SlaveThread.handleRequest(Compiled Code)
      at javasoft.sqe.javatest.SlaveThread.run(Compiled Code)
      ====== UIManager2011 ====== public Class getUI(JComponent)
      java.lang.reflect.InvocationTargetException: java.lang.NullPointerException
      at java.util.Hashtable.get(Compiled Code)
      at javax.swing.UIDefaults.get(Compiled Code)
      at javax.swing.MultiUIDefaults.get(Compiled Code)
      at javax.swing.UIDefaults.getUIClass(Compiled Code)
      at javax.swing.UIDefaults.getUI(Compiled Code)
      at javax.swing.UIManager.getUI(Compiled Code)
      at javax.swing.JButton.updateUI(Compiled Code)
      at javax.swing.AbstractButton.init(Compiled Code)
      at javax.swing.JButton.<init>(Compiled Code)
      at javax.swing.JButton.<init>(Compiled Code)
      at javasoft.sqe.tests.api.javax.swing.UIManager.getsetTests.UIManager2011(Compiled Code)
      at java.lang.reflect.Method.invoke(Native Method)
      at javasoft.sqe.jck.lib.MultiTest.run(Compiled Code)
      at javasoft.sqe.javatest.lib.ExecJCKTestSameJVMCmd.executeOldTest(Compiled Code)
      at javasoft.sqe.javatest.lib.ExecJCKTestSameJVMCmd.run(Compiled Code)
      at javasoft.sqe.javatest.SlaveThread.executeCommand(Compiled Code)
      at javasoft.sqe.javatest.SlaveThread.handleRequest(Compiled Code)
      at javasoft.sqe.javatest.SlaveThread.run(Compiled Code)
      ----------log:testExecute(71/4383)----------
      UIManager2002: Passed. OKAY
      UIManager2003: Passed. OKAY
      UIManager2004: Passed. OKAY
      UIManager2005: Passed. OKAY
      UIManager2006: Passed. OKAY
      UIManager2007: Passed. OKAY
      UIManager2008: Failed. Test case throws unexpected exception: java.lang.NullPointerException
      UIManager2009: Failed. Test case throws unexpected exception: java.lang.NullPointerException
      UIManager2010: Failed. Test case throws unexpected exception: java.lang.NullPointerException
      UIManager2011: Failed. Test case throws unexpected exception: java.lang.NullPointerException
      command result: Failed. tests: 10; passed: 6; failed: 4; first test case failure: UIManager2008
      test result: Failed. tests: 10; passed: 6; failed: 4; first test case failure: UIManager2008
      --------------------------------------------------------
         
      ======================================================================

            never Tom Rodriguez
            akuzminorcl Alexander Kuzmin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: