Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-1707

log catched exceptions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.5
    • 1.1.6
    • None
    • None

    Description

      Please log catched exceptions e.g. in org.apache.myfaces.renderkit.html.HtmlFormatRenderer:

      103 MessageFormat format = new MessageFormat(pattern, facesContext.getViewRoot().getLocale());
      104 try
      105

      { 106 return format.format(args); 107 }

      108 catch (Exception e)
      109

      { 110 log.error("Error formatting message of component " + htmlOutputFormat.getClientId(facesContext)); 111 return ""; 112 }

      Notice the missing Exception in the call of log.error()! It should be log.error("your message", e).

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            brianpreuss@gmx.de Brian Preuß
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: