您的位置:首页 > 运维架构 > Apache

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));
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐