Help! DCC throw out org.xml.sax.SAXParseException: Character reference "&#55357" is an invalid XML character.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Help! DCC throw out org.xml.sax.SAXParseException: Character reference "&#55357" is an invalid XML character.

叶双明
I run two ofbiz instances in one machine,  config DCC with  AvtiveMQ, every
thing seem ok by get exception some times. And i print out related xml
content below:
I guess is the emoji Character in sellerName cause the problem.
Thanks!

2015-12-16 21:36:41,888 |iveMQ Session Task-2 |XmlSerializer
  |E| deserialize for content:<?xml version="1.0"
encoding="UTF-8"?><ofbiz-ser>
    <map-Map>
        <map-Entry>
            <map-Key>
                <std-String value="userLogin"/>
            </map-Key>
            <map-Value>
                <eeval-UserLogin createdStamp="2015-11-27 23:38:45.535"
createdTxStamp="2015-11-27 23:38:45.457" enabled="N" isSystem="Y"
lastUpdatedStamp="2015-11-27 23:39:24.327" lastUpdatedTxStamp="2015-11-27
23:39:24.279" partyId="system" userLoginId="system"/>
            </map-Value>
        </map-Entry>
        <map-Entry>
            <map-Key>
                <std-String value="value"/>
            </map-Key>
            <map-Value>
                <eeval-BizDistributeSellerList commissionByYesterday="0.00"
createdDate="2015-12-04 09:39:55.995" createdStamp="2015-12-04
09:39:56.081" createdTxStamp="2015-12-04 09:39:55.562"
dealerPartyId="10222" firstLowerCount="0" introducerPartyId="22737"
lastUpdatedStamp="2015-12-16 21:36:41.877" lastUpdatedTxStamp="2015-12-16
21:33:27.874" partyId="26818" productStoreId="8000" rankByYesterday="0"
recommendName="嫦"
sellerName="&#55357;&#56375;&#55357;&#56467;&#55357;&#56375;&#55356;&#57152;"
sumCommission="0.00" sumRank="377"/>
            </map-Value>
        </map-Entry>
        <map-Entry>
            <map-Key>
                <std-String value="locale"/>
            </map-Key>
            <map-Value>
                <std-Locale value="en"/>
            </map-Value>
        </map-Entry>
    </map-Map>
</ofbiz-ser>

2015-12-16 21:36:41,888 |iveMQ Session Task-2 |AbstractJmsListener
  |E| Problems deserializing the service context.
org.xml.sax.SAXParseException: Character reference "&#55357" is an invalid
XML character.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
~[xercesImpl-2.9.1.jar:?]
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
~[xercesImpl-2.9.1.jar:?]
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121)
~[?:1.8.0_60]
at org.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:459)
~[ofbiz-base.jar:?]
at org.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:362)
~[ofbiz-base.jar:?]
at
org.ofbiz.entity.serialize.XmlSerializer.deserialize(XmlSerializer.java:97)
~[ofbiz-entity-test.jar:?]
at
org.ofbiz.service.jms.AbstractJmsListener.runService(AbstractJmsListener.java:74)
[ofbiz-service.jar:?]
at
org.ofbiz.service.jms.AbstractJmsListener.onMessage(AbstractJmsListener.java:123)
[ofbiz-service.jar:?]
at
org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:1393)
[activemq-all-5.12.1.jar:5.12.1]
at
org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:131)
[activemq-all-5.12.1.jar:5.12.1]
at
org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:202)
[activemq-all-5.12.1.jar:5.12.1]
at
org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:133)
[activemq-all-5.12.1.jar:5.12.1]
at
org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:48)
[activemq-all-5.12.1.jar:5.12.1]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[?:1.8.0_60]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[?:1.8.0_60]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_60]
^C

--
叶双明
Reply | Threaded
Open this post in threaded view
|

Re: Help! DCC throw out org.xml.sax.SAXParseException: Character reference "&#55357" is an invalid XML character.

Shi Jinghai-3
I think CData would help if you change the attribute to a sub element.

-----邮件原件-----
发件人: 叶双明 [mailto:[hidden email]]
发送时间: 2015年12月16日 22:00
收件人: [hidden email]
主题: Help! DCC throw out org.xml.sax.SAXParseException: Character reference "&#55357" is an invalid XML character.

I run two ofbiz instances in one machine,  config DCC with  AvtiveMQ, every
thing seem ok by get exception some times. And i print out related xml
content below:
I guess is the emoji Character in sellerName cause the problem.
Thanks!

2015-12-16 21:36:41,888 |iveMQ Session Task-2 |XmlSerializer
  |E| deserialize for content:<?xml version="1.0"
encoding="UTF-8"?><ofbiz-ser>
    <map-Map>
        <map-Entry>
            <map-Key>
                <std-String value="userLogin"/>
            </map-Key>
            <map-Value>
                <eeval-UserLogin createdStamp="2015-11-27 23:38:45.535"
createdTxStamp="2015-11-27 23:38:45.457" enabled="N" isSystem="Y"
lastUpdatedStamp="2015-11-27 23:39:24.327" lastUpdatedTxStamp="2015-11-27
23:39:24.279" partyId="system" userLoginId="system"/>
            </map-Value>
        </map-Entry>
        <map-Entry>
            <map-Key>
                <std-String value="value"/>
            </map-Key>
            <map-Value>
                <eeval-BizDistributeSellerList commissionByYesterday="0.00"
createdDate="2015-12-04 09:39:55.995" createdStamp="2015-12-04
09:39:56.081" createdTxStamp="2015-12-04 09:39:55.562"
dealerPartyId="10222" firstLowerCount="0" introducerPartyId="22737"
lastUpdatedStamp="2015-12-16 21:36:41.877" lastUpdatedTxStamp="2015-12-16
21:33:27.874" partyId="26818" productStoreId="8000" rankByYesterday="0"
recommendName="嫦"
sellerName="&#55357;&#56375;&#55357;&#56467;&#55357;&#56375;&#55356;&#57152;"
sumCommission="0.00" sumRank="377"/>
            </map-Value>
        </map-Entry>
        <map-Entry>
            <map-Key>
                <std-String value="locale"/>
            </map-Key>
            <map-Value>
                <std-Locale value="en"/>
            </map-Value>
        </map-Entry>
    </map-Map>
</ofbiz-ser>

2015-12-16 21:36:41,888 |iveMQ Session Task-2 |AbstractJmsListener
  |E| Problems deserializing the service context.
org.xml.sax.SAXParseException: Character reference "&#55357" is an invalid
XML character.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
~[xercesImpl-2.9.1.jar:?]
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
~[xercesImpl-2.9.1.jar:?]
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121)
~[?:1.8.0_60]
at org.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:459)
~[ofbiz-base.jar:?]
at org.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:362)
~[ofbiz-base.jar:?]
at
org.ofbiz.entity.serialize.XmlSerializer.deserialize(XmlSerializer.java:97)
~[ofbiz-entity-test.jar:?]
at
org.ofbiz.service.jms.AbstractJmsListener.runService(AbstractJmsListener.java:74)
[ofbiz-service.jar:?]
at
org.ofbiz.service.jms.AbstractJmsListener.onMessage(AbstractJmsListener.java:123)
[ofbiz-service.jar:?]
at
org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:1393)
[activemq-all-5.12.1.jar:5.12.1]
at
org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:131)
[activemq-all-5.12.1.jar:5.12.1]
at
org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:202)
[activemq-all-5.12.1.jar:5.12.1]
at
org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:133)
[activemq-all-5.12.1.jar:5.12.1]
at
org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:48)
[activemq-all-5.12.1.jar:5.12.1]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[?:1.8.0_60]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[?:1.8.0_60]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_60]
^C

--
叶双明

Reply | Threaded
Open this post in threaded view
|

Re: Help! DCC throw out org.xml.sax.SAXParseException: Character reference "�" is an invalid XML character.

叶双明
The struct of xml is create by framework. So ...

2015-12-17 8:20 GMT+08:00 Shi Jinghai <[hidden email]>:

> I think CData would help if you change the attribute to a sub element.
>
> -----邮件原件-----
> 发件人: 叶双明 [mailto:[hidden email]]
> 发送时间: 2015年12月16日 22:00
> 收件人: [hidden email]
> 主题: Help! DCC throw out org.xml.sax.SAXParseException: Character reference
> "&#55357" is an invalid XML character.
>
> I run two ofbiz instances in one machine,  config DCC with  AvtiveMQ, every
> thing seem ok by get exception some times. And i print out related xml
> content below:
> I guess is the emoji Character in sellerName cause the problem.
> Thanks!
>
> 2015-12-16 21:36:41,888 |iveMQ Session Task-2 |XmlSerializer
>   |E| deserialize for content:<?xml version="1.0"
> encoding="UTF-8"?><ofbiz-ser>
>     <map-Map>
>         <map-Entry>
>             <map-Key>
>                 <std-String value="userLogin"/>
>             </map-Key>
>             <map-Value>
>                 <eeval-UserLogin createdStamp="2015-11-27 23:38:45.535"
> createdTxStamp="2015-11-27 23:38:45.457" enabled="N" isSystem="Y"
> lastUpdatedStamp="2015-11-27 23:39:24.327" lastUpdatedTxStamp="2015-11-27
> 23:39:24.279" partyId="system" userLoginId="system"/>
>             </map-Value>
>         </map-Entry>
>         <map-Entry>
>             <map-Key>
>                 <std-String value="value"/>
>             </map-Key>
>             <map-Value>
>                 <eeval-BizDistributeSellerList commissionByYesterday="0.00"
> createdDate="2015-12-04 09:39:55.995" createdStamp="2015-12-04
> 09:39:56.081" createdTxStamp="2015-12-04 09:39:55.562"
> dealerPartyId="10222" firstLowerCount="0" introducerPartyId="22737"
> lastUpdatedStamp="2015-12-16 21:36:41.877" lastUpdatedTxStamp="2015-12-16
> 21:33:27.874" partyId="26818" productStoreId="8000" rankByYesterday="0"
> recommendName="嫦"
> sellerName="🐷💓🐷🍀"
> sumCommission="0.00" sumRank="377"/>
>             </map-Value>
>         </map-Entry>
>         <map-Entry>
>             <map-Key>
>                 <std-String value="locale"/>
>             </map-Key>
>             <map-Value>
>                 <std-Locale value="en"/>
>             </map-Value>
>         </map-Entry>
>     </map-Map>
> </ofbiz-ser>
>
> 2015-12-16 21:36:41,888 |iveMQ Session Task-2 |AbstractJmsListener
>   |E| Problems deserializing the service context.
> org.xml.sax.SAXParseException: Character reference "&#55357" is an invalid
> XML character.
> at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
> ~[xercesImpl-2.9.1.jar:?]
> at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
> ~[xercesImpl-2.9.1.jar:?]
> at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121)
> ~[?:1.8.0_60]
> at org.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:459)
> ~[ofbiz-base.jar:?]
> at org.ofbiz.base.util.UtilXml.readXmlDocument(UtilXml.java:362)
> ~[ofbiz-base.jar:?]
> at
> org.ofbiz.entity.serialize.XmlSerializer.deserialize(XmlSerializer.java:97)
> ~[ofbiz-entity-test.jar:?]
> at
>
> org.ofbiz.service.jms.AbstractJmsListener.runService(AbstractJmsListener.java:74)
> [ofbiz-service.jar:?]
> at
>
> org.ofbiz.service.jms.AbstractJmsListener.onMessage(AbstractJmsListener.java:123)
> [ofbiz-service.jar:?]
> at
>
> org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:1393)
> [activemq-all-5.12.1.jar:5.12.1]
> at
>
> org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:131)
> [activemq-all-5.12.1.jar:5.12.1]
> at
>
> org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:202)
> [activemq-all-5.12.1.jar:5.12.1]
> at
>
> org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:133)
> [activemq-all-5.12.1.jar:5.12.1]
> at
> org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:48)
> [activemq-all-5.12.1.jar:5.12.1]
> at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [?:1.8.0_60]
> at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [?:1.8.0_60]
> at java.lang.Thread.run(Thread.java:745) [?:1.8.0_60]
> ^C
>
> --
> 叶双明
>
>


--
叶双明