[prev in list] [next in list] [prev in thread] [next in thread]
List: xmlbeans-dev
Subject: Re: [jira] [Commented] (XMLBEANS-428) XmlException "Unexpected element: CDATA" is thrown when file s
From: Cezar Andrei <cezar.andrei () oracle ! com>
Date: 2011-05-05 1:36:24
Message-ID: 7EA56E03-2813-4737-910E-5DB06EAEC32F () oracle ! com
[Download RAW message or body]
Thanks Jerry for looking into it, it's good to know it has been fixed.
Cezar
On May 2, 2011, at 4:59 PM, Jerry Sy (JIRA) wrote:
>
> [ https://issues.apache.org/jira/browse/XMLBEANS-428?page=com.atlassian.jira.plugin. \
> system.issuetabpanels:comment-tabpanel&focusedCommentId=13027870#comment-13027870 ] \
>
> Jerry Sy commented on XMLBEANS-428:
> -----------------------------------
>
> This problem is fixed in revision 959082
> http://svn.apache.org/viewvc?view=revision&revision=959082
>
> I tested using the schema and xml provided using this code
> SchemaTypeSystem sts0 = XmlBeans.compileXsd(new \
> XmlObject[]{XmlObject.Factory.parse(new File("test.xsd"))}, \
> XmlBeans.getBuiltinTypeSystem(),null); XmlObject x0 = sts0.parse(new \
> File("testf.xml"),sts0.findDocumentType(new QName("xmlbean","root")),null);
> I see the error using xbean 2.5 jar, but don't see the error anymore if I include \
> fix from revision 959082. So this bug can be closed as already fixed.
>
> > XmlException "Unexpected element: CDATA" is thrown when file size is 8k+1byte
> > -----------------------------------------------------------------------------
> >
> > Key: XMLBEANS-428
> > URL: https://issues.apache.org/jira/browse/XMLBEANS-428
> > Project: XMLBeans
> > Issue Type: Bug
> > Affects Versions: Version 2.5
> > Reporter: Volodymyr Bychkoviak
> > Attachments: test.tgz
> >
> >
> > When xml file is 8193bytes (8k+1) and have CRLF in the end (after closing tag) \
> > then exception "Unexpected element: CDATA" is thrown. Maybe it is somehow related \
> > to 8k buffer used in XMLReaderReader and XMLStreamReader classes reproducible on \
> > latest svn revision (r884309)
>
> --
> This message is automatically generated by JIRA.
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: dev-help@xmlbeans.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic