java senderror_java - Tomcat异常在提交响应后无法调用sendError()? - 堆栈内存溢出...

我在应用程序中执行某些操作时得到了

java.lang.IllegalStateException无法调用sendError()

当我再次重新加载页面时,它会正常工作一段时间,但经过一段时间再次显示相同的异常。 我怎样才能克服这个例外?

以下是例外情况:

HTTP Status 500 - Cannot call sendError() after the response has been committed

type Exception report

message Cannot call sendError() after the response has been committed

description The server encountered an internal error that prevented it from fulfilling this request.

exception

java.lang.IllegalStateException: Cannot call sendError() after the response has been committed

org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:451)

org.apache.struts2.dispatcher.Dispatcher.sendError(Dispatcher.java:725)

org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:485)

org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)

note The full stack trace of the root cause is available in the Apache Tomcat/7.0.40 logs.

在struts.xml

/register.jsp

list

/list.jsp

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值