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

TEST_BUG: RegTest javax/swing/text/View/4353673/bug4353673.java failed, Win32

XMLWordPrintable

    • b28
    • x86
    • windows_98, windows_2000, windows_xp
    • Verified

      Name: aaR10208 Date: 03/31/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.4.2-b19
      Testbase : RegTest-test
      Platform[s] : Windows 98, Windows XP Pro
      switch/Mode : -client, -server
      Falling test[s]: javax/swing/text/View/4353673/bug4353673.java

      Regression test javax/swing/text/View/4353673/bug4353673.java test fails on Windows boxes
      with an "ArrayIndexOutOfBoundsException: No such child: 0".
      This seems like a timing issue: the test passes if ran manually (without JavaTest/jtreg).


      Test source location:
      =====================
      /java/re/jdk/1.4.2/promoted/latest/ws/j2se/test/javax/swing/text/View/4353673/bug4353673.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results/mantis/b19/regtest/win32/winXP_PRO_-server_smp_linux-16/workDir/test/javax/swing/text/View/4353673/bug4353673.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change its 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.4.2/win32"
      TEST_BASE_PATH="h:/java/regtest/test"

      TESTWITH=$JAVA_HOME
      TESTJAVA=$JAVA_HOME

      JTOPTS="-server"
      TESTVMOPTS="-server"

      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-16" -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/text/View/4353673/bug4353673.java"

      --- script end ---

      Test output (jtr part):
      =======================
      ----------System.out:(0/0)----------
      ----------System.err:(40/2863)----------
      java.lang.ArrayIndexOutOfBoundsException: No such child: 0
      at java.awt.Container.getComponent(Container.java:237)
      at javax.swing.text.ComponentView$Invalidator.cacheChildSizes(ComponentView.java:399)
      at javax.swing.text.ComponentView$Invalidator.doLayout(ComponentView.java:383)
      at java.awt.Container.validateTree(Container.java:1092)
      at java.awt.Container.validate(Container.java:1067)
      at javax.swing.text.ComponentView$Invalidator.validateIfNecessary(ComponentView.java:394)
      at javax.swing.text.ComponentView$Invalidator.getAlignmentY(ComponentView.java:442)
      at javax.swing.text.ComponentView.getAlignment(ComponentView.java:203)
      at javax.swing.text.BoxView.baselineRequirements(BoxView.java:1000)
      at javax.swing.text.ParagraphView$Row.calculateMinorAxisRequirements(ParagraphView.java:843)
      at javax.swing.text.BoxView.checkRequests(BoxView.java:913)
      at javax.swing.text.BoxView.getMinimumSpan(BoxView.java:542)
      at javax.swing.text.BoxView.calculateMajorAxisRequirements(BoxView.java:849)
      at javax.swing.text.BoxView.checkRequests(BoxView.java:908)
      at javax.swing.text.BoxView.getMinimumSpan(BoxView.java:542)
      at javax.swing.text.BoxView.calculateMajorAxisRequirements(BoxView.java:849)
      at javax.swing.text.BoxView.checkRequests(BoxView.java:908)
      at javax.swing.text.BoxView.getPreferredSpan(BoxView.java:519)
      at javax.swing.plaf.basic.BasicTextUI$RootView.getPreferredSpan(BasicTextUI.java:1238)
      at javax.swing.plaf.basic.BasicTextUI.getPreferredSize(BasicTextUI.java:810)
      at javax.swing.JComponent.getPreferredSize(JComponent.java:1275)
      at javax.swing.JEditorPane.getPreferredSize(JEditorPane.java:1212)
      at java.awt.BorderLayout.layoutContainer(BorderLayout.java:668)
      at java.awt.Container.layout(Container.java:1020)
      at java.awt.Container.doLayout(Container.java:1010)
      at java.awt.Container.validateTree(Container.java:1092)
      at java.awt.Container.validateTree(Container.java:1099)
      at java.awt.Container.validateTree(Container.java:1099)
      at java.awt.Container.validate(Container.java:1067)
      at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:353)
      at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:116)
      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.`main' threw exception: java.lang.ArrayIndexOutOfBoundsException: No such child: 0
      result: Failed. Execution failed: `main' threw exception: java.lang.ArrayIndexOutOfBoundsException: No such child: 0


      test result: Failed. Execution failed: `main' threw exception: java.lang.ArrayIndexOutOfBoundsException: No such child: 0


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


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

            peterz Peter Zhelezniakov
            sundrsunw Sundr Sundr (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: