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

Setting UnexpectedExceptionDisplay to IExceptionSettings.SHOW_NO_EXCEPTION_PAGE doesn't throw Servlet Exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.0-beta3
    • 1.3.2
    • wicket
    • None
    • Weblogic 8.1
      Java 1.4

    Description

      Setting UnexpectedExceptionDisplay to IExceptionSettings.SHOW_NO_EXCEPTION_PAGE doesn't throw Servlet Exception.

      In my application class:
      getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_NO_EXCEPTION_PAGE);

      But when an exception is thrown, for example:
      public Sub1Page()

      { if (true) throw new RuntimeException("This is a test"); }

      I don't get a ServletException, but a page with no text.I would have expected the container (Weblogic in this case) to display something.

      I looked in the code, but I don't see any place where the exception is wrapped in a ServletException.

      I think it's supposed to be handled in AbstractRequestCycleProcessor.respond().

      Attachments

        Activity

          People

            jcompagner Johan Compagner
            aakoch Adam A. Koch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: