Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2133

DefaultRequestExceptionHandler swallows exceptions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.4
    • 5.4
    • tapestry-core
    • None

    Description

      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.

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            jkemnade Jochen Kemnade
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: