You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2013/07/25 01:01:48 UTC

[jira] [Commented] (TAP5-2133) DefaultRequestExceptionHandler swallows exceptions

    [ https://issues.apache.org/jira/browse/TAP5-2133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13718984#comment-13718984 ] 

Howard M. Lewis Ship commented on TAP5-2133:
--------------------------------------------

I think logging the exception is the right approach.
                
> DefaultRequestExceptionHandler swallows exceptions
> --------------------------------------------------
>
>                 Key: TAP5-2133
>                 URL: https://issues.apache.org/jira/browse/TAP5-2133
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.4
>            Reporter: Jochen Kemnade
>            Assignee: Howard M. Lewis Ship
>
> If an exception is thrown from the try block in org.apache.tapestry5.internal.services.DefaultRequestExceptionHandler.handleRequestException(Throwable), it is swallowed without any notification. In my case, the problem was a LinkCreationListener's throwing a NPE in a redirected request originating from a previous exception. This was very hard to debug because the NPE didn't show up in any stack trace or log.
> I suggest that either the handler fail completely if the try block throws an exception or at least log it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira