[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4j-user
Subject:    Re: Logger Issues on Hotdeploy
From:       Thorbjørn_Ravn_Andersen <thunderaxiom () gmail ! com>
Date:       2008-07-23 23:35:20
Message-ID: 4887C038.2010705 () gmail ! com
[Download RAW message or body]

Fu-Tung Cheng skrev  den 23-07-2008 21:12:
> This happens on hotdeploy only.  Tomcat 6.0.16, jdk 1.6.0.   The logging call is \
> just in a normal method that looks like: 
> 
The stack trace you provided does not correspond to the source of 1.2.15.

Could you please produce a stack trace when using log4j 1.2.15?

My suspicion is that it happens in this snippet, when the s.peek() call 
returns null.

  String get() {
    Stack s = getCurrentStack();
    if(s != null && !s.isEmpty())
      return ((DiagnosticContext) s.peek()).fullMessage;
    else
      return null;
  }


-- 
  Thorbjørn


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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic