ICEfaces
  1. ICEfaces
  2. ICE-3332

error-page declaration in web.xml doesn't work for specific exception types

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.1
    • Fix Version/s: 1.7.2
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      any

      Description

      Using the standard error-page declaration in web.xml only works when a java.lang.Exception is used as exception type, like

      <error-page>
      <exception-type>java.lang.Exception</exception-type>
      <location>/error.jspx</location>
      </error-page>

      Using a specific exception, like i.e. a NullPointerException the redirect to an error page won't work anymore:

      <error-page>
      <exception-type>java.lang.NullPointerException</exception-type>
      <location>/error.jspx</location>
      </error-page>

        Issue Links

          Activity

          Hide
          Michael Thiem added a comment -

          simple demo application

          Show
          Michael Thiem added a comment - simple demo application
          Hide
          Michael Thiem added a comment -

          Probably ICE-2990 is dealing with the same issue

          Show
          Michael Thiem added a comment - Probably ICE-2990 is dealing with the same issue
          Hide
          Mircea Toma added a comment -

          This is an old issue.

          Show
          Mircea Toma added a comment - This is an old issue.
          Hide
          Mircea Toma added a comment -

          Extract and re-throw root exception to be captured by the servlet container.

          Show
          Mircea Toma added a comment - Extract and re-throw root exception to be captured by the servlet container.
          Hide
          Mandeep Hayher added a comment -

          Tested successfully on ICEfaces 1.7 branch revision #17222.

          Show
          Mandeep Hayher added a comment - Tested successfully on ICEfaces 1.7 branch revision #17222.

            People

            • Assignee:
              Unassigned
              Reporter:
              Michael Thiem
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: