Have you tried watching "log" with a debugger?

Tim

-----Original Message-----
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 26, 2006 11:17 AM
To: Tomcat Users List
Subject: Re: tomcat 5.5.16 does strange things with my log4j?

this is interesting, can you supply a simple test case, cause somewhere 
the variable "log" must be set to null

Filip


Leon Rosenberg wrote:
> ok, I changed the code a bit:
>                       if (log==null)
>                               System.out.println("LOG IS NULL!!!");
>                       if (/*log!=null && */log.isDebugEnabled())<-- line
231
>                               log.debug("Timer execution lasted:
"+duration);
>
> console output:
> LOG IS NULL!!!
> Exception in thread "Thread-1" java.lang.NullPointerException
>         at
xxx...generic.services.timer.TimerServiceImpl.run(TimerServiceImpl.java:231)
>         at java.lang.Thread.run(Thread.java:595)
>
> regards
> Leon
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>   


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



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

Reply via email to