You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Jodeleit, Peter" <jo...@e-Spirit.de> on 2001/03/01 09:24:21 UTC

org.apache.xerces.framework.XMLParser: parse in progress

[Xerces 1.3.0, all OS, core]

Hello,

i'm pooling parsers (to increase performance) in a long running program
(server). Now sometimes an OutOfMemoryError occurs and i do some clean up to
resolve this. But most of the time this happens during parsing a large XML
structure. Because there is no try .. finally in the parse method of
org.apache.xerces.framework.XMLParser the flag for "still parsing" is not
reset to "not parsing" in this case wich leads to an "invalid" parser in my
pool (every call to parse will produce the SAXException "FWK005").

Is there a reason not to use try .. finally for (re)setting the flag
fParseInProgress?

Peter

-- 
  Peter Jodeleit mailto:jodeleit@e-spirit.de
  The e-Spirit Company

Re: org.apache.xerces.framework.XMLParser: parse in progress

Posted by Andy Clark <an...@apache.org>.
"Jodeleit, Peter" wrote:
> Is there a reason not to use try .. finally for (re)setting the flag
> fParseInProgress?

No reason. I changed the code already. It should be in the next
release.

-- 
Andy Clark * IBM, TRL - Japan * andyc@apache.org