Hi Xiang,

>From the stack trace your application is clearly not picking up Xerces
2.9.1. com.sun.org.apache.xerces.internal.* is Sun's fork of the Apache
codebase in their JDK (5 or 6). I have no idea whether they have fixed this
problem.

The Apache Xerces packages are org.apache.xerces.* and you would see those
in the stack trace if you were using Xerces 2.9.1.

Thanks.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrgla...@ca.ibm.com
E-mail: mrgla...@apache.org

xzhao.u...@gmail.com wrote on 12/17/2009 01:02:20 AM:

> Hi,
>
> I think I encountered the same error as described at http://
> marc.info/?l=xerces-j-user&m=120452263925040&w=2, another email thread.
>
> Console message:
> Exception in thread "main"
> java.lang.ArrayIndexOutOfBoundsException: 8192
> at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(
> UTF8Reader.java:543)
> at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(
> XMLEntityScanner.java:1742)
> at
com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.arrangeCapacity(
> XMLEntityScanner.java:1619)
> at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipString(
> XMLEntityScanner.java:1657)
> at
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement

> (
> XMLDocumentFragmentScannerImpl.java:1740)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl
> $FragmentContentDriver.next(
> XMLDocumentFragmentScannerImpl.java:2930)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(
> XMLDocumentScannerImpl.java:648)
> at
>
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument

> (
> XMLDocumentFragmentScannerImpl.java:510)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(
> XML11Configuration.java:807)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(
> XML11Configuration.java:737)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(
> XMLParser.java:107)
> at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(
> AbstractSAXParser.java:1205)
> at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
$JAXPSAXParser.parse(
> SAXParserImpl.java:522)
> at javax.xml.parsers.SAXParser.parse(.
> SAXParser.java:395)
> at javax.xml.parsers.SAXParser.parse(.
> SAXParser.java:277)
> at fullHistory.CompHistory.main(
> CompHistory.java:39)
> I did not see a solution for this OOB, and I was using version 2.9.1
> at the moment. If I still want to use Xerces, what shall I do then?
>
> Thank you very much. I look forward to your reply.
>
> Best Regards,
> Xiang Zhao
>
> --
> Xiang ZHAO - PhD Student
> School of Computer Science and Engineering, University of New South
> Wales(UNSW) | National ICT Australia(NICTA)
>
> A: Level 4, 223 Anzac Parade, Kensington, Sydney, NSW 2033, Australia
> P: +61 412 525 004 | +61 2 8306 0539
> E: xz...@cse.unsw.edu.au | xiang.z...@nicta.com.au
> W: http://sites.google.com/site/jasonxiangzhao/
>
> * Celebrating the 60th Anniversary of the Founding of PRC | UNSW !

Reply via email to