Response already committed
--------------------------
Key: WW-3199
URL: https://issues.apache.org/struts/browse/WW-3199
Project: Struts 2
Issue Type: Task
Components: Core Interceptors
Affects Versions: 2.1.6
Environment: Weblogic Server.
Struts,Spring and Hibernate.
Reporter: Rameshkumar P
Priority: Critical
We are using struts, Spring and Hibernate in our application. For handling
exceptions in application, we are using global exception mappings in struts2.
Whenever an exception is coming in the application it is taking us to required
action and the functionality is working . But in weblogic server logs we are
getting following error :
java.lang.IllegalStateException: Response already committed
at
weblogic.servlet.internal.ServletResponseImpl.objectIfCommitted(ServletResponseImpl.java:1462)
at
weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:601)
at
org.apache.struts2.dispatcher.Dispatcher.sendError(Dispatcher.java:725)
at
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:485)
at
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
when we try to analyze the problem in debug mode of weblogic server, it is
coming from interceptor
WebAppServletContext.execute(ServletRequestImpl, ServletResponseImpl) line:
2032 .
can anybody help me to remove this error from application?
below i' m providing the struts.xml configuration for global exception handling
<global-results>
<result name="globalError" type="chain">
ExceptionHandle
</result>
</global-results>
<global-exception-mappings>
<exception-mapping exception="java.lang.Exception"
result="globalError" />
</global-exception-mappings>
<action name="ExceptionHandle" class="common.action.ExceptionHandler">
<interceptor-ref name="defaultStack" />
<result name="globalError" type="tiles">main.error</result>
</action>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.