Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3053 Improve error reporting and logging
  3. MYFACES-3193

Unwrap exception in ErrorPageWriter.handleThrowable

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.1.2-SNAPSHOT
    • Fix Version/s: 2.0.8, 2.1.2
    • Component/s: General
    • Labels:
      None

      Description

      If user sees this exception:
      javax.faces.FacesException: java.lang.NullPointerException
      at org.apache.myfaces.shared_impl.context.ExceptionHandlerImpl.wrap(ExceptionHandlerImpl.java:241)
      at org.apache.myfaces.shared_impl.context.ExceptionHandlerImpl.handle(ExceptionHandlerImpl.java:156)

      he/she thinks sometimes that this is a NPE (or other exception) from myfaces codebase. But callstack continues:

      Caused by: java.lang.NullPointerException
      at cz.kocicak.myfaces.ManagedBean.getValue(ManagedBean.java:2

      but nobody reads it all.

      To prevent this misunderstanding, unwrap exception in ErrorPageWriter.

        Attachments

          Activity

            People

            • Assignee:
              lu4242 Leonardo Uribe
              Reporter:
              markoc50 Martin Kočí

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment