Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-1478

AbortWithWebErrorCodeException in onBeforeRender causes WicketRuntimeException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3.2
    • 1.3.5
    • wicket
    • None

    Description

      Using custom error pages as described on http://cwiki.apache.org/WICKET/error-pages-and-feedback-messages.html, a wicket RTE gets thrown "There is no application attached to current thread [threadname]" when a AbortWithWebErrorCodeException is thrown in the onBeforeRender method of a WebPage. Note that this only happens when using a custom error page defined in web.xml.

      See attached quickstart for the complete stacktrace (and my usecase)
      See also the mailinglist entry on http://www.nabble.com/Throw-AbortWithWebErrorCodeException-in-onBeforeRender-to16446341.html#a16473849

      Attachments

        1. quickstart404.jar
          16 kB
          Michael Sparer

        Activity

          People

            jcompagner Johan Compagner
            msparer Michael Sparer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: