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

Regression sun/io/Converter/TestConv.java is failing

    • beta
    • generic, x86
    • generic, windows_2000
    • Verified

      Regression test suite for hopper build 11:
      got from
      http://meercat.sfbay:8080/shuna/i18n_regression/script/hopper/build11_05092002/
      JDK : hopper b11
      OS : winXP Home(32) japanese / Solaris 9 (euc)


      Regression test sun/io/Converter/TestConv.java fails with Hopper build 11 due to an error "java.io.UnsupportedEncodingException: X11SunUnicode_0".

      Here is a part of error:
      ========================
      Checking X11SunUnicode_0...
      [Testing default converter type]
      Exception thrown while testing X11SunUnicode_0
      ----------System.err:(38/2232)----------
      java.io.UnsupportedEncodingException: X11SunUnicode_0
              at sun.io.Converters.getConverterClass(Converters.java:125)
              at sun.io.Converters.newConverter(Converters.java:156)
              at sun.io.ByteToCharConverter.getConverter(ByteToCharConverter.java:64)
              at java.lang.StringCoding.decode(StringCoding.java:218)
              at java.lang.String.<init>(String.java:327)
              at TestConv.checkConverter(TestConv.java:153)
              at TestConv.check(TestConv.java:50)
              at TestConv.main(TestConv.java:38)
              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:94)
              at java.lang.Thread.run(Thread.java:536)
      java.lang.ClassNotFoundException: sun.io.ByteToCharX11SunUnicode_0
              at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
              at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:131)
              at TestConv.check(TestConv.java:64)
              at TestConv.main(TestConv.java:38)
              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:94)
              at java.lang.Thread.run(Thread.java:536)

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

      For more detail of error, please see the attached b11-TestConv.jtr.

      NOTE:
      * Comparing the source of TestConv.java build 10 with build 11,
        there is a difference, not same.
        
        Please see the attached file b10-TestConv.java and b11-TestConv.java.

      * I checked the result of TestConv.java for build 10 did not throw exception
        and the following message were in log file(TestConv.jtr).

         Checking X11SunUnicode_0...
         Unsupported encoding: X11SunUnicode_0
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         For more detail, please see the attached b10-TestConv.jtr

      I guess, looking the source b10 and b11,
      TestConv.java for build 10, "X11SunUnicode_0" is not checked.
      TestConv.java for build 11, "X11SunUnicode_0" is checked.


      If Category/Subcategory is not appropriate, please change it.

      ###@###.### 2002-05-16

      Name: as83306 Date: 05/15/2002

      Regression test sun/io/Converter/TestConv.java fails with Hopper-b11, windows_2000-server, host-metamorphic,
      hotspot-server, JVM-32bit, desktop-active.
       For test hardware config's, see http://sqesvr.eng/st3/jdk1.4/docs/Merlin-hw.html
      #Test Results (version 2)
      #Thu May 09 02:34:41 PDT 2002
      #checksum:5ed1df614e1c46a9
      #-----testdescription-----
      $file=C:\\regression\\hopper\\jdk1.4.1Tests\\tests\\b11\\sun\\io\\Converter\\TestConv.java
      $root=C:\\regression\\hopper\\jdk1.4.1Tests\\tests\\b11
      keywords=bug4179153
      run=ASSUMED_ACTION main TestConv\r\n
      source=TestConv.java
      title=Read code mapping table and check code conversion

      #-----environment-----

      #-----testresult-----
      description=file:///C:/regression/hopper/jdk1.4.1Tests/tests/b11/sun/io/Converter/TestConv.java
      end=Thu May 09 02:34:41 PDT 2002
      environment=regtest
      execStatus=Failed. Execution failed: `main' threw exception: java.lang.ClassNotFoundException: sun.io.ByteToCharX11SunUnicode_0
      javatestOS=Windows 2000 5.0 (x86)
      javatestVersion=2.1.5
      script=com.sun.javatest.regtest.RegressionScript
      sections=script_messages build compile main
      start=Thu May 09 02:34:21 PDT 2002
      status=Failed. Execution failed: `main' threw exception: java.lang.ClassNotFoundException: sun.io.ByteToCharX11SunUnicode_0
      test=sun/io/Converter/TestConv.java
      work=C:\\results\\regression\\hopper\\b11\\METAMORPHIC-Windows_NT-jth13-jdk141b11.05-08.21-20-ALL\\sun\\io\\Converter

      #section:script_messages
      ----------messages:(4/200)----------
      JDK under test: (C:/Java/jdk141b11)
      java version "1.4.1-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-beta-b11)
      Java HotSpot(TM) Server VM (build 1.4.1-beta-b11, mixed mode)

      #section:build
      ----------messages:(3/97)----------
      command: build TestConv
      reason: Named class compiled on demand
      elapsed time (seconds): 2.464
      result: Passed. Compilation successful

      #section:compile
      ----------messages:(3/186)*----------
      command: compile C:\\regression\\hopper\\jdk1.4.1Tests\\tests\\b11\\sun\\io\\Converter\\TestConv.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 2.464
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:main
      ----------messages:(3/119)----------
      command: main TestConv
      reason: Assumed action based on file name: run main TestConv
      elapsed time (seconds): 17.675
      ----------System.out:(1075/20835)*----------

      Checking Big5...
      [Testing default converter type]
      OK.

      Checking Big5...
      NIO API supported by Big5
      [Testing NIO charset implementation]
      OK.

      Checking Big5...
      [Testing internal (sun.io) converter implementation]
      OK.

      Checking Big5_HKSCS...
      [Testing default converter type]
      OK.

      Checking Big5_HKSCS...
      NIO API supported by Big5_HKSCS
      [Testing NIO charset implementation]
      OK.

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

      The fix is verified with regression test suite b12 and hopper b12 on Winsodws2000 Prof. japanse.
      This test case is "PASSED" on Windows.

      However, this is "FAILED" on Solaris.
      Running TestConv.java on Solaris 8 sparc(euc), this test case is interrupted.
      Therefore, I can not verify completly.


      #Test Results (version 2)
      #Tue May 21 16:33:37 JST 2002
      #checksum:4e4d40e03fb74393
      #-----testdescription-----
      $file=/home/rs88024/regression/reg_merlin/test/sun/io/Converter/TestConv.java
      $root=/home/rs88024/regression/reg_merlin/test
      keywords=bug4179153
      run=ASSUMED_ACTION main TestConv\n
      source=TestConv.java
      title=Read code mapping table and check code conversion

      #-----environment-----

      #-----testresult-----
      description=file:///home/rs88024/regression/reg_merlin/test/sun/io/Converter/TestConv.java
      end=Tue May 21 16:33:37 JST 2002
      environment=regtest
      execStatus=Failed. Execution failed: Program `/home/rs88024/jdk1.4.1/b12-sol/j2sdk1.4.1/bin/java' interrupted! (timed out?)
      javatestOS=SunOS 5.8 (sparc)
      javatestVersion=2.1.5
      script=com.sun.javatest.regtest.RegressionScript
      sections=script_messages build compile main
      start=Tue May 21 16:31:33 JST 2002
      status=Failed. Execution failed: Program `/home/rs88024/jdk1.4.1/b12-sol/j2sdk1.4.1/bin/java' interrupted! (timed out?)
      test=sun/io/Converter/TestConv.java
      work=/home/rs88024/regression/reg_merlin/JTwork/sun/io/Converter

      #section:script_messages
      ----------messages:(2/133)----------
      JDK under test: java full version "1.4.1-beta-b12" (/home/rs88024/jdk1.4.1/b12-sol/j2sdk1.4.1)
      Timeout signalled after 120.0 seconds

      #section:build
      ----------messages:(3/94)----------
      command: build TestConv
      reason: Named class compiled on demand
      elapsed time (seconds): 3.996
      result: Passed. Compilation successful

      #section:compile
      ----------messages:(3/170)----------
      command: compile /home/rs88024/regression/reg_merlin/test/sun/io/Converter/TestConv.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 3.975
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:main
      ----------messages:(3/117)----------
      command: main TestConv
      reason: Assumed action based on file name: run main TestConv
      elapsed time (seconds): 120.086
      ----------System.out:(57/1075)*----------

      Checking Cp1046...
      [Testing default converter type]
      OK.

      Checking Cp1046...
      [Testing internal (sun.io) converter implementation]
      OK.

      Checking Cp037...
      [Testing default converter type]
      OK.

      Checking Cp037...
      [Testing internal (sun.io) converter implementation]
      OK.

      Checking Cp1381...
      [Testing default converter type]
      Regression Warning code point
      Warning 0: 0xA1AA -> \\u2015 multi-mapping? \\u2014
      OK.

      Checking Cp1381...
      [Testing internal (sun.io) converter implementation]
      Regression Warning code point
      Warning 0: 0xA1AA -> \\u2015 multi-mapping? \\u2014
      OK.

      Checking Big5_HKSCS...
      [Testing default converter type]
      OK.

      Checking Big5_HKSCS...
      NIO API supported by Big5_HKSCS
      [Testing NIO charset implementation]
      OK.

      Checking Big5_HKSCS...
      [Testing internal (sun.io) converter implementation]
      OK.

      Checking Big5...
      [Testing default converter type]
      OK.

      Checking Big5...
      NIO API supported by Big5
      [Testing NIO charset implementation]
      OK.

      Checking Big5...
      [Testing internal (sun.io) converter implementation]
      OK.

      Checking Cp1025...
      [Testing default converter type]
      ----------System.err:(0/0)----------
      result: Failed. Execution failed: Program `/home/rs88024/jdk1.4.1/b12-sol/j2sdk1.4.1/bin/java' interrupted! (timed out?)


      test result: Failed. Execution failed: Program `/home/rs88024/jdk1.4.1/b12-sol/j2sdk1.4.1/bin/java' interrupted! (timed out?)


      * This interruption does not occur on Windows.
        (I confirmed on Windows 2000 Prof. japanese)

      * I attached both TestConv.jtr for windows and solaris.
      Please see attached the file.

      Regression test suite for hopper build 12:
      http://meercat.sfbay:8080/shuna/i18n_regression/script/hopper/build12_05202002/
      JDK : hopper b12
      OS : Windows 2000 Prof. japanese / Solaris 8 sparc(euc)


      [###@###.### 2002-05-21]
      =============================================================================

      I confirmed that this new problem is not reproducible using java command on Solaris 8 sparc(ja_JP.euc locale).
      However, the interruption occurs using jtreg on Solaris.

      According to Evaluation(2002-05-21), it seems that the test case needs to be modified.

      This problem is a different problem from the original one.
      If a new problem needs to be filed as a new bug, please let me know.
      I'll do that.


      [###@###.### 2002-05-22]
      ================================================================================
      The original bus has gone using b12.
      I filed a new bug #4690287 for tne new problem I found.

      This original bug's fix can be verified.


      [###@###.### 2002-05-23]
      ================================================================================

            ilittlesunw Ian Little (Inactive)
            rsuzukisunw Rieko Suzuki (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: