NutzCN Logo
问答 window验证码可以显示,linux无法显示
发布于 1352天前 作者 wx_p206gfeqlj0kfpj6vlea 1510 次浏览 复制 上一个帖子 下一个帖子
标签:

@At("/captcha")
@Ok("raw:png")
@Filters
public BufferedImage captcha(@Param("captcha") String captcha) {
return Images.createCaptcha(captcha);
}

2 回复

本论坛有搜索功能

HTTP Status 500 – Internal Server Error
Type Exception Report

Message org.apache.jasper.JasperException: java.lang.IllegalStateException: getOutputStream() has already been called for this response

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

java.lang.RuntimeException: org.apache.jasper.JasperException: java.lang.IllegalStateException: getOutputStream() has already been called for this response
	org.nutz.lang.Lang.wrapThrow(Lang.java:190)
	org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:52)
	org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:56)
	org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
	org.nutz.mvc.NutFilter.doFilter(NutFilter.java:202)
	com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)
Root Cause

org.apache.jasper.JasperException: java.lang.IllegalStateException: getOutputStream() has already been called for this response
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:565)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:476)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	org.nutz.mvc.NutFilter.nextChain(NutFilter.java:230)
	org.nutz.mvc.NutFilter.doFilter(NutFilter.java:205)
	org.nutz.mvc.view.ForwardView.render(ForwardView.java:72)
	org.nutz.mvc.impl.processor.ViewProcessor.process(ViewProcessor.java:66)
	org.nutz.mvc.impl.processor.FailProcessor.process(FailProcessor.java:30)
	org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:49)
	org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:56)
	org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
	org.nutz.mvc.NutFilter.doFilter(NutFilter.java:202)
	com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)
Root Cause

java.lang.IllegalStateException: getOutputStream() has already been called for this response
	org.apache.catalina.connector.Response.getWriter(Response.java:624)
	org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:211)
	javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:109)
	org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:118)
	org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:111)
	org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:184)
	org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:120)
	org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:75)
	org.apache.jsp.base.jsp.error_jsp._jspService(error_jsp.java:188)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:443)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	org.nutz.mvc.NutFilter.nextChain(NutFilter.java:230)
	org.nutz.mvc.NutFilter.doFilter(NutFilter.java:205)
	org.nutz.mvc.view.ForwardView.render(ForwardView.java:72)
	org.nutz.mvc.impl.processor.ViewProcessor.process(ViewProcessor.java:66)
	org.nutz.mvc.impl.processor.FailProcessor.process(FailProcessor.java:30)
	org.nutz.mvc.impl.NutActionChain.doChain(NutActionChain.java:49)
	org.nutz.mvc.impl.ActionInvoker.invoke(ActionInvoker.java:56)
	org.nutz.mvc.ActionHandler.handle(ActionHandler.java:31)
	org.nutz.mvc.NutFilter.doFilter(NutFilter.java:202)
	com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)
Note The full stack trace of the root cause is available in the server logs.

Apache Tomcat/8.5.32
添加回复
请先登陆
回到顶部