当前位置: 首页 > java, resin > 正文

resin error — java.lang.IllegalStateException: sendError() forbidden after buffer has been committed.

today My Resin’s log has some error. make me  mass. 

My site Use Resin3.1.3+Struts2+Hibernate3+oracle10g …

the website reports the error code of 500

500 Servlet Exception
java.lang.IllegalStateException: sendError() forbidden after buffer has been committed.
 at com.caucho.server.connection.AbstractHttpResponse.sendError(AbstractHttpResponse.java:460)
 at org.apache.struts.action.RequestProcessor.processMapping(RequestProcessor.java:665)
 at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:191)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
 at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
 at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103)
 at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:97)
 at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:226)
 at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:488)
 at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:353)
 at com.caucho.jsp.PageContextImpl.include(PageContextImpl.java:957)
 at _jsp._zhengfu._zhijian._xzsp__jsp._jspService(zhengfu/zhijian/xzsp.jsp:131)
 at com.caucho.jsp.JavaPage.service(JavaPage.java:61)
 at com.caucho.jsp.Page.pageservice(Page.java:577)
 at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:190)
 at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:167)
 at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:226)
 at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:263)
 at com.caucho.server.port.TcpConnection.run(TcpConnection.java:477)
 at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:591)
 at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:513)
 at java.lang.Thread.run(Thread.java:619)
=================================

and the jvm’s log show this:

java.lang.IllegalStateException: sendError() forbidden after buffer has been committed.
  at com.caucho.server.connection.AbstractHttpResponse.sendError(AbstractHttpResponse.java:485)
  at org.apache.struts2.dispatcher.Dispatcher.sendError(Dispatcher.java:760)
  at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:513)
  at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
  at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:76)
  at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:178)
  at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:241)
  at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:268)
  at com.caucho.server.port.TcpConnection.run(TcpConnection.java:586)
  at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:690)
  at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:612)
  at java.lang.Thread.run(Thread.java:619)

I don’t know what’s cause this error, may by the struts ?

I find this site about a resin’s bug:

http://bugs.caucho.com/view.php?id=1684   resin3.*

thereis no replay for the error?

Can any one tell me the reason?

 

本文固定链接: http://2hei.net/java_lang_illegalstateexception.html | 2hei's site

该日志由 2hei 于2008年03月05日发表在 java, resin 分类下,
原创文章转载请注明: resin error — java.lang.IllegalStateException: sendError() forbidden after buffer has been committed. | 2hei's site

resin error — java.lang.IllegalStateException: sendError() forbidden after buffer has been committed.:目前有4 条留言

  1. 4楼
    ncache:

    hi,2hei,我也碰到这个问题,请问你这个解决了吗?如何解决的?
    我是使用 resin3.1.8
    java.lang.IllegalStateException: sendError() forbidden after buffer has been committed.
    at com.caucho.server.connection.AbstractHttpResponse.sendError

    2009-12-24 上午 9:43
  2. 地板
    2hei:

    吼吼~ 这个问题放这好久啦,一直没什么好办法,现在我resin-3.1.6并没出现这个问题了,不过架构也有所改变。
    从caucho的mantis(http://bugs.caucho.com/view.php?id=1684)上看
    05-02-07 08:56 ferg Status assigned => closed
    这个bug貌似已经closed了。
    用到了struts吗?之前我一直认为是struts导致的。

    2009-12-24 下午 6:00
  3. very interesting, thanks

    2010-07-01 上午 8:22
  4. 沙发
    oplife:

    我通过搜索引擎找到这里,我也碰到了这个问题2次,都顺利的解决了,第1次是我的这个文件里有include一些文件,但Include进来的一个文件有问题,那么在调用整体时会报这个错。
    第2个情况还是Include时发生的,我include了4个文件,但有1个文件不存在,也会报这个错。
    供大家参考

    2010-10-16 上午 1:24