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

Default SAX parser implem class not found in crimson.jar on OS/390 [EBCDIC]

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.1.2
    • 1.1
    • xml
    • b01
    • generic
    • generic



      Name: krC82822 Date: 07/18/2001


      /u/wmlrvg $ java -version
      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
      Classic VM (build 1.3.0, J2RE 1.3.0 IBM build hm130-20000718 (JIT enabled:
      jitc))

      Our code uses the SAX parser with the default implementation class as specified
      in the crimson.jar file, in META-INF/services/javax.xml.parsers.SAXParserFactory.
      Unfortunately, this appears to be in ASCII, and the OS/390 platform expects EBCDIC
      so cannot read the class name and throws:
      Exception in thread "main" javax.xml.parsers.FactoryConfigurationError:
         at javax.xmlo.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:120)
         ...

      I don't know where the problem lies - but since the jar file can be used on
      ebcdic as well as ascii platforms, there is some disconnect about how to read
      the manifest info. Interestingly enough, this works on the AS/400, also an
      EBCDIC platform.
      We also had problems on the OS/390 just sending and receiving character streams
      over sockets from OS/390 to other platforms until we explicitly specified UTF8
      in the stream constructor.
      Here are the system parameters defined on the OS/390 platform:
      /u/wmlrvg $ java HelloWorldApp
      Host name=OAKS390
      20010712 125904.369 main Hello World!
      -- listing properties --
      platform.notASCII=true
      java.runtime.name=Java(TM) 2 Runtime Environment, Stand...
      sun.boot.library.path=/java/J1.3/bin
      java.vm.version=1.3.0
      java.vm.vendor=IBM Corporation
      java.vendor.url=http://www.ibm.com/
      path.separator=:
      java.vm.name=Classic VM
      file.encoding.pkg=sun.io
      java.vm.specification.name=Java Virtual Machine Specification
      user.dir=/u/wmlrvg
      java.runtime.version=1.3.0
      java.fullversion=J2RE 1.3.0 IBM build hm130-20000718 (...
      java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
      os.arch=390
      java.io.tmpdir=/tmp
      line.separator=

      java.vm.specification.vendor=Sun Microsystems Inc.
      java.awt.fonts=
      os.name=OS/390
      java.library.path=/java/J1.3/bin/:/java/J1.3/bin/classi...
      java.specification.name=Java Platform API Specification
      java.class.version=46.0
      os.version=02.09.00
      user.home=/u/wmlrvg
      user.timezone=CST
      java.awt.printerjob=sun.awt.motif.PSPrinterJob
      file.encoding=Cp1047
      java.specification.version=1.2
      user.name=WMLRVG
      java.class.path=omni.jar:crimson.jar:jaxp.jar:xalan.j...
      java.vm.specification.version=1.0
      java.home=/java/J1.3
      user.language=en
      java.specification.vendor=Sun Microsystems Inc.
      java.vm.info=J2RE 1.3.0 IBM build hm130-20000718 (...
      java.version=1.3.0
      java.ext.dirs=/java/J1.3/lib/ext
      sun.boot.class.path=/java/J1.3/lib/rt.jar:/java/J1.3/lib/...
      java.vendor=IBM Corporation
      file.separator=/
      java.vendor.url.bug=
      java.compiler=jitc
      sun.io.unicode.encoding=UnicodeBig
      /u/wmlrvg $
      (Review ID: 127974)
      ======================================================================

            egoei Edwin Goei (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: