org.apache.jasper.JasperException: Error on line 1: Content is not allowed in prolog
来源:互联网 发布:mac桌面所有文件不见了 编辑:程序博客网 时间:2024/06/13 21:33
在使用webservice传递XML的时候,我先把XML变成了byte[],然后客户端解析在把byte[]变成InputStream解析,但是为了加速性能,我把这个XML 问价保存到了session里面,但是去出来的时候却报了org.apache.jasper.JasperException: Error on line 1: Content is not allowed in prolog
我是这样写的
session.setAtribute("xml",bt.toString()); //bt是Byte[]类型
发现这样写就OK了
session.setAtribute("xml",new String(bt));
- org.apache.jasper.JasperException: Error on line 1: Content is not allowed in prolog
- org.jdom2.input.JDOMParseException: Error on line 1: Content is not allowed in prolog.
- org.dom4j.DocumentException: Error on line 1 of document : Content is not allowed in prolog.
- Parse Fatal Error at line 1 column 1: Content is not allowed in prolog. org.xml.sax.SAXParseExceptio
- Error:Content is not allowed in prolog.
- org.apache.jasper.JasperException: #{..} is not allowed in template text 解决
- org.apache.jasper.JasperException: #{..} is not allowed in template text 解决
- 启动tomcat是出现错误( Parse Fatal Error at line 1 column 1: Content is not allowed in prolog.)
- org.xml.sax.SAXParseException: Content is not allowed in prolog.
- org.dom4j.DocumentException: Content is not allowed in prolog. 解决办法
- org.xml.sax.SAXParseException: Content is not allowed in prolog
- org.xml.sax.SAXParseException: Content is not allowed in prolog
- org.xml.sax.SAXParseException: Content is not allowed in prolog.
- org.xml.sax.SAXParseException: Content is not allowed in prolog.
- org.xml.sax.SAXParseException: Content is not allowed in prolog.
- org.apache.jasper.JasperException: /WEB-INF/jsps/index.jsp(9,26) #{...} is not allowed in template t
- org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog
- Content is not allowed in prolog
- 北理工2011年计算机复试上机题(一)
- 《第五周实验报告1-2》---增加构造函数,使对象在定义时能够进行初始化
- yii新建一个应用
- 基础排序
- 黑马程序员_dos及path,classpath
- org.apache.jasper.JasperException: Error on line 1: Content is not allowed in prolog
- 由初始化开始
- Nutch的URL选择策略 OPIC IN NUTCH
- epoll实例
- 第四周(1)
- poj 1067 取石子游戏(博弈)
- Android2.2 自带主题themes.xml的源代码
- Nutch使用方法简介
- 第五周(1)