You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Reaz Ahmed (JIRA)" <xm...@xml.apache.org> on 2008/08/13 17:06:44 UTC
[jira] Commented: (XMLBEANS-372) XMLBean locale exception is thrown
when element containing '&' is used
[ https://issues.apache.org/jira/browse/XMLBEANS-372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12622240#action_12622240 ]
Reaz Ahmed commented on XMLBEANS-372:
-------------------------------------
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/%3C209085473.1134164174755.JavaMail.jira@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-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org