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

JDK1.1.6 ONLY: [Win32]sun.io.ByteToCharEUC_JP/SJIS throws NullPointerException

    Details

    • Subcomponent:
    • Resolved In Build:
      1.1.6
    • CPU:
      generic, x86
    • OS:
      generic, windows_95, windows_nt
    • Verification:
      Not verified

      Description

      On Win32(tested on Japanese 95 and NT4.0) the attached sample program
      throws NullPointerException while Solaris has no problem using 1.1.6J.

      SJIS, JIS and 8859_1 has no problem but EUCJIS(EUC_JP)

      H:\>java ASCIIGoThruTest
      0x21
      0x22
      java.lang.NullPointerException
              at sun.io.ByteToCharEUC_JP.<init>(Compiled Code)
              at sun.io.ByteToCharConverter.getConverter(Compiled Code)
              at ASCIIGoThruTest.run(Compiled Code)
              at ASCIIGoThruTest.main(ASCIIGoThruTest.java:9)

      1.1.5 or 1.2-beta3-L has no problem.

      Assume that there is a problem on Win32 class loader.


      shoji.ishida@Japan 1998-03-20
      This causes HJV 1.1.x regression on Win32 platform see error below.

      [Starting HotJava]^M
      [Initializing globals]^M
      [Creating frame]^M
      [Loaded DTD html32 in 131ms]^M
      [\223\307\202\335\215\236\202\361\202\305\202\242\202\334\202\267: c:\katakai\.h
      otjava\urlpool]^M
      java.lang.NullPointerException^M
              at sun.io.ByteToCharSJIS.<init>(Compiled Code)^M
              at sun.io.ByteToCharConverter.getDefault(Compiled Code)^M
              at java.io.FileReader.<init>(Compiled Code)^M
              at sunw.hotjava.misc.Cookies.loadPersistentCookies(Compiled Code)^M
              at sunw.hotjava.misc.Globals.initSystem(Compiled Code)^M
              at sunw.hotjava.Main.main(Compiled Code)^M
      error: null^M

      This is not only EUC_JP problem but SJIS too.

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

      mircea.oancea@canada 1998-03-26
      From Takeshi Eto ###@###.### (Fujitsu is a licencee)

      JDK1.1.6K rmic causes NullPointerException on Japanese Windows 95.
      The problem can be demostrated by the example in the documentation
      'Getting Started using RMI' (docs/guide/rmi/getstart.doc.html).
      This can also occur on Windows NT4.0 and Windows 98 RC-0.
       
      When it causes the exception, the displaying message is as follows;
       
      java.lang.NullPointerException
              at sun.io.ByteToCharSJIS.<init>(Compiled Code)
              at sun.io.ByteToCharConverter.getDefault(Compiled Code)
              at sun.toolssctac1
      .java.ScannerInputStream.<init>(Compiled Code)
              at sun.tools.java.Scanner.useInputStream(Scanner.java:165)
              at sun.tools.java.Scanner.<init>(Scanner.java:153)
              at sun.tools.java.Parser.<init>(Parser.java:67)
              at sun.tools.javac.BatchParser.<init>(BatchParser.java:69)
              at sun.tools.javac.BatchEnvironment.parseFile(BatchEnvironment.java:218)
       
              at sun.tools.javac.BatchEnvironment.loadDefinition(Compiled Code)
              at sun.tools.java.ClassDeclaration.getClassDefinition(Compiled Code)
              at sun.rmi.rmic.Main.doCompile(Compiled Code)
              at sun.rmi.rmic.Main.compile(Main.java:121)
              at sun.rmi.rmic.Main.main(Main.java:404)
      error: An exception has occurred in the compiler; please file a bug report (http://java.sun.com/cgi-bin/bugreport.cgi).
      1 error

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dviswanasunw Deepa Viswanathan (Inactive)
                Reporter:
                sishidasunw Shoji Ishida (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: