EHC ❯ sometimes java.lang.NoClassDefFoundError: Lorg/slf4j/Logger; into ObjectGraphWalker.getAllFields
-
Bug
-
Status: Open
-
2 Major
-
Resolution:
-
ehcache-core
-
-
fmazeira
-
Reporter: fmazeira
-
March 08, 2013
-
0
-
Watchers: 3
-
March 11, 2013
-
Description
the following exception occurs sometimes
Caused by: java.lang.NoClassDefFoundError: Lorg/slf4j/Logger; at java.lang.Class.getDeclaredFields0(Native Method) ~[na:1.6.0_24] at java.lang.Class.privateGetDeclaredFields(Class.java:2291) ~[na:1.6.0_24] at java.lang.Class.getDeclaredFields(Class.java:1743) ~[na:1.6.0_24] at net.sf.ehcache.pool.sizeof.ObjectGraphWalker.getAllFields(ObjectGraphWalker.java:266) ~[ehcache-core-2.6.3.jar:na] at net.sf.ehcache.pool.sizeof.ObjectGraphWalker.getFilteredFields(ObjectGraphWalker.java:229) ~[ehcache-core-2.6.3.jar:na] at net.sf.ehcache.pool.sizeof.ObjectGraphWalker.walk(ObjectGraphWalker.java:160) ~[ehcache-core-2.6.3.jar:na] at net.sf.ehcache.pool.sizeof.SizeOf.deepSizeOf(SizeOf.java:73) ~[ehcache-core-2.6.3.jar:na] at net.sf.ehcache.pool.impl.DefaultSizeOfEngine.sizeOf(DefaultSizeOfEngine.java:173) ~[ehcache-core-2.6.3.jar:na] at net.sf.ehcache.pool.impl.AbstractPoolAccessor.replace(AbstractPoolAccessor.java:99) ~[ehcache-core-2.6.3.jar:na] at net.sf.ehcache.store.chm.SelectableConcurrentHashMap$Segment.recalculateSize(SelectableConcurrentHashMap.java:772) ~[ehcache-core-2.6.3.jar:na] at net.sf.ehcache.store.chm.SelectableConcurrentHashMap.recalculateSize(SelectableConcurrentHashMap.java:490) ~[ehcache-core-2.6.3.jar:na] at net.sf.ehcache.store.MemoryStore.recalculateSize(MemoryStore.java:1062) ~[ehcache-core-2.6.3.jar:na] at net.sf.ehcache.store.FrontEndCacheTier.recalculateSize(FrontEndCacheTier.java:765) ~[ehcache-core-2.6.3.jar:na] at net.sf.ehcache.Cache.recalculateSize(Cache.java:4241) ~[ehcache-core-2.6.3.jar:na] at org.terracotta.modules.ehcache.store.servermap.OnlineEhcacheSMLocalStore.recalculateSize(OnlineEhcacheSMLocalStore.java:191) ~[na:na] at org.terracotta.modules.ehcache.store.servermap.EhcacheSMLocalStore.recalculateSize(EhcacheSMLocalStore.java:195) ~[na:na] at com.terracotta.toolkit.collections.servermap.L1ServerMapLocalCacheStoreImpl.recalculateSize(L1ServerMapLocalCacheStoreImpl.java:174) ~[na:na] at com.tc.object.servermap.localcache.impl.ServerMapLocalCacheImpl.recalculateSize(ServerMapLocalCacheImpl.java:849) ~[na:na] at com.tc.object.TCObjectServerMapImpl.recalculateLocalCacheSize(TCObjectServerMapImpl.java:835) ~[na:na] at com.terracotta.toolkit.collections.ConcurrentDistributedServerMapDso.recalculateLocalCacheSize(ConcurrentDistributedServerMapDso.java:887) ~[na:na] at org.terracotta.collections.ConcurrentDistributedServerMap.recalculateLocalCacheSize(ConcurrentDistributedServerMap.java:340) ~[na:na] at org.terracotta.cache.TerracottaDistributedCache.recalculateLocalCacheSize(TerracottaDistributedCache.java:877) ~[na:na] at org.terracotta.modules.ehcache.store.ClusteredStoreBackendImpl.recalculateLocalCacheSize(ClusteredStoreBackendImpl.java:224) ~[na:na] at org.terracotta.modules.ehcache.store.ValueModeHandlerSerialization.createElement(ValueModeHandlerSerialization.java:131) ~[na:na] at org.terracotta.modules.ehcache.store.ValueModeHandlerHibernate.createElement(ValueModeHandlerHibernate.java:8) ~[na:na] at org.terracotta.modules.ehcache.store.ValueModeHandlerSerialization.createElement(ValueModeHandlerSerialization.java:95) ~[na:na] at org.terracotta.modules.ehcache.store.ValueModeHandlerHibernate.createElement(ValueModeHandlerHibernate.java:8) ~[na:na] at org.terracotta.modules.ehcache.store.backend.NonStrictBackend.get(NonStrictBackend.java:184) ~[na:na] at org.terracotta.modules.ehcache.store.ClusteredStore.doGet(ClusteredStore.java:421) ~[na:na] at org.terracotta.modules.ehcache.store.ClusteredStore.get(ClusteredStore.java:407) ~[na:na] at org.terracotta.modules.ehcache.store.ClusteredSafeStore.get(ClusteredSafeStore.java:682) ~[na:na] … 29 common frames omitted Caused by: java.lang.ClassNotFoundException: org.slf4j.Logger at java.net.URLClassLoader$1.run(URLClassLoader.java:202) ~[na:1.6.0_24] at java.security.AccessController.doPrivileged(Native Method) ~[na:1.6.0_24] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) ~[na:1.6.0_24] at com.terracotta.express.L1Loader.findClass(L1Loader.java:32) ~[terracotta-toolkit-1.6-runtime-5.3.0.jar:na] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) ~[na:1.6.0_24] at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ~[na:1.6.0_24] … 60 common frames omitted
Can you send us a reproducible test case?