-
Bug
-
Resolution: Fixed
-
P5
-
7u3, 9
-
b38
-
x86
-
windows_7
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8083924 | emb-9 | Martin Buchholz | P5 | Resolved | Fixed | team |
JDK-8129143 | 8u65 | Aleksej Efimov | P5 | Resolved | Fixed | b02 |
JDK-8081839 | 8u60 | Aleksej Efimov | P5 | Resolved | Fixed | b20 |
JDK-8137984 | emb-8u65 | Unassigned | P5 | Resolved | Fixed | b02 |
JDK-8129667 | emb-8u60 | Aleksej Efimov | P5 | Resolved | Fixed | b20 |
JDK-8081840 | 7u91 | Aleksej Efimov | P5 | Resolved | Fixed | b01 |
http://download.wikimedia.org/enwiktionary/latest/enwiktionary-latest-pages-articles.xml.bz2
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 8192
at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:546)
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1750)
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.arrangeCapacity(XMLEntityScanner.java:1626)
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipString(XMLEntityScanner.java:1664)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1707)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2898)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:568)
at org.xml.sax.helpers.ParserAdapter.parse(ParserAdapter.java:429)
at com.inet.jorthodictionaries.Parser.<init>(Parser.java:63)
at com.inet.jorthodictionaries.BookGenerator.start(BookGenerator.java:94)
at com.inet.jorthodictionaries.BookGenerator.main(BookGenerator.java:72)
This problem occur with Java 6 and Java 7.
The code look like:
System.setProperty("entityExpansionLimit", "100000000");
InputSource input = new InputSource(stream);
SAXParserFactory spf = SAXParserFactory.newInstance();
SAXParser sp = spf.newSAXParser();
ParserAdapter pa = new ParserAdapter(sp.getParser());
pa.setContentHandler(this);
pa.parse(input);
The completely code can you find in the public repository at:
http://jortho.svn.sourceforge.net/viewvc/jortho/trunk/JOrtho/src/com/inet/jorthodictionaries/Parser.java?revision=241&view=markup
- backported by
-
JDK-8081839 ArrayIndexOutOfBoundsException throws in UTF8Reader of SAXParser
- Resolved
-
JDK-8081840 ArrayIndexOutOfBoundsException throws in UTF8Reader of SAXParser
- Resolved
-
JDK-8083924 ArrayIndexOutOfBoundsException throws in UTF8Reader of SAXParser
- Resolved
-
JDK-8129143 ArrayIndexOutOfBoundsException throws in UTF8Reader of SAXParser
- Resolved
-
JDK-8129667 ArrayIndexOutOfBoundsException throws in UTF8Reader of SAXParser
- Resolved
-
JDK-8137984 ArrayIndexOutOfBoundsException throws in UTF8Reader of SAXParser
- Resolved
- duplicates
-
JDK-8080085 ArrayIndexOutOfBoundsException at ...xerces.internal.impl.io.UTF8Reader.read
- Closed