There's one thing I'm doing in my app :

keeping only one saxparser by user and reuse it (with a synchronize test).

Is it worth it or should I create new parsers every time ?

Any idea would be greatly appreciated.

Aurelien

Pernoud Aurelien a �crit :

> Hi there,
> 
> I'm using Xerces in my webapp to parxe XHTML stuff,
> everything goes fine most of the time, but sometimes (I yet
> don't have a reproducable case, it just "happens", I hate
> that kind of bugs) I meet the exception said above.
> 
> It happens on xerces 2.0.2 (bundled with tomcat 4.1.9),
> xerces 2.3 (the one bundled with tomcat 4.1.24).
> 
> Here's the stacktrace on xerces 2.0.2
> 
> java.lang.ArrayIndexOutOfBoundsException
>       at
> org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpac
> es(XMLEntityManager.java:2865)
>       at
> org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDisp
> atcher.dispatch(XMLDocumentScannerImpl.java:987)
>       at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocu
> ment(XMLDocumentFragmentScannerImpl.java:333)
>       at
> org.apache.xerces.parsers.StandardParserConfiguration.parse(St
> andardParserConfiguration.java:529)
>       at
> org.apache.xerces.parsers.StandardParserConfiguration.parse(St
> andardParserConfiguration.java:585)
>       at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)        
> at
> org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXP
>       arser.java:1148) at
> javax.xml.parsers.SAXParser.parse(SAXParser.java:394) ... associated
> class was :
> http://cvs.apache.org/viewcvs.cgi/xml-xerces/java/src/org/apac 
he/xerces/impl/XMLEntityManager.java?rev=1.25&content-type=text/vnd.viewcvs-markup

I have no idea of what's happening. I know this is a old release of
Xerces but didn't find any related bug in
mail-archives/bugzilla/newsgroups/whatever :(  

I don't want devs to spend time on it, but if anyone has an idea of
where it may come from ? 

I've seen in release notes that 2.5.0 has this line :

* Fixed an ArrayIndexOutOfBoundsException in the scanner caused by some
invalid character references. [Michael Glavassevich] 

but didn't find related bug in bugzilla, and I have no idea if this is
the same or not ??? 

If it speaks to someone here... :)

Thx,
Aurelien

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to