Steve,

Which version of log4j is this? It's not log4j 1.1.3 is it? Regards, Ceki

At 22:32 24.07.2001 -0700, Steve Duran wrote:

>  Greetings,
>
>  I am reporting an uncaught exception as indicated on
>the FAQ page.  Log4j is consistently throwing this
>exception from different areas in the code, but the
>stack trace within Log4j is always the same as shown
>below.  Apparently it doesn't get thrown on our unix
>server, but is consistently thrown on our linux
>machines.  I tried making the Category object a
>private member variable, but it hasn't had any effect.
>
>  I'm thinking that this is a threading problem, and
>I've modified the forcedLog method to make it
>synchronized.  Tomorrow we'll see if it corrects the
>problem.  Why isn't this method synchronized in the
>distribution release?

It won't have any effect. Why do you think forcedLog should be synchronized? 


>  Steve
>
>
>Stack Trace:
>java.lang.NullPointerException:
>        at
>org.apache.log4j.FileAppender.subAppend(FileAppender.java:441)
>        at
>org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:258)
>
>        at
>org.apache.log4j.FileAppender.append(FileAppender.java:219)
>        at
>org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
>        at
>org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:56)
>
>        at
>org.apache.log4j.Category.callAppenders(Category.java:258)
>        at
>org.apache.log4j.Category.forcedLog(Category.java:454)
>        at
>org.apache.log4j.Category.debug(Category.java:315)
>        at
>
>
>
>__________________________________________________
>Do You Yahoo!?
>Make international calls for as low as $.04/minute with Yahoo! Messenger
>http://phonecard.yahoo.com/
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

--
Ceki Gülcü - http://qos.ch


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to