You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by su...@wipro.com on 2009/07/20 16:24:16 UTC

RE: Problem with Global Exception Mapping

 
Hi,

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(ServletR
esponseImpl.java:1462)
        at
weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseI
mpl.java:601)
        at
org.apache.struts2.dispatcher.Dispatcher.sendError(Dispatcher.java:725)
        at
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:4
85)
        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>

Thanks 
Surya

Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org