[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

SAXParser throws SAXExceptions after many (serial) parses

  • From: vogt@i...
  • To: xml-dev@l...
  • Date: Wed, 16 May 2001 17:09:56 -0400

saxexceptions
          Our WebSphere servlet application (re)uses SAXParsers from a
pool.
          We are sure that we are serializing the use of these.

          Sometimes, after thousands of reuses, we get miscelaneous
SAXExceptions and
          other Exceptions from parse().
          For Example:
          - FWK005 parse may not be called while parsing
          - org.xml.sax.SAXException: Stopping after fatal error: The
markup declarations contained or pointed to by the document type
declaration must be well-formed.
          - org.xml.sax.SAXException: Stopping after fatal error: A '('
character or an element type is required in the declaration of element type
"LocNm".  (Occurs for various elements)
          - ArrayIndexOutOfBoundsException: 0  (also with -2)


          We are using org.apache.xerces.parsers.SAXParser that was
included in the XSLT package
          on Alphaworks (or Lotus) but I don't know how to determine the
version.
          How do I determine the version?

          I looked for a "reset" method to try but don't see one.
          Is there a "reset", short of constructing a new one?

          I do set the content and error handler and a feature before each
parse.
          The XML to be parsed always uses the same dtd.

          Thanks for any help or suggestions,

          Michael Vogt   ISX Development




PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.