I don't know of any way that could happen. :-/
On 12/7/05, Jeff Drew <[EMAIL PROTECTED]> wrote:
> I use a String as the argument. It's crude, but I thought it would never
> break.
>
> static final Logger logger = Logger.getLogger("LoggerName");
>
> Is it possible for the String to become null?
>
I use a String as the argument. It's crude, but I thought it would never
break.
static final Logger logger = Logger.getLogger("LoggerName");
Is it possible for the String to become null?
On 12/7/05, Nicolas De Loof <[EMAIL PROTECTED]> wrote:
>
>
> your Nullpointer is thrown in CategoryKey con
your Nullpointer is thrown in CategoryKey constructor :
CategoryKey(String name) {
this.name = name;
>hashCache = name.hashCode();
}
This sounds like you try to create a logger with a null category name.
To avoid this, you may use the class to build your loggers :
private static Logger
My first guess is that you are calling Logger.getLogger(null)
On 12/7/05, Jeff Drew <[EMAIL PROTECTED]> wrote:
> My application had an error in the log4j code. It is likely a problem in my
> code, but I'd appreciate any insights into what this particular error
> implies. This code has been runn
My application had an error in the log4j code. It is likely a problem in my
code, but I'd appreciate any insights into what this particular error
implies. This code has been running for quite without seeing this error.
java.lang.NullPointerException
at java.lang.String.intern()Ljava.lang.St