DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=40159>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40159 Summary: NullPointerException in org.apache.log4j.NDC.get Product: Log4j Version: 1.2 Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: Other AssignedTo: log4j-dev@logging.apache.org ReportedBy: [EMAIL PROTECTED] Giesen Giesen wrote to log4j-users on 2006-07-10: I sporadically get the following error when my JSF app starts up. Anyone know what I can do? Would the 1.3 alpha version help? (I hate to use prerelease software) Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener java.lang.NullPointerException at org.apache.log4j.NDC.get(NDC.java:209) at org.apache.log4j.spi.LoggingEvent.getNDC(LoggingEvent.java:238) ---- Google searching for NDC.get did find other mentions of NPE being thrown at the same location. The stack trace is consistent with ht == null, however ht is expected to be initialized at class load and is not changed in the log4j code base, however the field is neither static or final so there is nothing preventing client code from changing its value. The log4j 1.3 implementation is substantially different. The committed patch checks whether ht != null before calling get() and should avoid the NPE, but would be nice to know the mechanism by which it got that way. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]