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

REGRESSION: 5 Regression-test tests fail with ClassFormatError

XMLWordPrintable

    • b38
    • generic, x86
    • generic, solaris_10
    • Verified

      Name: vsR10238 Date: 12/25/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b32
      Testbase : Regression-test
      Platform[s] : all
      Falling test[s]:
               javax/swing/AbstractAction/4186951/bug4186951.java
               javax/swing/JToolTip/Serialization/SerializationTest.java
               javax/swing/text/html/HTMLEditorKit/4213373/bug4213373.java
               javax/swing/JInternalFrame/4308938/bug4308938.java
               javax/swing/ImageIcon/4827074/bug4827074.java

      These 5 Regression-test tests fail using JDK1.5.0-b32 with:
      java.lang.ClassFormatError: Illegal class name "javax/swing/text/StyledEditorKit+1"
      or similar java.lang.ClassFormatError.

      All these tests pass using JDK1.5.0-b31.

      All these tests except javax/swing/ImageIcon/4827074/bug4827074.java
      pass using JDK1.4.2-b28.

      javax/swing/ImageIcon/4827074/bug4827074.java is new for Tiger and fails using JDK1.4.2-b28 due to another reason.

      Test source location:
      =====================
      /java/re/jdk/1.5.0/promoted/all/b32/ws/j2se/test/javax/swing/AbstractAction/4186951/bug4186951.java
      /java/re/jdk/1.5.0/promoted/all/b32/ws/j2se/test/javax/swing/JToolTip/Serialization/SerializationTest.java
      /java/re/jdk/1.5.0/promoted/all/b32/ws/j2se/test/javax/swing/text/html/HTMLEditorKit/4213373/bug4213373.java
      /java/re/jdk/1.5.0/promoted/all/b32/ws/j2se/test/javax/swing/JInternalFrame/4308938/bug4308938.java
      /java/re/jdk/1.5.0/promoted/all/b32/ws/j2se/test/javax/swing/ImageIcon/4827074/bug4827074.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b32/regtest/linux/mercury_gnome_linux-17/workDir/test/javax/swing/AbstractAction/4186951/bug4186951.jtr
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b32/regtest/linux/mercury_gnome_linux-17/workDir/test/javax/swing/JToolTip/Serialization/SerializationTest.jtr
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b32/regtest/linux/mercury_gnome_linux-17/workDir/test/javax/swing/text/html/HTMLEditorKit/4213373/bug4213373.jtr
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b32/regtest/linux/mercury_gnome_linux-17/workDir/test/javax/swing/JInternalFrame/4308938/bug4308938.jtr
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b32/regtest/linux/mercury_gnome_linux-17/workDir/test/javax/swing/ImageIcon/4827074/bug4827074.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/b32/binaries/linux-i586"
      TEST_BASE_PATH="/java/re/jdk/1.5.0/promoted/all/b32/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/b32/binaries/linux-i586"
      #TEST_BASE_PATH="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b32/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/linux"
      #TEST_BASE_PATH="/net/linux-15/export/home/java/regtest.tiger/test"


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

      TEST="javax/swing/text/html/HTMLEditorKit/4213373/bug4213373.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-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/$TEST"

      --- script end ---

      Test output (jtr part):
      =======================
      ----------System.out:(0/0)----------
      ----------System.err:(24/1784)----------
      java.lang.ClassFormatError: Illegal class name "javax/swing/text/StyledEditorKit+1"
      at sun.misc.Unsafe.defineClass(Native Method)
      at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45)
      at sun.reflect.MethodAccessorGenerator+1.run(MethodAccessorGenerator.java:381)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:377)
      at sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(MethodAccessorGenerator.java:95)
      at sun.reflect.ReflectionFactory.newConstructorForSerialization(ReflectionFactory.java:321)
      at java.io.ObjectStreamClass.getSerializableConstructor(ObjectStreamClass.java:1310)
      at java.io.ObjectStreamClass.access+1600(ObjectStreamClass.java:47)
      at java.io.ObjectStreamClass+3.run(ObjectStreamClass.java:396)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:375)
      at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:270)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1026)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1366)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1338)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1281)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1070)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
      at bug4213373.init(bug4213373.java:23)
      at com.sun.javatest.regtest.AppletWrapper$AppletThread.run(AppletWrapper.java:132)
      at java.lang.Thread.run(Thread.java:566)
      STATUS:Failed.Applet thread threw exception: java.lang.ClassFormatError: Illegal class name "javax/swing/text/StyledEditorKit+1"
      result: Failed. Execution failed: Applet thread threw exception: java.lang.ClassFormatError: Illegal class name "javax/swing/text/StyledEditorKit+1"


      test result: Failed. Execution failed: Applet thread threw exception: java.lang.ClassFormatError: Illegal class name "javax/swing/text/StyledEditorKit+1"


      Specific machine info:
      ======================
      Hostname: linux-17
      OS: Mercury
      Hostname: linux-22
      OS: RedHat Linux 9.0 (GNOME)



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

            kbr Kenneth Russell (Inactive)
            vshsunw Vsh Vsh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: