`

java.lang.IllegalStateException: sendError() forbidden after buffer has been co

 
阅读更多

 resin struts2

 

工作中,报了如下错误,action取出数据后,在页面结合 struts2标签做显示时,就报错了,应该检查 取出来的数据是否符合 页面中的 struts2标签 或其他等等的逻辑业务 引用!可以删除页面所有内容 再一点一点添加回页面,做测试,可以找出原因

 

web 服务器  resin 问题
  java.lang.IllegalStateException: sendError() forbidden after buffer has been committed  
    
  请问这个错误是什么意思啊?
  500 Servlet Exception
java.lang.IllegalStateException: sendError() forbidden after buffer has
been committed.
at com.caucho.server.connection.AbstractHttpResponse.sendError(AbstractHttpResponse.java:485)
at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:89)
at org.apache.struts2.dispatcher.Dispatcher.sendError(Dispatcher.java:770)
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:505)
at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:76)
at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:381)
at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:76)
at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:102)
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.hmux.HmuxRequest.handleRequest(HmuxRequest.java:435)
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)

分享到:
评论
2 楼 k7710 2012-10-26  
还是 数据 或者 命名 的不正确,引起的 看看程序
1 楼 k7710 2012-10-26  
   我也遇到这个问题   是由于外键的实体 不存在!

相关推荐

Global site tag (gtag.js) - Google Analytics