History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WW-1455
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: tm_jee
Reporter: Vlad Kravchenko
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
WebWork

Use logger to print exception stack trace in UIBean class

Created: 25/Apr/07 02:12 AM   Updated: 18/Jul/07 10:05 AM
Component/s: Views
Affects Version/s: 2.2.5
Fix Version/s: 2.2.6


 Description  « Hide
UIBean end() method prints exceptions directly into System.err:

[code]
    public boolean end(Writer writer, String body) {
        evaluateParams();
        try {
            super.end(writer, body, false);
            mergeTemplate(writer, buildTemplateName(template, getDefaultTemplate()));
        } catch (Exception e) {
            e.printStackTrace();
        }
        finally {
         popComponentStack();
        }

        return false;
    }

[/code]


Could you replace "e.printStackTrace();" with "LOG.error("Exception while rendering tag", e)"?

It is difficult to get control over System.err in contrast to the Logger output.


 All   Comments   Change History      Sort Order:
tm_jee - [18/Jul/07 10:05 AM ]
fixed. changes at revision 2929. Thanks Vlad.