Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 4.0.5
-
Fix Version/s: 4.0.6
-
Labels:None
-
Number of attachments :
Description
This error occurs when reading the attached XML file:
Exception at reader location: [row,col,system-id]: [4,1,"message.xml"]
org.codehaus.stax2.typed.TypedXMLStreamException: ParseError at [row,col]:[4,1]
Message: Element content can not contain child START_ELEMENT when using Typed Access methods
at com.ctc.wstx.sr.BasicStreamReader._constructTypeException(BasicStreamReader.java:5475)
at com.ctc.wstx.sr.BasicStreamReader._constructUnexpectedInTyped(BasicStreamReader.java:5468)
at com.ctc.wstx.sr.BasicStreamReader.getElementText(BasicStreamReader.java:705)
at Reader.main(Reader.java:45)
It appears that there is a limit of 500 characters in a CDATA section (including LF's), after which it appears Woodstox behaves as if the CDATA section had been closed. An embedded tag then produces the above error. Changing the contents of message.xml (as noted in the file itself) I can also produce this error:
Exception at reader location: [row,col,system-id]: [2,7,"message.xml"]
com.ctc.wstx.exc.WstxParsingException: String ']]>' not allowed in textual content, except as the end marker of CDATA section
at [row,col,system-id]: [7,48,"message.xml"]
at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:580)
at com.ctc.wstx.sr.StreamScanner.throwWfcException(StreamScanner.java:429)
at com.ctc.wstx.sr.BasicStreamReader.readTextSecondary(BasicStreamReader.java:4682)
at com.ctc.wstx.sr.BasicStreamReader.readCoalescedText(BasicStreamReader.java:4140)
at com.ctc.wstx.sr.BasicStreamReader.getElementText(BasicStreamReader.java:672)
at Reader.main(Reader.java:45)
Activity
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | In Progress [ 3 ] |
| Status | In Progress [ 3 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] | |
| Fix Version/s | 4.0.6 [ 15371 ] |