org.apache.jasper.JasperException: Error on line 1: Content is not allowed in prolog
2012-03-19 20:40
573 查看
在使用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));
我是这样写的
session.setAtribute("xml",bt.toString()); //bt是Byte[]类型
发现这样写就OK了
session.setAtribute("xml",new String(bt));
相关文章推荐
- org.xml.sax.SAXParseException: Content is not allowed in prolog.
- org.xml.sax.SAXParseException: Content is not allowed in prolog.
- org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not ju
- 解决org.xml.sax.SAXParseException:Content is not allowed in prolog
- org.xml.sax.SAXParseException: Content is not allowed in prolog
- org.dom4j.DocumentException: Error on line 1 of document : Content is not allowed in prolog.
- org.jdom2.input.JDOMParseException: Error on line 1: Content is not allowed in prolog.
- org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not ju
- org.apache.jasper.JasperException: #{..} is not allowed in template text 解决
- sax错误:org.xml.sax.SAXParseException: Content is not allowed in prolog解决
- org.xml.sax.SAXParseException: Content is not allowed in prolog.
- XML :org.xml.sax.SAXParseException: Content is not allowed in prolog
- sax错误:org.xml.sax.SAXParseException: Content is not allowed in prolog 终极解决
- Parse Fatal Error at line 1 column 1: Content is not allowed in prolog. org.xml.sax.SAXParseExceptio
- 转载:sax错误:org.xml.sax.SAXParseException: Content is not allowed in prolog解决
- org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not ju
- org.xml.sax.SAXParseException: Content is not allowed in prolog
- sax解析xml运行出现错误org.xml.sax.SAXParseException: Content is not allowed in prolog.
- weblogic对xml中BOM处理异常——org.xml.sax.SAXParseException:Content is not allowed in prolog
- sax解析xml运行出现错误org.xml.sax.SAXParseException: Content is not allowed in prolog