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

REGRESSION: Regression-cte CTE_REGTEST/Generic/4228340/Bug4228340.java fails

    Details

    • Subcomponent:
    • Resolved In Build:
      b28
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description



      Name: mmR10223 Date: 10/06/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b22
      Testbase : Regression-cte
      Platform[s] : all
      switch/Mode : default
      Falling test[s]: CTE_REGTEST/Generic/4228340/Bug4228340.java

      This test passes using JDK1.5.0-b21, JDK1.4.2-b28 on all platforms

      Test source location:
      =====================
      /net/jdk/export/jpse04/Regression/1.5.0/test/CTE_REGTEST/Generic/4228340/Bug4228340.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b22/regtest/sparc/sol9_sparc_gnome_novo48/workDir/cte/CTE_REGTEST/Generic/4228340/Bug4228340.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

      #KOORI_ONESTOP is your path to koori.sfbay/onestop (/net/koori/onestop, /java/re)
      KOORI_ONESTOP="/java/re"
      #JPSE04 is your path to /net/jdk/export/jpse04
      JPSE04="/net/jdk/export/jpse04"

      #JT_HOME="/net/linux-15/export/home/java/jct"
      JT_HOME="$KOORI_ONESTOP/jct-tools/3.1.2/archive/fcs/binaries"
      #JEMMY_JAR="$JT_HOME/jemmy/jemmy.jar"
      JEMMY_JAR="$JPSE04/Jemmy/jemmy.jar"
      #JAVA_HOME="/net/linux-15/export/home/java/jdk1.5.0/sparc"
      JAVA_HOME="$KOORI_ONESTOP/jdk/1.5.0/promoted/all/b22/binaries/solaris-sparc"

      #TEST_BASE_PATH="/net/linux-15/export/home/java/regtest.tiger/cte"
      TEST_BASE_PATH="$JPSE04/Regression/1.5.0/test"


      TESTVMOPTS="-client"
      CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar"

      TEST="CTE_REGTEST/Generic/4228340/Bug4228340.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="novo48" -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 ---

      Script output:
      ==============

      Test output (jtr part):
      =======================
      ----------System.out:(0/0)----------
      ----------System.err:(1/35)----------
      java full version "1.5.0-beta-b22"
      result: Passed. Execution successful

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

      #section:main
      ----------messages:(3/110)----------
      command: main Test4228340
      reason: User specified action: run main Test4228340
      elapsed time (seconds): 11.672
      ----------System.out:(205/8186)*----------
      Trace:
      Start to wait frame "Any java.awt.Frame" opened
      Trace:
      Frame "Any java.awt.Frame" has been opened in 5 milliseconds
          javax.swing.JFrame[frame0,0,26,500x600,invalid,layout=java.awt.BorderLayout,title=Test Object Editor,resizable,normal,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[,5,18,489x576,invalid,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=449,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]
      Trace:
      Start to wait action "Wait Any javax.swing.JEditorPane loaded"
      Trace:
      "Wait Any javax.swing.JEditorPane loaded" action has been produced in 7 milliseconds with result
          : javax.swing.JEditorPane[,0,0,487x538,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=javax.swing.border.EtchedBorder@1c1c92b,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource[r=255,g=0,b=0],disabledTextColor=javax.swing.plaf.ColorUIResource[r=128,g=128,b=128],editable=true,margin=javax.swing.plaf.InsetsUIResource[top=3,left=3,bottom=3,right=3],selectedTextColor=javax.swing.plaf.ColorUIResource[r=255,g=247,b=233],selectionColor=javax.swing.plaf.ColorUIResource[r=192,g=192,b=192],kit=javax.swing.text.html.HTMLEditorKit@1dafbaf,typeHandlers=]
      Put caret before 0'th instance of "how are" text
      Find any"how are" text in text component
          : javax.swing.JEditorPane[,0,0,487x538,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=javax.swing.border.EtchedBorder@1c1c92b,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource[r=255,g=0,b=0],disabledTextColor=javax.swing.plaf.ColorUIResource[r=128,g=128,b=128],editable=true,margin=javax.swing.plaf.InsetsUIResource[top=3,left=3,bottom=3,right=3],selectedTextColor=javax.swing.plaf.ColorUIResource[r=255,g=247,b=233],selectionColor=javax.swing.plaf.ColorUIResource[r=192,g=192,b=192],kit=javax.swing.text.html.HTMLEditorKit@1dafbaf,typeHandlers=]
      Change caret position to 10
      Wait caret to be at "10 position in component
          : javax.swing.JEditorPane[,0,0,487x538,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=javax.swing.border.EtchedBorder@1c1c92b,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource[r=255,g=0,b=0],disabledTextColor=javax.swing.plaf.ColorUIResource[r=128,g=128,b=128],editable=true,margin=javax.swing.plaf.InsetsUIResource[top=3,left=3,bottom=3,right=3],selectedTextColor=javax.swing.plaf.ColorUIResource[r=255,g=247,b=233],selectionColor=javax.swing.plaf.ColorUIResource[r=192,g=192,b=192],kit=javax.swing.text.html.HTMLEditorKit@1dafbaf,typeHandlers=]
      Typing text "Hello, " from 10 position in text component
          : javax.swing.JEditorPane[,0,0,487x538,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=javax.swing.border.EtchedBorder@1c1c92b,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource[r=255,g=0,b=0],disabledTextColor=javax.swing.plaf.ColorUIResource[r=128,g=128,b=128],editable=true,margin=javax.swing.plaf.InsetsUIResource[top=3,left=3,bottom=3,right=3],selectedTextColor=javax.swing.plaf.ColorUIResource[r=255,g=247,b=233],selectionColor=javax.swing.plaf.ColorUIResource[r=192,g=192,b=192],kit=javax.swing.text.html.HTMLEditorKit@1dafbaf,typeHandlers=]
      Wait "Hello, " text starting from -1 position in component
          : javax.swing.JEditorPane[,0,0,487x538,invalid,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=javax.swing.border.EtchedBorder@1c1c92b,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource[r=255,g=0,b=0],disabledTextColor=javax.swing.plaf.ColorUIResource[r=128,g=128,b=128],editable=true,margin=javax.swing.plaf.InsetsUIResource[top=3,left=3,bottom=3,right=3],selectedTextColor=javax.swing.plaf.ColorUIResource[r=255,g=247,b=233],selectionColor=javax.swing.plaf.ColorUIResource[r=192,g=192,b=192],kit=javax.swing.text.html.HTMLEditorKit@1dafbaf,typeHandlers=]
      Trace:
      Start to wait action "Wait AbstractButton with text "Dump HTML" loaded"
      Trace:
      "Wait AbstractButton with text "Dump HTML" loaded" action has been produced in 3 milliseconds with result
          : javax.swing.JButton[,0,0,489x36,alignmentX=0.0,alignmentY=0.5,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@ad157f,flags=288,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=4,bottom=2,right=4],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=false,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=Dump HTML,defaultCapable=true]
      Push button
          :javax.swing.JButton[,0,0,489x36,alignmentX=0.0,alignmentY=0.5,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@ad157f,flags=288,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=4,bottom=2,right=4],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=false,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=Dump HTML,defaultCapable=true]
      Trying to write out the HTML length is 277
      <html
        name=html
      >
        <head
          name=head
        >
          <p-implied
            name=p-implied
          >
            <title
              name=title
            >
              [0,1][ ]
            <title
              endtag=true
              name=title
            >
              [1,2][ ]
            <content
              CR=true
              name=content
            >
              [2,3][
      ]
        <body
          name=body
        >
          <p-implied
            name=p-implied
          >
            <content
              name=content
            >
              [3,5][hi]
            <br
              name=br
              BR=true
            >
              [5,6][ ]
            <content
              name=content
            >
              [6,9][you]
            <br
              name=br
              BR=true
            >
              [9,10][ ]
            <content
              name=content
              BR=true
            >
              [10,17][Hello, ]
            <content
              name=content
            >
              [17,29][how are you?]
            <br
              name=br
              BR=true
            >
              [29,30][ ]
            <content
              name=content
            >
              [30,31][\u00a0]
            <content
              CR=true
              name=content
            >
              [31,32][
      ]
          <p
            name=p
          >
            <content
              name=content
            >
              [32,90][________________________________________...]
            <br
              name=br
              BR=true
            >
              [90,91][ ]
            <content
              name=content
            >
              [91,92][\u00a0]
            <content
              CR=true
              name=content
            >
              [92,93][
      ]
          <h1
            name=h1
          >
            <content
              color=#3333FF
              font=color=#3333FF
              name=content
            >
              [93,107][Instructions :]
            <content
              CR=true
              name=content
            >
              [107,108][
      ]
          <p-implied
            name=p-implied
          >
            <br
              name=br
              BR=true
            >
              [108,109][ ]
            <content
              color=#000000
              font=color=#000000
              name=content
            >
              [109,143][Complete the test within 2 minutes]
            <br
              name=br
              BR=true
            >
              [143,144][ ]
            <br
              name=br
              BR=true
            >
              [144,145][ ]
            <content
              color=#000000
              font=color=#000000
              name=content
            >
              [145,188][1. Click before the text 'how' in 3rd li...]
            <br
              name=br
              BR=true
            >
              [188,189][ ]
            <content
              color=#000000
              font=color=#000000
              name=content
            >
              [189,244][2. Type 'Hello, ' ( a space should be th...]
            <br
              name=br
              BR=true
            >
              [244,245][ ]
            <content
              color=#000000
              font=color=#000000
              name=content
            >
              [245,277][3. Click the 'Dump HTML' button.]
            <content
              CR=true
              name=content
            >
              [277,278][
      ]
      <bidi root>
        <bidi level
          bidiLevel=0
        >
          [0,278][
      hi you Hello, how are you? \u00a0
      ________...]
      caught it
      Test Failed
      java.lang.RuntimeException: Failed
      ----------System.err:(13/672)----------
      java.lang.RuntimeException: Failed
      at Test4228340.main(Test4228340.java:42)
      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.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:82)
      at java.lang.Thread.run(Thread.java:549)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Failed
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Failed
      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Failed


      test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Failed


      Specific machine info:
      ======================
      Hostname: linux-6
      OS: Solaris 9 (x86) (CDE)
      Hostname: novo48
      OS: Solaris 9 (sparc) (Gnome)
      Hostname: linux-16
      OS: Windows XP


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

        Attachments

          Activity

            People

            • Assignee:
              sdvsunw Sdv Sdv (Inactive)
              Reporter:
              mmvsunw Mmv Mmv (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: