You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-issues@incubator.apache.org by "Ryan Williams (JIRA)" <ad...@incubator.apache.org> on 2006/06/16 00:14:30 UTC

[jira] Commented: (ADFFACES-21) Mis-ordering of statics un UIComponentUINode defeats logging/stacktraces

    [ http://issues.apache.org/jira/browse/ADFFACES-21?page=comments#action_12416431 ] 

Ryan Williams commented on ADFFACES-21:
---------------------------------------

Arjuna did 50% of the work in figuring out this issue.  Thanks, Arj.  :-)

> Mis-ordering of statics un UIComponentUINode defeats logging/stacktraces
> ------------------------------------------------------------------------
>
>          Key: ADFFACES-21
>          URL: http://issues.apache.org/jira/browse/ADFFACES-21
>      Project: MyFaces ADF-Faces
>         Type: Bug

>     Reporter: Ryan Williams
>     Assignee: Matthias Weßendorf
>     Priority: Minor
>  Attachments: static_ordering.patch
>
> In UIComponentUINode, the method _loadRenderertypeToLocalnameMap() uses a static AdfLogger instance when it encounters certain failure conditions (such as a malformatted .properties file).  Unfortunately, due to the ordering of the statics, the logger isn't instantiated yet at the time of the call.   So, instead of safely logging the message and possibly continuing, the application instead crashes with some of the weirdest errors known to man.
> The solution is simple: move the logger declaration/instantiation up above the method that uses it.  I'll attach a patch that does this.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira