jaxp
  1. jaxp
  2. JAXP-59

SAXParser should provide a way to reset SymbolTable, to enable pooling of parsers

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      59

      Description

      The SAAJ RI tries to Pool SAXParser instances for efficiency. But it appears
      that class com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
      adds all the symbols to the Xerces SymbolTable associated with the SAXParser.

      Since the SymbolTable is never reset or cleared, over time as we parse new types
      of messages (or even the same message, with different namespaces used), over
      time the SymbolTable will fill up.

      We tried calling reset() on the parser before returning to the pool but that
      does not apparently clear the SymbolTable.

      I will create a Testcase that shows the problem soon.

      Please see the related issue where the User has stated more details :
      https://saaj.dev.java.net/issues/show_bug.cgi?id=46

        Activity

          People

          • Assignee:
            jaxp-issues
            Reporter:
            kumarjayanti
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: