Hi,
My apologies if this has been discussed before - I was not able to find anything in the mail list archives.
I've been pooling and reusing Xerces-J 1.x parser instances, using the reset() method on SAXParser. Everything works fine until a content handler generates an exception which terminates the parsing unexpectedly. After that, the next time the parser instance is used, an exception saying "FWK005 parse may not be called while parsing" is generated when parse is called (with reset called prior to parse).
I added a line to XMLParser.reset method to work around the problem:
fParseInProgress = false;
This has fixed my problem. Given the fix was so simple, I'm wondering if there are other issues I'm not aware of that complicate the reuse of SAXParser instances.
Thanks.
--Doug
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
