JDK-5036209 : ByteToCharGB18030 exception in 1.4.2_04-b05
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio.charsets
  • Affected Version: 1.4.2_04
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_8
  • CPU: generic
  • Submitted: 2004-04-22
  • Updated: 2004-04-26
  • Resolved: 2004-04-26
Related Reports
Duplicate :  
Description
Run Orion 2 "installer" in zh_CN.GB18030 locale under Solaris 9UR6 on Sparc, the following exception is displayed:

./installer
com.sun.orion.dre.DREException
        at 
com.sun.orion.dre.helpers.ProcessExecutor.getInputStrings(ProcessExecutor.java:377)
        at 
com.sun.orion.dre.helpers.ProcessExecutor.execute(ProcessExecutor.java:243)
        at 
com.sun.orion.dre.detection.SolarisInstallationDetectionEngine.populateDetectionCache(SolarisInstallationDetectionEngine.java:413)
        at 
com.sun.orion.dre.detection.SolarisInstallationDetectionEngine.bootstrap(SolarisInstallationDetectionEngine.java:352)
        at 
com.sun.orion.dre.detection.InstallationDetectionManager.bootstrap(InstallationDetectionManager.java:103)
        at 
com.sun.orion.dre.bootstrap.InstallationDetectionManagerBootstrapper.bootstrapDetectionManager(InstallationDetectionManagerBootstrapper.java:51)
        at 
com.sun.orion.dre.bootstrap.InstallationDetectionManagerBootstrapper.run(InstallationDetectionManagerBootstrapper.java:33)
        at java.lang.Thread.run(Thread.java:534)
Caused by: sun.io.MalformedInputException
        at sun.io.ByteToCharGB18030.convert(ByteToCharGB18030.java:142)
        at 
sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java:247)
        at 
sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:297)
        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:182)
        at java.io.InputStreamReader.read(InputStreamReader.java:167)
        at java.io.BufferedReader.fill(BufferedReader.java:136)
        at java.io.BufferedReader.readLine(BufferedReader.java:299)
        at java.io.BufferedReader.readLine(BufferedReader.java:362)
        at 
com.sun.orion.dre.helpers.ProcessExecutor.getInputStrings(ProcessExecutor.java:367)
        ... 7 more

The jre version in the .install directory is "1.4.2_04-b05" 
(/net/sgtpepper.sfbay/export5/s9orion2_nightly/orion1of2_sparc.s9_orion2/latest/Solaris_sparc/.install/j2se_jre/bin 37 % ./java -fullversion
java full version "1.4.2_04-b05"

Comments
EVALUATION If the issue as reported within the bug description is fully reproducible then based on the exception stack trace and the J2RE version being used by the installer 1.4.2_04 b05 it is possible that a bug within the sun.io.ByteToCharGB18030 is responsible for the crash. However, the evidence within the exception stack trace points to the sun.io retired converter being used when run in zh_GN.GB18030 locale instead of the (preferred) nio based charset implementation (sun.nio.cs.ext.GB18030). If this is the root cause of the bug then it is very likely that 4838512 (fixed/integrated in 1.4.2_05 and available in 1.5.0 beta b40 and higher) would prevent this bug from ever occurring. ###@###.### 2004-04-23 Although there is clearly a bug within the sun.io GB18030 decoder the issue reported is taken care of by availing of 1.4.2_05 or later where 4838512 addresses this issue ###@###.### 2004-04-26
26-04-2004