[ https://issues.apache.org/jira/browse/XMLBEANS-372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12622240#action_12622240 ]
reaz28 edited comment on XMLBEANS-372 at 8/13/08 8:06 AM: -------------------------------------------------------------- I am having the exact same problem. I never had the problem during testing, now that my code is in production I am getting this on one of the xml message. My guess is the user have used & in the comment field which is what is making the code to throw the exception when parsing the document. Here is my exception: org.apache.xmlbeans.XmlException: error: Unexpected character encountered (lex state 3): ' ' 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 noNamespace.STPMessagesDocument$Factory.parse(STPMessagesDocument.java:119) at com.tdsecurities.fxfunding.app.ttdealer.TtOrderReconManager.collectStpMessages(TtOrderReconManager.java:261) at com.tdsecurities.fxfunding.app.ttdealer.TtOrderReconManager.run(TtOrderReconManager.java:99) at java.lang.Thread.run(Thread.java:595) Caused by: org.xml.sax.SAXParseException: Unexpected character encountered (lex state 3): ' ' 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) ... 8 more I know other people experienced similar problem in past, but I can figure out what the solution was. Please help. Thanks. Reaz. was (Author: reaz28): I am having the exact same problem. I never had the problem during testing, now that my code is in production I am getting this on one of the xml message. My guess is the user have used & in the comment field which is what is making the code to throw the exception when parsing the document. Here is my exception: org.apache.xmlbeans.XmlException: error: Unexpected character encountered (lex state 3): ' ' 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 noNamespace.STPMessagesDocument$Factory.parse(STPMessagesDocument.java:119) at com.tdsecurities.fxfunding.app.ttdealer.TtOrderReconManager.collectStpMessages(TtOrderReconManager.java:261) at com.tdsecurities.fxfunding.app.ttdealer.TtOrderReconManager.run(TtOrderReconManager.java:99) at java.lang.Thread.run(Thread.java:595) Caused by: org.xml.sax.SAXParseException: Unexpected character encountered (lex state 3): ' ' 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) ... 8 more Please help. > 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/[EMAIL > PROTECTED] > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]