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

exception from render response phase is logged 2x

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

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.2-SNAPSHOT
    • 2.0.8, 2.1.2
    • General
    • None
    • myfaces trunk

    Description

      If a exception occurs in render response phase (see MYFACES-3191), exception and its stacktrace is outputed 2x in log:
      1) from org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.handleRenderException
      2) from ExceptionHandlerImpl/ErrorPagewriter

      The first one is unwanted, because all exceptions should be handled with exception handling mechanism. Remove that logging or change its level to FINE.

      27.6.2011 21:40:21 org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage handleRenderException
      SEVERE: Error Rendering View[/renderResponseExceptions.xhtml]
      javax.faces.FacesException: Could not retrieve value of component with path :

      {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /renderResponseExceptions.xhtml][Class: javax.faces.component.html.HtmlBody,Id: j_id773823935_2e1f9d8b][Class: javax.faces.component.html.HtmlForm,Id: j_id773823935_2e1f9df1][Class: javax.faces.component.html.HtmlOutputText,Id: outputText]}

      at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getValue(RendererUtils.java:347)
      at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getStringValue(RendererUtils.java:295)
      at org.apache.myfaces.shared_impl.renderkit.html.HtmlTextRendererBase.renderOutput(HtmlTextRendererBase.java:92)

      ....

      27.6.2011 21:40:21 org.apache.myfaces.renderkit.ErrorPageWriter handleThrowable
      SEVERE: An exception occurred
      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:15

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            lu4242 Leonardo Uribe
            markoc50 Martin Kočí
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment