DefaultExceptionHandler does not unwrap InvocationTargetException when 
executing proxys
---------------------------------------------------------------------------------------

                 Key: STS-854
                 URL: http://www.stripesframework.org/jira/browse/STS-854
             Project: Stripes
          Issue Type: Bug
          Components: ActionBean Dispatching
    Affects Versions: Release 1.5.6
         Environment: Tomcat 7.0.19; java version "1.6.0_27", Java(TM) SE 
Runtime Environment (build 1.6.0_27-b07), Java HotSpot(TM) 64-Bit Server VM 
(build 20.2-b06, mixed mode); Fedora Core 15 x64

            Reporter: Daniel Hodder
         Attachments: exception.patch

When an exception handler proxy is used, any exception throws by the handler 
will be wrapped in an InvocationTargetException. The method 
net.sourceforge.stripes.exception.DefaultExceptionHandler.HandlerProxy.handle(Throwable,
 HttpServletRequest, HttpServletResponse), does not unwrap this so if the 
method throws any exception it will be wrapped in a StripesServletException and 
then re-thrown. This results in an additional exception in the trace that does 
not mean anything.

A patch to fix this is attached.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to