Skip to main content

Data Corruption in SAXParser

8 replies [Last post]
chdh
Offline
Joined: 2007-06-04
Points: 0

I have found a data corruption error in SAXParser.

A test program and the XML data file to reproduce the error is at:
http://www.source-code.biz/snippets/java/saxParserError/

The error occurs with the SAXParser version included in JDK 1.6.0_10-beta-b25 (and other 1.6 versions), but not with the SAXParser of Xerces 2.9.1. It also does not occur with JDK 1.5.

I don't know how to report this error at http://bugreport.sun.com , because there is no matching subcategory for javax.xml.* in the error reporting form. And it's not possible to upload the data file.

The XML file used to reproduce this error is relatively big (86k). We tried to reduce it's size, but small changes on the XML file change the symptoms of the error.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
chdh
Offline
Joined: 2007-06-04
Points: 0

> ok, but what is the exact error you are seeing?

When the error occurs and the test program detects the faulty XML element content data, the program displays "Data corruption error detected.".

rogyeu
Offline
Joined: 2006-07-30
Points: 0

Thanks for reporting the issue. For your future reference, you can submit JAXP issue here:
https://jaxp.dev.java.net/servlets/ProjectIssues

You need to login with your java.net account in order to submit a bug, but you don't need an account to query the bug database.

Regards,
Roger Y.

rogerl
Offline
Joined: 2004-11-15
Points: 0

We are looking into the submission page.

What is the exact error you are seeing?
I will be opening a bug.

-Roger

chdh
Offline
Joined: 2007-06-04
Points: 0

The error is that characters from outside the text content of the XML elements are passed through org.xml.sax.helpers.DefaultHandler.characters().
Fragments from the XML file structure occur as element content text characters..

rogerl
Offline
Joined: 2004-11-15
Points: 0

ok, but what is the exact error you are seeing?
Text or a screen shot is what I am looking for.

-Roger

rogerl
Offline
Joined: 2004-11-15
Points: 0

A bug has been opened: 6716312

You will be able to view the bug in a day or two at this url:
http://bugs.sun.com/view_bug.do?bug_id=6716312

Thank you for letting us know know about the bug and writing a test case!

-Roger

chdh
Offline
Joined: 2007-06-04
Points: 0

After 6 days, the bug database entry http://bugs.sun.com/view_bug.do?bug_id=6716312 is still not available. Did something go wrong?

rogyeu
Offline
Joined: 2006-07-30
Points: 0

It is available now.