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

Ceki Gulcu listid at qos.ch
Tue Sep 25 22:08:13 CEST 2007


Jetty indeed uses an older version of SLF4J. However, it does not export (or 
make visible) the SLF4J classes it uses. Thus, I would not worry about the Jetty 
plug-in.

Christopher Moesel wrote:
> Hi Ceki,
> 
> I didn't think I had jcl-over-slf4j 1.3.1 in there, but I'll check.  I was just thinking about it though-- I am using Maven with the jetty:run plugin.  Is it possible that Jetty is bringing in the older version?
> 
> I'll try this out again this afternoon and see what happens.  I'll also try it in tomcat to see if that changes anything.
> 
> Thanks for the reply!
> -Chris
> 
> -----Original Message-----
> From: user-bounces at slf4j.org [mailto:user-bounces at slf4j.org] On Behalf Of Ceki Gulcu
> Sent: Tuesday, September 25, 2007 2:55 PM
> To: User list for the slf4j project
> Subject: Re: [slf4j-user] java.lang.IllegalStateException: Level number 20 is not recognized.
> 
> 
> 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