简体   繁体   English

序言中不能有内容。 通过具有良好xml的Hermes JMS

[英]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 . 我阅读了很多有关此主题的文章,因此我在xsdxml验证了第一行UTF-8UTF-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.

相关问题 Java“序言中不允许的内容。” - Java "Content not allowed in prolog.” “在prolog中不允许内容。”群集服务器中的错误 - “Content is not allowed in prolog.” error in clustered server javax.xml.bind.UnmarshalException - 带有链接异常:[org.xml.sax.SAXParseException:序言中不允许内容。] - javax.xml.bind.UnmarshalException - with linked exception: [org.xml.sax.SAXParseException: Content is not allowed in prolog.] 如何解决[org.xml.sax.SAXParseException; 行号:1; 列数:1; 序言中不能有内容。] - how to solve [org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.] 严重错误:1:1:序言中不允许包含内容。 org.xml.sax.SAXParseException - Fatal Error :1:1: Content is not allowed in prolog. org.xml.sax.SAXParseException Java Ant Builder-“序言中不允许包含内容。” .sh - Java Ant Builder - “Content is not allowed in prolog.” .sh 禁用Java Xerces中的日志记录(“[致命错误]:1:1:prolog中不允许使用内容。”) - Disable logging in Java Xerces (“[Fatal Error] :1:1: Content is not allowed in prolog.”) Android Studio 构建错误:“序言中不允许使用内容。” - Android Studio Build Error: "Content is not allowed in prolog." org.xml.sax.SAXParseException;在序言中不允许引用。 自动生成的 XHTML,java - org.xml.sax.SAXParseException;Reference is not allowed in prolog. auto generated XHTML, java 解析XML时出错:序言中不允许内容 - Error parsing XML: Content is not allowed in prolog
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM