logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40260] null pointer exception in pattern layout ( in spacePad method)
Date Fri, 20 Jun 2008 20:14:17 GMT

Curt Arnold <carnold@apache.org> changed:

           What    |Removed                     |Added
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #8 from Curt Arnold <carnold@apache.org>  2008-06-20 13:14:16 PST ---
This appears to be the result of Tomcat's class loader breaking what should be
invariants in log4j.  See
https://issues.apache.org/bugzilla/show_bug.cgi?id=41939 for a discussion.

In addition to the Tomcat options to stop nulling out static members on
shutdown (described in the other thread), you might try using the
EnhancedPatternLayout in the extras companion
(http://logging.apache.org/log4j/companions/extras) which may less susceptible
to this issue since it doesn't use static member variables to add space

Sorry, but this does seem a Tomcat issue and log4j can't defend itself against
a class loader that attacks its invariants.

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org

View raw message