You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Pernoud Aurelien <ap...@sopragroup.com> on 2003/12/04 14:47:51 UTC
ArrayIndexOutOfBounds in XMLEntityManager$EntityScanner.skipSpaces()
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.skipSpaces(XMLEntityManager.java:2865)
at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(XMLDocumentScannerImpl.java:987)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:529)
at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:585)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.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/apache/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: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
Re: ArrayIndexOutOfBounds in XMLEntityManager$EntityScanner.skipSpaces()
Posted by Michael Glavassevich <mr...@apache.org>.
Hi Aurelien,
The fix you're refering to in the 2.5.0 release notes definitely isn't
related to the behaviour you're seeing.
On Thu, 4 Dec 2003, Pernoud Aurelien wrote:
> 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
---------------------------
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org