严重: Servlet.service() for servlet jsp threw exception 的问题
严重: Servlet.service() for servlet jsp threw exception 的问题
日期:2017-05-18 23:04:04 人气:1
出现此错误一般都是在jsp中使用了输出流(如输出图片验证码,文件下载等),
没有妥善处理好的原因。
具体的原因就是
在tomcat中jsp编译成servlet之后在函数_jspService(HttpServletRequest request, HttpServletResponse response)的最后
有一段这样的代码
finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_p