EOS has already been called for this response

本文介绍了解决在使用普元平台进行文件下载操作时遇到的Servlet异常问题,具体异常为在下载完成后,后台抛出getOutputStream() has already been called for this response错误。通过调用out.clear()和设置pageContext.pushBody()的方法来规避这一问题。

解决问题可以参考此链接: http://huibin.iteye.com/blog/675707

 

关键代码 :out.clear(); out = pageContext.pushBody();

 

 

使用普元 使用下载时,下载完成后 后台会抛出异常 如:

 

[eos-default][2011-03-18 16:00:58,546][ERROR][com.eos.access.http.InterceptorFilter:182] 

java.lang.IllegalStateException: getOutputStream() has already been called for this response

 

 

[eos-default][2011-03-18 16:00:58,546][ERROR][com.primeton.ext.engine.core.processor.AbstractPageFlowProcessor:649] error [com.hymake.projInfo.ProjFilling.flow?_flowKey=0565fa0d-699d-4dd7-8646-e98c0523ccb9.end2]

javax.servlet.ServletException: getOutputStream() has already been called for this response

 

 

[eos-default][2011-03-18 16:00:58,546][ERROR][com.eos.access.http.InterceptorFilter:182] 

java.lang.IllegalStateException: Cannot forward after response has been committed

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值