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

RegTest-test javax/swing/JInternalFrame/4732229/bug4732229.java fails

    Details

    • Subcomponent:
    • Resolved In Build:
      tiger
    • CPU:
      x86
    • OS:
      windows_xp
    • Verification:
      Verified

      Description


      Name: iaR10016 Date: 05/08/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.4.2-b22
      Testbase : RegTest-test
      Platform[s] : Windows XP
      switch/Mode : -client
      Falling test[s]: javax/swing/JInternalFrame/4732229/bug4732229.java

      It seems that Regression-test test javax/swing/JInternalFrame/4732229/bug4732229.java test
      fails with JDK1.4.2 due to timing issue.
      The test stable fails with JDK1.4.2-b22 on my Windows XP machine with the following output:

      ...
      ----------System.out:(0/0)----------
      ----------System.err:(30/2053)----------
      java.lang.NullPointerException
           at javax.swing.text.JTextComponent.getSelectionStart(JTextComponent.java:1503)
           at javax.swing.text.PlainView.paint(PlainView.java:239)
           at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1319)
           at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:636)
           at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:770)
           at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:749)
           at javax.swing.JComponent.paintComponent(JComponent.java:541)
           at javax.swing.JComponent.paint(JComponent.java:808)
           at javax.swing.JComponent.paintChildren(JComponent.java:647)
           at javax.swing.JComponent.paint(JComponent.java:817)
           at javax.swing.JComponent.paintChildren(JComponent.java:647)
           at javax.swing.JComponent.paint(JComponent.java:817)
           at javax.swing.JLayeredPane.paint(JLayeredPane.java:557)
           at javax.swing.JComponent.paintChildren(JComponent.java:647)
           at javax.swing.JComponent.paint(JComponent.java:817)
           at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4795)
           at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4748)
           at javax.swing.JComponent._paintImmediately(JComponent.java:4692)
           at javax.swing.JComponent.paintImmediately(JComponent.java:4495)
           at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
           at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
           at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
           at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
           at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
           at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
           at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
           at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
           at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
      STATUS:Failed.Applet thread threw exception: java.lang.NullPointerException
      result: Failed. Execution failed: Applet thread threw exception: java.lang.NullPointerException

      test result: Failed. Execution failed: Applet thread threw exception: java.lang.NullPointerException
      ...

      I was able to reproduce the failure with JDK1.5.0-b04 on Windows 98, but it is not reproducible with
      the latest JDK1.5.0 (b06).

      Please, see also bug 4803473.

      Test source location:
      =====================
      /java/re/jdk/1.4.2/promoted/latest/ws/j2se/test/javax/swing/JInternalFrame/4732229/bug4732229.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results/mantis/b22/JInternalFrameBug/bug4732229.jtr
      /net/jtgb4u4c.sfbay/export/sail15/results/tiger/b04/regtest/win32/win98_-client_linux-17/workDir/test/javax/swing/JInternalFrame/4732229/bug4732229.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change it's variables)

      --- script start ---
      #!/bin/sh

      RESULT_DIR=`pwd`
      WORK_DIR=$RESULT_DIR/workDir/test
      REPORT_DIR=$RESULT_DIR/reportDir
      JT_HOME="h:/java/jct"
      JAVA_HOME="h:/java/jdk1.5.0/win32"
      TEST_BASE_PATH="h:/java/regtest/test"

      TESTWITH=$JAVA_HOME
      TESTJAVA=$JAVA_HOME

      JTOPTS="-client"
      TESTVMOPTS="-client"

      CLASSPATH="$JT_HOME/classes;$JT_HOME/lib/javatest.jar;$JT_HOME/lib/jtreg.jar;$JT_HOME/jemmy/jemmy.jar"

      export JAVA_HOME
      export JT_HOME
      export TESTWITH
      export CLASSPATH

      mkdir -p $WORK_DIR/scratch 2>&1
      mkdir -p $WORK_DIR/jtData 2>&1
      mkdir -p $REPORT_DIR 2>&1

      #rm $WORK_DIR/jtData/ResultCache.jtw 2>&1

      cd $WORK_DIR/scratch

      $JAVA_HOME/bin/java -cp $CLASSPATH $JTOPTS -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,windir=$windir,PATH=${SHELL%/*},CPAPPEND=$JT_HOME/jemmy/jemmy.jar,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-17" -Dprogram=jtreg com.sun.javatest.regtest.Main -a -v default -batch -params -w "$WORK_DIR" -r "$REPORT_DIR" -t "$TEST_BASE_PATH" "$TEST_BASE_PATH/javax/swing/JInternalFrame/4732229/bug4732229.java"

      --- script end ---

      Test output (jtr part):
      =======================
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:build
      ----------messages:(3/97)----------
      command: build bug4732229
      reason: Named class compiled on demand
      elapsed time (seconds): 0.0
      result: Passed. No need to compile: bug4732229.java

      #section:applet
      ----------messages:(3/123)----------
      command: applet bug4732229.html
      reason: User specified action: run applet bug4732229.html
      elapsed time (seconds): 4.17
      ----------System.out:(0/0)----------
      ----------System.err:(30/2053)----------
      java.lang.NullPointerException
           at javax.swing.text.JTextComponent.getSelectionStart(JTextComponent.java:1515)
           at javax.swing.text.PlainView.paint(PlainView.java:239)
           at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1321)
           at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:636)
           at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:770)
           at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:749)
           at javax.swing.JComponent.paintComponent(JComponent.java:541)
           at javax.swing.JComponent.paint(JComponent.java:808)
           at javax.swing.JComponent.paintChildren(JComponent.java:647)
           at javax.swing.JComponent.paint(JComponent.java:817)
           at javax.swing.JComponent.paintChildren(JComponent.java:647)
           at javax.swing.JComponent.paint(JComponent.java:817)
           at javax.swing.JLayeredPane.paint(JLayeredPane.java:557)
           at javax.swing.JComponent.paintChildren(JComponent.java:647)
           at javax.swing.JComponent.paint(JComponent.java:817)
           at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4808)
           at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4761)
           at javax.swing.JComponent._paintImmediately(JComponent.java:4705)
           at javax.swing.JComponent.paintImmediately(JComponent.java:4508)
           at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
           at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
           at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
           at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
           at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:208)
           at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:157)
           at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:151)
           at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:143)
           at java.awt.EventDispatchThread.run(EventDispatchThread.java:104)
      STATUS:Failed.Applet thread threw exception: java.lang.NullPointerException
      result: Failed. Execution failed: Applet thread threw exception: java.lang.NullPointerException

      test result: Failed. Execution failed: Applet thread threw exception: java.lang.NullPointerException

      Specific machine info:
      ======================
      Hostname: linux-17
      OS: Windows 98

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                apikalev Andrey Pikalev
                Reporter:
                irasunw Ira Ira (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: