Mantis - Resin
Viewing Issue Advanced Details
4293 minor always 11-15-10 08:35 01-12-11 16:53
ferg  
ferg  
normal  
closed 4.0.13  
fixed  
none    
none 4.0.15  
0004293: IllegalStateException forward() after commit
(rep by Dan Kelly)

[10-11-11 18:23:45.382] {http://192.168.16.165:443-485} [^] java.lang.IllegalStateException: forward() not allowed after buffer has committed.
                                                                at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:149)
                                                                at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:100)
                                                                at com.caucho.security.FormLogin.loginChallenge(FormLogin.java:363)
                                                                at com.caucho.security.AbstractLogin.login(AbstractLogin.java:314)
                                                                at com.caucho.server.security.FormLoginServlet.service(FormLoginServlet.java:69)
                                                                at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:109)
                                                                at com.caucho.server.webapp.NamedDispatcherImpl.forward(NamedDispatcherImpl.java:179)
                                                                at com.caucho.server.dispatch.ForwardFilterChain.doFilter(ForwardFilterChain.java:88)
                                                                at com.caucho.server.security.SecurityFilterChain.doFilter(SecurityFilterChain.java:131)
                                                                at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:183)
                                                                at com.caucho.server.cache.ProxyCacheFilterChain.doFilter(ProxyCacheFilterChain.java:160)
                                                                at com.caucho.server.webapp.AccessLogFilterChain.doFilter(AccessLogFilterChain.java:95)
                                                                at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:287)
                                                                at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:792)
                                                                at com.caucho.network.listen.TcpSocketLink.dispatchRequest(TcpSocketLink.java:675)
                                                                at com.caucho.network.listen.TcpSocketLink.handleRequestsImpl(TcpSocketLink.java:637)
                                                                at com.caucho.network.listen.TcpSocketLink.handleRequests(TcpSocketLink.java:588)
                                                                at com.caucho.network.listen.TcpSocketLink$AcceptTask.doTask(TcpSocketLink.java:1175)
                                                                at com.caucho.network.listen.TcpSocketLink$ConnectionReadTask.runThread(TcpSocketLink.java:1108)
                                                                at com.caucho.network.listen.TcpSocketLink$AcceptTask.run(TcpSocketLink.java:1142)
                                                                at com.caucho.env.thread.ResinThread.runTasks(ResinThread.java:182)
                                                                at com.caucho.env.thread.ResinThread.run(ResinThread.java:126)

Notes
(0004838)
ferg   
11-15-10 08:38   
[10-11-11 18:23:46.559] {http://192.168.16.165:443-581} [^] java.lang.IllegalStateException: getWriter() can't be called after getOutputStream().
                                                                at com.caucho.server.http.HttpServletResponseImpl.getWriter(HttpServletResponseImpl.java:175)
                                                                at com.caucho.server.webapp.ErrorPageManager.sendServletErrorImpl(ErrorPageManager.java:457)
                                                                at com.caucho.server.webapp.ErrorPageManager.sendServletError(ErrorPageManager.java:189)
                                                                at com.caucho.server.webapp.ErrorPageManager.sendServletErrorImpl(ErrorPageManager.java:326)
                                                                at com.caucho.server.webapp.ErrorPageManager.sendServletError(ErrorPageManager.java:189)
                                                                at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:185)
                                                                at com.caucho.server.cache.ProxyCacheFilterChain.doFilter(ProxyCacheFilterChain.java:160)
                                                                at com.caucho.server.webapp.AccessLogFilterChain.doFilter(AccessLogFilterChain.java:95)
                                                                at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:287)
                                                                at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:792)
                                                                at com.caucho.network.listen.TcpSocketLink.dispatchRequest(TcpSocketLink.java:675)
                                                                at com.caucho.network.listen.TcpSocketLink.handleRequestsImpl(TcpSocketLink.java:637)
                                                                at com.caucho.network.listen.TcpSocketLink.handleRequests(TcpSocketLink.java:588)
                                                                at com.caucho.network.listen.TcpSocketLink$AcceptTask.doTask(TcpSocketLink.java:1175)
                                                                at com.caucho.network.listen.TcpSocketLink$ConnectionReadTask.runThread(TcpSocketLink.java:1108)
                                                                at com.caucho.network.listen.TcpSocketLink$AcceptTask.run(TcpSocketLink.java:1142)
                                                                at com.caucho.env.thread.ResinThread.runTasks(ResinThread.java:182)
                                                                at com.caucho.env.thread.ResinThread.run(ResinThread.java:126)
(0004839)
ferg   
11-15-10 08:39   
The IllegalStateException stack traces are below. We're using the form login method of authentication method with SSL. We extend AbstractAuthenticator as part of that.
(0004924)
ferg   
01-12-11 16:53   
server/1ab6