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

Regression-test javax/swing/JEditorPane/4492274/bug4492274.java fails

XMLWordPrintable

    • b41
    • x86
    • solaris_9
    • Verified



      Name: iaR10016 Date: 11/04/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b26
                     (the test is absent in JDK1.4.2-b28)
      Testbase : Regression-test
      Platform[s] : Solaris 9 (x86) (GNOME2)
      switch/Mode : -server
      Falling test: javax/swing/JEditorPane/4492274/bug4492274.java

      Regression-test javax/swing/JEditorPane/4492274/bug4492274.java test fails with
      java.lang.ArrayIndexOutOfBoundsException or java.lang.NullPointerException 5 times from 10
      approximatelly with JDK1.5.0-b26 on Solaris 9 (x86)/Gnome2 if I run it using jtreg.

      I am not able to reproduce the failure if I just compile the test source code and run the test
      without jtreg.

      It seems like the test works with Robot incorrectly and fails because of the timing issue.

      Test source location:
      =====================
      /java/re/jdk/1.5.0/promoted/latest/ws/j2se/test/javax/swing/JEditorPane/4492274/bug4492274.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b26/regtest/x86/sol9_x86_gnome_smp_linux-6/workDir/test/javax/swing/JEditorPane/4492274/bug4492274.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

      #Paths in Java Software:
      JT_HOME="/java/re/jct-tools/3.1.2/archive/fcs/binaries"
      JEMMY_JAR="/net/jdk/export/jpse04/Jemmy/jemmy.jar"
      JAVA_HOME="/java/re/jdk/1.5.0/promoted/all/b26/binaries/solaris-i586"
      TEST_BASE_PATH="/java/re/jdk/1.5.0/promoted/all/b26/ws/j2se/test"

      #Alternative paths outside Java Software:
      #JT_HOME="/net/koori.sfbay/onestop/jct-tools/3.1.2/archive/fcs/binaries"
      #JEMMY_JAR="/net/jdk/export/jpse04/Jemmy/jemmy.jar"
      #JAVA_HOME="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b26/binaries/solaris-i586"
      #TEST_BASE_PATH="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b26/ws/j2se/test"

      #Alternative paths for the NSK site:
      #JT_HOME="/net/linux-15/export/home/java/jct"
      #JEMMY_JAR="$JT_HOME/jemmy/jemmy.jar"
      #JAVA_HOME="/net/linux-15/export/home/java/jdk1.5.0/x86"
      #TEST_BASE_PATH="/net/linux-15/export/home/java/regtest.tiger/test"

      TESTVMOPTS="-server"
      CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar"
      TEST="javax/swing/JEditorPane/4492274/bug4492274.java"

      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 -server -cp $CLASSPATH -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,CPAPPEND=$JEMMY_JAR,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-6" -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/$TEST"
      --- script end ---

      Test output (jtr part):
      =======================
      #section:applet
      ----------messages:(3/121)----------
      command: applet bug4492274.html
      reason: User specified action: run applet bug4492274.html
      elapsed time (seconds): 5.817
      ----------System.out:(0/0)----------
      ----------System.err:(38/2360)----------
      java.lang.ArrayIndexOutOfBoundsException
           at java.lang.System.arraycopy(Native Method)
           at javax.swing.text.BoxView.updateLayoutArray(BoxView.java:196)
           at javax.swing.text.BoxView.replace(BoxView.java:169)
           at javax.swing.text.View.append(View.java:432)
           at javax.swing.text.FlowView$FlowStrategy.layout(FlowView.java:404)
           at javax.swing.text.FlowView.layout(FlowView.java:182)
           at javax.swing.text.BoxView.setSize(BoxView.java:379)
           at javax.swing.text.BoxView.updateChildSizes(BoxView.java:348)
           at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:330)
           at javax.swing.text.BoxView.layout(BoxView.java:682)
           at javax.swing.text.BoxView.setSize(BoxView.java:379)
           at javax.swing.text.BoxView.updateChildSizes(BoxView.java:348)
           at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:330)
           at javax.swing.text.BoxView.layout(BoxView.java:682)
           at javax.swing.text.BoxView.setSize(BoxView.java:379)
           at javax.swing.plaf.basic.BasicTextUI$RootView.setSize(BasicTextUI.java:1618)
           at javax.swing.plaf.basic.BasicTextUI.getPreferredSize(BasicTextUI.java:811)
           at javax.swing.JComponent.getPreferredSize(JComponent.java:1523)
           at javax.swing.JEditorPane.getPreferredSize(JEditorPane.java:1220)
           at javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:769)
           at java.awt.Container.layout(Container.java:1396)
           at java.awt.Container.doLayout(Container.java:1386)
           at java.awt.Container.validateTree(Container.java:1468)
           at java.awt.Container.validateTree(Container.java:1475)
           at java.awt.Container.validateTree(Container.java:1475)
           at java.awt.Container.validateTree(Container.java:1475)
           at java.awt.Container.validateTree(Container.java:1475)
           at java.awt.Container.validate(Container.java:1443)
           at java.awt.Window.dispatchEventImpl(Window.java:1744)
           at java.awt.Component.dispatchEvent(Component.java:3777)
           at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
           at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:214)
           at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
           at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
           at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
           at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
      STATUS:Failed.Applet thread threw exception: java.lang.ArrayIndexOutOfBoundsException
      result: Failed. Execution failed: Applet thread threw exception: java.lang.ArrayIndexOutOfBoundsException

      ---------

      #section:applet
      ----------messages:(3/119)----------
      command: applet bug4492274.html
      reason: User specified action: run applet bug4492274.html
      elapsed time (seconds): 5.9
      ----------System.out:(0/0)----------
      ----------System.err:(35/2198)----------
      java.lang.NullPointerException
           at javax.swing.text.FlowView$FlowStrategy.layoutRow(FlowView.java:466)
           at javax.swing.text.FlowView$FlowStrategy.layout(FlowView.java:408)
           at javax.swing.text.FlowView.layout(FlowView.java:182)
           at javax.swing.text.BoxView.setSize(BoxView.java:379)
           at javax.swing.text.BoxView.updateChildSizes(BoxView.java:348)
           at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:330)
           at javax.swing.text.BoxView.layout(BoxView.java:682)
           at javax.swing.text.BoxView.setSize(BoxView.java:379)
           at javax.swing.text.BoxView.updateChildSizes(BoxView.java:348)
           at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:330)
           at javax.swing.text.BoxView.layout(BoxView.java:682)
           at javax.swing.text.BoxView.setSize(BoxView.java:379)
           at javax.swing.plaf.basic.BasicTextUI$RootView.setSize(BasicTextUI.java:1618)
           at javax.swing.plaf.basic.BasicTextUI.getPreferredSize(BasicTextUI.java:811)
           at javax.swing.JComponent.getPreferredSize(JComponent.java:1523)
           at javax.swing.JEditorPane.getPreferredSize(JEditorPane.java:1220)
           at javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:769)
           at java.awt.Container.layout(Container.java:1396)
           at java.awt.Container.doLayout(Container.java:1386)
           at java.awt.Container.validateTree(Container.java:1468)
           at java.awt.Container.validateTree(Container.java:1475)
           at java.awt.Container.validateTree(Container.java:1475)
           at java.awt.Container.validateTree(Container.java:1475)
           at java.awt.Container.validateTree(Container.java:1475)
           at java.awt.Container.validate(Container.java:1443)
           at java.awt.Window.dispatchEventImpl(Window.java:1744)
           at java.awt.Component.dispatchEvent(Component.java:3777)
           at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
           at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:214)
           at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
           at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
           at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
           at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
      STATUS:Failed.Applet thread threw exception: java.lang.NullPointerException
      result: Failed. Execution failed: Applet thread threw exception: java.lang.NullPointerException

      Specific machine info:
      ======================
      Hostname: linux-6
      OS: Solaris 9 (x86) (GNOME2)

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

            sdvsunw Sdv Sdv (Inactive)
            irasunw Ira Ira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: