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

          Michael Thiem created issue -
          Michael Thiem made changes -
          Field Original Value New Value
          Support Case References https://www.icesoft.ca:4443/supportilla/show_bug.cgi?id=4984
          Hide
          Michael Thiem added a comment -

          simple demo application

          Show
          Michael Thiem added a comment - simple demo application
          Michael Thiem made changes -
          Attachment Test_ErrorPage.zip [ 11131 ]
          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
          Michael Thiem made changes -
          Link This issue duplicates ICE-2990 [ ICE-2990 ]
          Ken Fyten made changes -
          Fix Version/s 1.7.2 [ 10130 ]
          Assignee Priority P2
          Assignee Mircea Toma [ mircea.toma ]
          Hide
          Mircea Toma added a comment -

          This is an old issue.

          Show
          Mircea Toma added a comment - This is an old issue.
          Mircea Toma made changes -
          Link This issue duplicates ICE-1133 [ ICE-1133 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #17220 Wed Jul 23 15:59:39 MDT 2008 mircea.toma ICE-3332 Extract and re-throw root exception to be captured by the servlet container.
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/core/ViewBoundServer.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #17221 Wed Jul 23 16:01:04 MDT 2008 mircea.toma ICE-3332 Extract and re-throw root exception to be captured by the servlet container.
          Files Changed
          Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/core/src/com/icesoft/faces/webapp/http/core/ViewBoundServer.java
          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.
          Mircea Toma made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          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.
          Ken Fyten made changes -
          Fix Version/s 1.7.2RC1 [ 10140 ]
          Fix Version/s 1.7.2 [ 10130 ]
          Ken Fyten made changes -
          Fix Version/s 1.7.2 [ 10130 ]
          Fix Version/s 1.7.2RC1 [ 10140 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Assignee Priority P2
          Assignee Mircea Toma [ mircea.toma ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: