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

FilterChain.java will not run as supplied

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 1.4.2
    • xml
    • rc
    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      java version "1.4.2_05"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
      Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows 2000 [Version 5.00.2195]
      SunOS epoch 5.8 Generic_117000-03 sun4u sparc SUNW,Ultra-4


      A DESCRIPTION OF THE PROBLEM :
      The code of FilterChain.java fails to run with a NullPointerException in
         org.apache.crimson.parser.Parser2.parseInternal




      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Just compile and run the code at the URL:

      http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/xslt/work/FilterChain.java


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Expected to see the transformed output.

      ACTUAL -
      Got a NullPointerException


      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
        Fix is to add:

        spf.setNamespaceAware(true);

      to the initialisation of the SAXParserFactory.

            jsuttorsunw Jeff Suttor (Inactive)
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: