struts2 用type="chain" 的跳转出错sendError() forbidden after buffer has been committed.
来源:互联网 发布:淘宝客的赚钱之道 编辑:程序博客网 时间:2024/05/22 08:21
struts2 下用<result name="success" type="chain">login</result> ,跳转到login的action,会出现下面错误,是在resin的服务器下
java.lang.IllegalStateException: sendError() forbidden after buffer has been committed.at com.caucho.server.http.HttpServletResponseImpl.sendError(HttpServletResponseImpl.java:625)at org.apache.struts2.dispatcher.Dispatcher.sendError(Dispatcher.java:839)at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:533)at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:434)at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:89)at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:102)at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:89)at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:89)at com.caucho.server.webapp.WebAppListenerFilterChain.doFilter(WebAppListenerFilterChain.java:114)at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:156)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:802)at com.caucho.network.listen.TcpSocketLink.dispatchRequest(TcpSocketLink.java:731)at com.caucho.network.listen.TcpSocketLink.handleRequest(TcpSocketLink.java:693)at com.caucho.network.listen.TcpSocketLink.handleRequestsImpl(TcpSocketLink.java:677)at com.caucho.network.listen.TcpSocketLink.handleRequests(TcpSocketLink.java:623)at com.caucho.network.listen.AcceptTask.doTask(AcceptTask.java:107)at com.caucho.network.listen.ConnectionReadTask.runThread(ConnectionReadTask.java:98)at com.caucho.network.listen.ConnectionReadTask.run(ConnectionReadTask.java:81)at com.caucho.network.listen.AcceptTask.run(AcceptTask.java:65)at com.caucho.env.thread.ResinThread.runTasks(ResinThread.java:164)at com.caucho.env.thread.ResinThread.run(ResinThread.java:130)
解决:
使用<result name="success" type="redirect">login.action</result>就不会出现这样的问题。
- struts2 用type="chain" 的跳转出错sendError() forbidden after buffer has been committed.
- struts2文件下载,解决jCannot call sendError() after the response has been committed的问题
- struts2文件图片流输出报IllegalStateException: Cannot call sendError() after the response has been committed
- Cannot call sendError() after the response has been committed
- Cannot call sendError() after the response has been committed
- Cannot call sendError() after the response has been committed
- Cannot call sendError() after the response has been committed
- Cannot call sendError() after the response has been committed
- Struts2中使用servletresponse直接输出内容到客户端出现:Cannot call sendError() after the response has been committed
- java.lang.IllegalStateException: Cannot call sendError() after the response has been committed错误
- java.lang.IllegalStateException: Cannot call sendError() after the response has been committed
- 【SSH异常系列】Cannot call sendError() after the response has been committed
- java.lang.IllegalStateException: Cannot call sendError() after the response has been committed
- java.lang.IllegalStateException: Cannot call sendError() after the response has been committed
- Cannot call sendError() after the response has been committed 错误记录
- java.lang.IllegalStateException: Cannot call sendError() after the response has been committed
- Struts2 Cannot create a session after the response has been committed 一个不起眼的错误
- 关于Cannot forward after response has been committed的问题
- 查询出前n条记录的SQL以及Hql语句
- Eclipse自动部署项目到Tomcat的webapps下的有效方法
- 敏捷开发中的 Java 代码质量保证步骤
- 在linux下编译hadoop1.0.3
- 《壹百度》- 百度员工内部培训资料
- struts2 用type="chain" 的跳转出错sendError() forbidden after buffer has been committed.
- Android 自定义CheckBoxPreference的CheckBox复选框
- HDU 3295
- Eclipse常用调试技巧
- Android项目小结---闹铃备忘录小开发知识点(附有:源码下载)
- oracle spfile和pfile详解
- 嵌入式LINUX环境下视频采集知识
- 什么是野指针?
- u-boot运行分析(四)(转帖) .