[slf4j-user] java.lang.IllegalStateException: Level number 20 is not recognized.

Ceki Gulcu listid at qos.ch
Tue Sep 25 20:54:41 CEST 2007


Looking at the problem a little more, I suspect that you are using 
jcl-over-slf4j version 1.3.1 and slf4j-api version 1.4.x. Is that possible?

Ceki Gulcu wrote:
> Hi Chris,
> 
> Several constants defined in the org.slf4j.spi.LocationAwareLogger interface had 
> their values changed in SLF4J version 1.4.0.
> 
> It looks like a library you are using was compiled with SLF4J 1.3.1 and had the 
> aforementioned constants folded into its ".class" file.
> 
> Was the version of Spring you are using compiled with SLF4J 1.3.1? If so, would 
> you consider asking the Spring folks to upgrade to SLF4J 1.4.3?
> 
> HTH,
> 
> CMoesel wrote:
>> So, I assume that no reply means that no one else has seen this bug or has
>> any ideas on how to fix it?  That's unfortunate-- I guess I'll have to stick
>> with 1.3.1 for now and give up the MDC.  When I have more time, perhaps I'll
>> try to investigate further on my own.
>>
>> Thanks,
>> Chris
>>
>>
>> CMoesel wrote:
>>> Hello,
>>>
>>> I've been using SLF4J 1.3.1 with jcl104-over-slf4j and Logback 0.9.5 for
>>> a while.
>>>
>>> Last night I upgraded to SLF4J 1.4.3 with jcl104-over-slf4j and Logback
>>> 0.9.8.  Now I am receiving the following stack traces:
>>>
>>> java.lang.IllegalStateException: Level number 20 is not recognized.
>>>             at
>>> org.slf4j.impl.JDK14LoggerAdapter.log(JDK14LoggerAdapter.java:529)
>>>             at
>>> org.apache.commons.logging.impl.SLF4JLocationAwareLog.info(SLF4JLocation
>>> AwareLog.java:120)
>>>             at
>>> org.springframework.context.support.AbstractApplicationContext.refresh(A
>>> bstractApplicationContext.java:305)
>>>             at
>>> org.springframework.context.support.ClassPathXmlApplicationContext.<init
>>>> (ClassPathXmlApplicationContext.java:91)
>>>             at
>>> org.springframework.context.support.ClassPathXmlApplicationContext.<init
>>>> (ClassPathXmlApplicationContext.java:75)
>>>             ... (rest snipped off)
>>>
>>> I've googled and searched the mailing list archive, but I can't seem to
>>> find how to fix this.  Especially since it looks like the logging
>>> statement is not coming out of my own code, but rather, from Spring.
>>> Any help would be greatly appreciated as I'd really like to upgrade and
>>> use the MDC.
>>>
>>> Thanks,
>>> Chris
>>> _______________________________________________
>>> user mailing list
>>> user at slf4j.org
>>> http://www.slf4j.org/mailman/listinfo/user
>>>
> 

-- 
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch



More information about the slf4j-user mailing list