[logback-user] CopyOnInheritThreadLocal NullPointerException with 0.9.10
Yannick Haudry
yhaudry at gmail.com
Tue Oct 28 10:23:09 CET 2008
Hi,
I' getting the same error with 0.9.10, slf4j 1.5.5 under tomcat 6
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.NullPointerException
at java.util.HashMap.<init>(HashMap.java:223)
at org.slf4j.impl.CopyOnInheritThreadLocal.childValue(CopyOnInheritThreadLocal.java:20)
at org.slf4j.impl.CopyOnInheritThreadLocal.childValue(CopyOnInheritThreadLocal.java:11)
at java.lang.ThreadLocal$ThreadLocalMap.<init>(ThreadLocal.java:334)
at java.lang.ThreadLocal$ThreadLocalMap.<init>(ThreadLocal.java:242)
at java.lang.ThreadLocal.createInheritedMap(ThreadLocal.java:217)
at java.lang.Thread.init(Thread.java:360)
at java.lang.Thread.<init>(Thread.java:463)
at org.apache.catalina.core.ContainerBase.threadStart(ContainerBase.java:1538)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1056)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
On Tue, Oct 28, 2008 at 8:27 AM, Gianni Doe <gdoe6545 at yahoo.it> wrote:
> Just tried 0.9.10 with slf4j 1.5.5 and I get the following exception,
> reverting to 0.9.9 + slf4j 1.5.5 it works fine.
>
> Not quite sure what's happening here but if there's any extra info I
> can provide...
>
> Caused by: java.lang.NullPointerException
> at java.util.HashMap.<init>(HashMap.java:223)
> at
> org
> ..slf4j
> ..impl
> ..CopyOnInheritThreadLocal.childValue(CopyOnInheritThreadLocal.java:20)
> at
> org
> ..slf4j
> ..impl
> ..CopyOnInheritThreadLocal.childValue(CopyOnInheritThreadLocal.java:11)
> at java.lang.ThreadLocal$ThreadLocalMap.<init>(ThreadLocal.java:334)
> at java.lang.ThreadLocal$ThreadLocalMap.<init>(ThreadLocal.java:242)
> at java.lang.ThreadLocal.createInheritedMap(ThreadLocal.java:217)
> at java.lang.Thread.init(Thread.java:358)
> at java.lang.Thread.<init>(Thread.java:419)
> at net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatReceiver
> $
> MulticastReceiverThread
> ..<init>(MulticastKeepaliveHeartbeatReceiver.java:103)
> at
> net
> ..sf
> ..ehcache
> ..distribution
> ..MulticastKeepaliveHeartbeatReceiver
> ..init(MulticastKeepaliveHeartbeatReceiver.java:79)
> at
> net
> ..sf
> ..ehcache
> ..distribution
> ..MulticastRMICacheManagerPeerProvider
> ..init(MulticastRMICacheManagerPeerProvider.java:89)
> at net.sf.ehcache.CacheManager.init(CacheManager.java:228)
> at net.sf.ehcache.CacheManager.<init>(CacheManager.java:212)
> at net.sf.ehcache.CacheManager.create(CacheManager.java:381)
> at
> net
> ..sf
> ..ehcache
> ..hibernate
> ..SingletonEhCacheProvider.start(SingletonEhCacheProvider.java:123)
> at
> org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:
> 183)
> at
> org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:
> 1300)
> at
> org
> ..hibernate
> ..cfg
> ..AnnotationConfiguration
> ..buildSessionFactory(AnnotationConfiguration.java:859)
> at
> org
> ..hibernate
> ..ejb
> ..Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
> at
> org
> ..hibernate
> ..ejb
> ..HibernatePersistence
> ..createContainerEntityManagerFactory(HibernatePersistence.java:132)
> at
> org
> ..springframework
> ..orm
> ..jpa
> ..LocalContainerEntityManagerFactoryBean
> ..createNativeEntityManagerFactory
> (LocalContainerEntityManagerFactoryBean.java:224)
> at
> org
> ..springframework
> ..orm
> ..jpa
> ..AbstractEntityManagerFactoryBean
> ..afterPropertiesSet(AbstractEntityManagerFactoryBean.java:291)
> at
> org
> ..springframework
> ..beans
> ..factory
> ..support
> ..AbstractAutowireCapableBeanFactory
> ..invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
> at
> org
> ..springframework
> ..beans
> ..factory
> ..support
> ..AbstractAutowireCapableBeanFactory
> ..initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
> ... 64 more
>
>
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user
>
More information about the Logback-user
mailing list