incubator-adffaces-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Williams (JIRA)" <adffaces-iss...@incubator.apache.org>
Subject [jira] Commented: (ADFFACES-21) Mis-ordering of statics un UIComponentUINode defeats logging/stacktraces
Date Fri, 16 Jun 2006 00:14:30 GMT
    [ 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


Mime
View raw message