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

Investigate SymbolTable in SAXParser

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • 9
    • xml
    • None
    • b158
    • Verified

        During removal of SAAJ dependencies to JDK xml internal apis, there were removed a piece of code, resetting SymbolTable in cached SaxParsers. This may cause heap OOM error. Here is original issue, which induced resetting SymbolTables:

        https://java.net/jira/browse/SAAJ-46

        Resetting SymbolTables was pushed as temporary fix, until this is resolved:

        https://java.net/jira/browse/JAXP-59

        I have checked a SAAJ code and didn't found any better solution, than to not cache sax parsers at all. But I am not sure what performance impact it may have on saaj/jaxws.

        Aleksej can you check if resetting SymbolTable can be done in SaxParser#reset ?

              aefimov Aleksej Efimov
              rgrigoriadi Roman Grigoriadi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: