[JAXP-59] SAXParser should provide a way to reset SymbolTable, to enable pooling of parsers Created: 23/Sep/09  Updated: 23/Sep/09

Status: Open
Project: jaxp
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Type: Bug Priority: Major
Reporter: kumarjayanti Assignee: jaxp-issues
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
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


Generated at Sat Sep 05 02:25:28 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.