sjsxp issue 56: XNIException not caught, passed on to app, for invalid xml decl

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 1.4.0
    • Affects Version/s: 7
    • Component/s: xml
    • h1145
    • generic
    • generic
    • Verified

        When parsing certain types of illegal xml declarations (one missing version
        info, like "<?xml ?>", for example), underlying XNIException (which is of type
        RuntimeExcception) gets thrown right through to the calling app.
        It should be caught and converted or wrapped into an XMLStreamException I think.
        The reason I think this is a problem is that calling apps probably do not except
        invalid docs to result in an unchecked exception, given that almost all Stax
        methods are to throw checked XMLStreamExceptions.

              Assignee:
              Joe Wang
              Reporter:
              Joe Wang
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: