Wicket
  1. Wicket
  2. WICKET-1478

AbortWithWebErrorCodeException in onBeforeRender causes WicketRuntimeException

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3.2
    • Fix Version/s: 1.3.5
    • Component/s: wicket
    • Labels:
      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

      1. quickstart404.jar
        16 kB
        Michael Sparer

        Activity

        Michael Sparer created issue -
        Michael Sparer made changes -
        Field Original Value New Value
        Attachment quickstart404.jar [ 12379365 ]
        Johan Compagner made changes -
        Fix Version/s 1.3.4 [ 12313089 ]
        Assignee Johan Compagner [ jcompagner ]
        Johan Compagner made changes -
        Assignee Johan Compagner [ jcompagner ] Ate Douma [ adouma ]
        Ate Douma made changes -
        Assignee Ate Douma [ adouma ] Johan Compagner [ jcompagner ]
        Johan Compagner made changes -
        Assignee Johan Compagner [ jcompagner ] Ate Douma [ adouma ]
        Martijn Dashorst made changes -
        Fix Version/s 1.3.5 [ 12313175 ]
        Fix Version/s 1.3.4 [ 12313089 ]
        Igor Vaynberg made changes -
        Assignee Ate Douma [ adouma ] Johan Compagner [ jcompagner ]
        Johan Compagner made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]

          People

          • Assignee:
            Johan Compagner
            Reporter:
            Michael Sparer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development