[slf4j-user] Receiving strange exception - Level number 40 is not recognized.

Ceki Gulcu listid at qos.ch
Thu Apr 24 14:57:09 CEST 2008


Jeffrey,

It seems to me like you are mixing various slf4j versions. The
internal representation of level changed between SLF4J version 1.3.1
and 1.4.0 when the trace level was introduced. Could you try using a
version of SLF4J later than 1.3.1? I would recommend version 1.5.0.

You might also want to check whether you are using different versions
of SLF4J simultaneously.

I hope this helps,


Jeffrey Puro wrote:
> I am receiving the following stack trace when trying to use slf4j within
> JBoss AS 4.0.  I am using 1.3.1 with commons logging 1.1.  I'm guessing
> it has to do with some dependency issue, and perhaps an older logger
> implementation.  Thanks in advance.
> 
> 
> java.lang.IllegalStateException: Level number 40 is not recognized.
> 	at
> org.slf4j.impl.Log4jLoggerAdapter.log(Log4jLoggerAdapter.java:421)
> 	at
> org.apache.commons.logging.impl.SLF4JLocationAwareLog.error(SLF4JLocatio
> nAwareLog.java:173)
> 	at
> org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1280
> )
> 	at
> org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
> 	at
> org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
> 	at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U
> nknown Source)
> 	at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
> patcher.dispatch(Unknown Source)
> 	at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
> wn Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
> 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> 	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> Source)
> 	at
> org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
> 	at
> org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
> 	at
> org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextCo
> nfig.java:351)
> 	at
> org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1041)
> 	at
> org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j
> ava:260)
> 	at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
> pport.java:119)
> 	at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4143
> )
> 	at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
> va:759)
> 	at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
> 	at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 
> 
> This email (and any attachments) is intended only for the use of the individual or entity named above and may contain information that is privileged and confidential. If you are not the intended recipient, or have unauthorized access, you are hereby notified that copying, disseminating, distributing or taking any action in reliance on this email is strictly prohibited<br />
> 
> Opinions, conclusions and other information in this message that do not relate to the official business of our firm shall be understood as neither given nor endorsed by it.
> _______________________________________________
> user mailing list
> user at slf4j.org
> http://www.slf4j.org/mailman/listinfo/user
> 

-- 
Ceki Gülcü
QOS.ch is looking to hire talented developers in Switzerland.  If
interested, please contact c e k i AT q o s . c h




More information about the slf4j-user mailing list