Wicket
  1. Wicket
  2. WICKET-1038

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0-beta3
    • Fix Version/s: 1.3.2
    • Component/s: wicket
    • Labels:
      None
    • Environment:
      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().

        Activity

        Hide
        Eelco Hillenius added a comment -

        bulk set issues to next version. I only did a quick check (and filtered some out for 1.3.1), but we can always bump em again.

        Show
        Eelco Hillenius added a comment - bulk set issues to next version. I only did a quick check (and filtered some out for 1.3.1), but we can always bump em again.
        Hide
        Johan Compagner added a comment -

        now the internal error status code will be set if no wicket error page will be shown

        Show
        Johan Compagner added a comment - now the internal error status code will be set if no wicket error page will be shown

          People

          • Assignee:
            Johan Compagner
            Reporter:
            Adam A. Koch
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development