[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [jira] [Closed] (XMLBEANS-454)
From:       "Cezar Andrei (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2011-04-23 23:29:06
Message-ID: 1150943617.78601.1303601346507.JavaMail.tomcat () hel ! zones ! apache ! org
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/XMLBEANS-454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Cezar Andrei closed XMLBEANS-454.
---------------------------------


Closing since is invalid.

> XmlDate.Factory.parse(java.lang.String ) is broken
> --------------------------------------------------
> 
> Key: XMLBEANS-454
> URL: https://issues.apache.org/jira/browse/XMLBEANS-454
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions: Version 2.5
> Reporter: Mark Grand
> 
> This program
> import org.apache.xmlbeans.XmlDate;
> public class Z {
> public static void main(String[] argv) throws Exception {
> XmlDate.Factory.parse("2011-04-20");
> }
> }
> Throws this exception:
> Exception in thread "main" org.apache.xmlbeans.XmlException: error: Unexpected \
> element: CDATA  at \
> org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3486)  at \
> org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:712)  at \
> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:696)  at \
> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:683)  at \
> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:208)
>   at org.apache.xmlbeans.XmlDate$Factory.parse(XmlDate.java:104)
> 	at Z.main(Z.java:6)
> Caused by: org.xml.sax.SAXParseException: Unexpected element: CDATA
> 	at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038)
>   at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723)
> 	at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3454)
> 	... 6 more

--
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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic