[英]Content is not allowed in prolog. via Hermes JMS with good xml
I work with Hermes to send some JMS files. 我与Hermes一起发送一些JMS文件。 I have lot of JMS queues to send different type of message to my server.
我有很多JMS队列可以将不同类型的消息发送到服务器。 So, I have a problem with one of these queues.
因此,我对其中一个队列有疑问。 To facilitate my explanations, the queue with problem is queue 1. So I send an
xml
in queue 1 and there is a SAXParseException
. 为了便于说明,问题队列是队列1。因此,我在队列1中发送了一个
xml
,并且存在SAXParseException
。 I read lot of topics about that, so I verified first line, UTF-8
and UTF-16
in my xsd
and xml
. 我阅读了很多有关此主题的文章,因此我在
xsd
和xml
验证了第一行UTF-8
和UTF-16
。 And there is not my xml
file the problem, because this same file in queue 2 it's all ok. 而且这不是我的
xml
文件的问题,因为队列2中的同一文件都可以。 It makes me mad !! 这让我生气! Please, someone can help me ?
拜托,有人可以帮我吗?
The exception : 例外:
Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
After lot of searches, I found ! 经过大量搜索,我发现了! The
xsd
file encoding changed to UTF-8 BOM. xsd
文件编码已更改为UTF-8 BOM。 So when I send the file to my server, specials caracters appears of the beginning. 因此,当我将文件发送到服务器时,特殊字符开始出现。 I changed the Encoding to UTF-8 w/o BOM and it's ok !
我将Encoding更改为UTF-8 w / o BOM,没关系!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.