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

fatalError() callback throws NullPointerException for DOMSource.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.1
    • 1.1
    • xml
    • 1.1fcs
    • sparc
    • solaris_2.6
    • Verified

      If StreamSource or SAXSource is created using erroneous xsl file and is given as input to TransformerFactory.newTransformer() method with the ErrorListener set to the Factory, fatalError() callback (of the attached program) throws
      --------------------------------------------------------------------
      ********* In fatal
      javax.xml.transform.TransformerException: TRaX Transform Throwable
      --------------------------------------------------------------------


      where as
      If DOMSource is created using erroneous xsl file and is given as input to TransformerFactory.newTransformer() method with the ErrorListener set to the Factory, fatalError() callback (of the attached program) throws
      --------------------------------------------------------------------
      ********* In fatal
      javax.xml.transform.TransformerException: TRaX Transform Throwable
      Exception in thread "main" java.lang.NullPointerException
              at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:632)
              at FatalErrorTest.main(FatalErrorTest.java:22)
      --------------------------------------------------------------------
      There is an inconsistency here and the NullPointerException here is not relevent.

      PS: Look at the attached code.

            duke J. Duke
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: