exception from render response phase is logged 2x
-------------------------------------------------

                 Key: MYFACES-3192
                 URL: https://issues.apache.org/jira/browse/MYFACES-3192
             Project: MyFaces Core
          Issue Type: Sub-task
    Affects Versions: 2.1.2-SNAPSHOT
         Environment: myfaces trunk
            Reporter: Martin Kočí
            Priority: Minor


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




--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to