Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-2437

TransformerImpl.setExtensionsTable swallows TransformerException

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.7.1, 2.7
    • None
    • transformation, Xalan
    • None
    • Java

    Description

      When the method TransformerImpl.setExtensionsTable encounters a TransformerException is catches it and prints out the stack trace to err. It seems like it would be better to throw this exception to allow the end user to handle it as they see fit.

      In our experience we encountered an error stemming from invalid embedded Java code being included in a transform. The exception caught by TransformerImpl.setExtensionsTable contains extremely useful information as to the to cause and location of the problem. Another exception does get thrown later on, but it is just a NullPointerException that doesn't contain any information as to the original cause of the problem.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gweez Geoff Wheeler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: