[ https://issues.apache.org/jira/browse/XMLBEANS-372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hayo updated XMLBEANS-372: -------------------------- Comment: was deleted (was: <nachname>NES Elektro & Service GmbH</nachname> is correct xml. Nonetheless parsing it shows exactly the same bug as the example above. org.apache.xmlbeans.XmlException: error: Unexpected character encountered (lex state 3): 'a' 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 de.telekom.wholesale.oss.v2.envelope.AnnehmenAuftragRequestDocument$Factory.parse(Unknown Source) at com.oneandone.consumer.freenet.talmigration.meldungen.wita.xmlhandler.WitaPass1.parseXmlString(WitaPass1.java:211) at com.oneandone.consumer.freenet.talmigration.meldungen.wita.xmlhandler.WitaPass1.main(WitaPass1.java:139) Caused by: org.xml.sax.SAXParseException: Unexpected character encountered (lex state 3): 'a' 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) ... 7 more If you have a look at http://www.w3.org/TR/xml/#dt-escape you will see, that the parser MUST recognize this entity. Probably the error is inside the parser called by piccolo, but the stack trace is not going that far. For this, XMLBeans does not comply XML 1.0. My environment: XMLBeans 2.4.0; java version "1.6.0_16" Java(TM) SE Runtime Environment (build 1.6.0_16-b01) Java HotSpot(TM) Server VM (build 14.2-b01, mixed mode) ) > XMLBean locale exception is thrown when element containing '&' is used > ---------------------------------------------------------------------- > > Key: XMLBEANS-372 > URL: https://issues.apache.org/jira/browse/XMLBEANS-372 > Project: XMLBeans > Issue Type: Bug > Components: XmlObject > Affects Versions: Version 2.1 > Environment: Solaris > Reporter: Paul Gray > > I have an issue where if a special character is entered (example '&') the > SAML authentication breaks. > An identical case was raised by another user, See url below) the issue was > apparently resolved and a new version was released, unfortunately this does > not appear to have resolved the issue! > http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200512.mbox/%3c209085473.1134164174755.javamail.j...@ajax.apache.org%3e > The error appears to be in: org.apache.xmlbeans.impl.store.Locale.java > > 13:38:47,913 INFO [STDOUT] org.apache.xmlbeans.XmlException: error: > Unexpected character encountered (lex state 3): ' ' > 13:38:47,945 INFO [STDOUT] at > org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3467) > 13:38:47,960 INFO [STDOUT] at > org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:706) > Kind Regards > Paul -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@xmlbeans.apache.org For additional commands, e-mail: dev-h...@xmlbeans.apache.org