org.xml.sax.SAXParseException: Content is not allowed in prolog

1, issue: server-side parsing xml message is an exception org.xml.sax.SAXParseException: Content is not allowed in prolog

2, Environment: The xml file transfer using http protocol. client-side use httpclient to send xml message, server-side parsing after the correlation processing.

3 reasons: the local xml file using Notepad, save the emergence of byte order problem, the problem is BOM! xml use utf-8 encoding, byte order problem does not exist!
4, the solution: use higher version of ue to regenerate normal xml file!

5, the other with the question: httpclient in sending the post request, the default parameters and values in between will add a "=", so do not need to explicitly go to increase.

分类:Java 时间:2010-09-05 人气:245
分享到:
blog comments powered by Disqus

相关文章

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 黔ICP备15002463号-1

processed in 0.330 (s). 12 q(s)