PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2849

*** shadow/2849 Thu Jul 26 20:17:21 2001
--- shadow/2849.tmp.23323       Thu Jul 26 20:17:21 2001
***************
*** 0 ****
--- 1,54 ----
+ +============================================================================+
+ | Parse fails with ArrayIndexOutOfBoundsException (1.2.3) or "encoding ISO-8 |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2849                        Product: Xerces-J                |
+ |       Status: NEW                         Version: 1.2.3                   |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Major                    OS/Version: Other                   |
+ |     Priority: Other                     Component: Core                    |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                  |
+ |  Reported By: [EMAIL PROTECTED]                                        |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ I have a basic, clearly well formed XML file, that crashes both the 1.2.3 and 
+ 1.4.1 parsers. The only slight oddity in the file is that there is no "line 
+ ending" after the terminating root element.
+ If I add a line end (eg: CR/LF pair), the document parses fine.
+ 
+ The errors I get from a Java program consisting of:
+             DocumentBuilder documentBuilder =
+                 DocumentBuilderFactory.newInstance().newDocumentBuilder();
+             documentBuilder.parse(new File(filename));
+ are:
+ 
+ from 1.2.3
+ ----------
+ java.lang.ArrayIndexOutOfBoundsException
+         at org/apache/xerces/framework/XMLParser.parse (XMLParser.java:965)
+         at org/apache/xerces/jaxp/DocumentBuilderImpl.parse 
+ (DocumentBuilderImpl.java:124)
+         at javax/xml/parsers/DocumentBuilder.parse (DocumentBuilder.java:209)
+ 
+ from 1.2.3
+ ----------
+ org.xml.sax.SAXParseException: The encoding "ISO-8859-1" is not supported.
+         at org/apache/xerces/framework/XMLParser.reportError 
+ (XMLParser.java:1196)
+         at 
+ org/apache/xerces/readers/DefaultEntityHandler.startReadingFromDocument 
+ (DefaultEntityHandler.java:
+ 549)
+         at org/apache/xerces/framework/XMLParser.parseSomeSetup 
+ (XMLParser.java:312)
+         at org/apache/xerces/framework/XMLParser.parse (XMLParser.java:1080)
+         at org/apache/xerces/jaxp/DocumentBuilderImpl.parse 
+ (DocumentBuilderImpl.java:196)
+         at javax/xml/parsers/DocumentBuilder.parse (DocumentBuilder.java:210)
+ 
+ 
+ Please let me know where I can mail you a copy of the file, so you can fix the 
+ problem.

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

Reply via email to