[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Teracotta causing my web app server instance to crash  XML
Forum Index -> Terracotta Platform
Author Message
jinish86

neo

Joined: 10/15/2013 13:59:14
Messages: 3
Offline

Hi,
I am getting the below error frequently and this is causing my server instance to crash. Can any please tell me the possible rootcause for this and please tell me how to fix this.

Teracotta version: 3.6.2
eh cache version: 2.5.2

Below is the exception:

Oct 15, 2013 3:43:29 PM org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already. Could not load net.sf.ehcache.concurrent.LockType. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1566)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
at net.sf.ehcache.store.FrontEndCacheTier.writeLock(FrontEndCacheTier.java:644)
at net.sf.ehcache.store.FrontEndCacheTier.removeAll(FrontEndCacheTier.java:503)
at net.sf.ehcache.Cache.removeAll(Cache.java:2461)
at net.sf.ehcache.Cache.removeAll(Cache.java:2446)
at org.terracotta.modules.ehcache.store.servermap.OnlineEhcacheSMLocalStore.clear(OnlineEhcacheSMLocalStore.java:133)
at org.terracotta.modules.ehcache.store.servermap.EhcacheSMLocalStore.clear(EhcacheSMLocalStore.java:132)
at com.terracotta.toolkit.collections.servermap.L1ServerMapLocalCacheStoreImpl.clear(L1ServerMapLocalCacheStoreImpl.java:35)
at com.tc.object.servermap.localcache.impl.L1ServerMapLocalCacheManagerImpl.shutdown(L1ServerMapLocalCacheManagerImpl.java:231)
at com.tc.object.ClientObjectManagerImpl$ObjectStore.shutdown(ClientObjectManagerImpl.java:1350)
at com.tc.object.ClientObjectManagerImpl.shutdown(ClientObjectManagerImpl.java:322)
at com.tc.object.handshakemanager.ClientHandshakeManagerImpl.shutdownCallbacks(ClientHandshakeManagerImpl.java:259)
at com.tc.object.handshakemanager.ClientHandshakeManagerImpl.shutdown(ClientHandshakeManagerImpl.java:93)
at com.tc.object.ClientShutdownManager.closeLocalWork(ClientShutdownManager.java:96)
at com.tc.object.ClientShutdownManager.execute(ClientShutdownManager.java:65)
at com.tc.object.bytecode.ManagerImpl.shutdownClient(ManagerImpl.java:323)
at com.tc.object.bytecode.ManagerImpl.shutdown(ManagerImpl.java:310)
at com.tc.object.bytecode.ManagerImpl.access$1600(ManagerImpl.java:92)
at com.tc.object.bytecode.ManagerImpl$ShutdownAction.run(ManagerImpl.java:617)
at java.lang.Thread.run(Thread.java:662)
Exception in thread "Thread-21" java.lang.NoClassDefFoundError: net/sf/ehcache/concurrent/LockType
at net.sf.ehcache.store.FrontEndCacheTier.writeLock(FrontEndCacheTier.java:644)
at net.sf.ehcache.store.FrontEndCacheTier.removeAll(FrontEndCacheTier.java:503)
at net.sf.ehcache.Cache.removeAll(Cache.java:2461)
at net.sf.ehcache.Cache.removeAll(Cache.java:2446)
at org.terracotta.modules.ehcache.store.servermap.OnlineEhcacheSMLocalStore.clear(OnlineEhcacheSMLocalStore.java:133)
at org.terracotta.modules.ehcache.store.servermap.EhcacheSMLocalStore.clear(EhcacheSMLocalStore.java:132)
at com.terracotta.toolkit.collections.servermap.L1ServerMapLocalCacheStoreImpl.clear(L1ServerMapLocalCacheStoreImpl.java:35)
at com.tc.object.servermap.localcache.impl.L1ServerMapLocalCacheManagerImpl.shutdown(L1ServerMapLocalCacheManagerImpl.java:231)
at com.tc.object.ClientObjectManagerImpl$ObjectStore.shutdown(ClientObjectManagerImpl.java:1350)
at com.tc.object.ClientObjectManagerImpl.shutdown(ClientObjectManagerImpl.java:322)
at com.tc.object.handshakemanager.ClientHandshakeManagerImpl.shutdownCallbacks(ClientHandshakeManagerImpl.java:259)
at com.tc.object.handshakemanager.ClientHandshakeManagerImpl.shutdown(ClientHandshakeManagerImpl.java:93)
at com.tc.object.ClientShutdownManager.closeLocalWork(ClientShutdownManager.java:96)
at com.tc.object.ClientShutdownManager.execute(ClientShutdownManager.java:65)
at com.tc.object.bytecode.ManagerImpl.shutdownClient(ManagerImpl.java:323)
at com.tc.object.bytecode.ManagerImpl.shutdown(ManagerImpl.java:310)
at com.tc.object.bytecode.ManagerImpl.access$1600(ManagerImpl.java:92)
at com.tc.object.bytecode.ManagerImpl$ShutdownAction.run(ManagerImpl.java:617)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException: net.sf.ehcache.concurrent.LockType
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
... 19 more
Exception in thread "Thread-39" java.lang.NoClassDefFoundError: net/sf/ehcache/concurrent/LockType
at net.sf.ehcache.store.FrontEndCacheTier.writeLock(FrontEndCacheTier.java:644)
at net.sf.ehcache.store.FrontEndCacheTier.removeAll(FrontEndCacheTier.java:503)
at net.sf.ehcache.Cache.removeAll(Cache.java:2461)
at net.sf.ehcache.Cache.removeAll(Cache.java:2446)
at org.terracotta.modules.ehcache.store.servermap.OnlineEhcacheSMLocalStore.clear(OnlineEhcacheSMLocalStore.java:133)
at org.terracotta.modules.ehcache.store.servermap.EhcacheSMLocalStore.clear(EhcacheSMLocalStore.java:132)
at com.terracotta.toolkit.collections.servermap.L1ServerMapLocalCacheStoreImpl.clear(L1ServerMapLocalCacheStoreImpl.java:35)
at com.tc.object.servermap.localcache.impl.L1ServerMapLocalCacheManagerImpl.shutdown(L1ServerMapLocalCacheManagerImpl.java:231)
at com.tc.object.ClientObjectManagerImpl$ObjectStore.shutdown(ClientObjectManagerImpl.java:1350)
at com.tc.object.ClientObjectManagerImpl.shutdown(ClientObjectManagerImpl.java:322)
at com.tc.object.handshakemanager.ClientHandshakeManagerImpl.shutdownCallbacks(ClientHandshakeManagerImpl.java:259)
at com.tc.object.handshakemanager.ClientHandshakeManagerImpl.shutdown(ClientHandshakeManagerImpl.java:93)
at com.tc.object.ClientShutdownManager.closeLocalWork(ClientShutdownManager.java:96)
at com.tc.object.ClientShutdownManager.execute(ClientShutdownManager.java:65)
at com.tc.object.bytecode.ManagerImpl.shutdownClient(ManagerImpl.java:323)
at com.tc.object.bytecode.ManagerImpl.shutdown(ManagerImpl.java:310)
at com.tc.object.bytecode.ManagerImpl.access$1600(ManagerImpl.java:92)
at com.tc.object.bytecode.ManagerImpl$ShutdownAction.run(ManagerImpl.java:617)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException: net.sf.ehcache.concurrent.LockType
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
... 19 more
teck

seraphim
[Avatar]
Joined: 05/24/2006 15:03:25
Messages: 1128
Offline

that particular exception I think is a symptom of not shutting down any clustered caches before either shutting down your web container and/or undeploying your application. Take a look to see if your application is calling CacheManager.shutdown(). You might want to hook this up in a servlet context listener

The exception isn't harmful though in my opinion. I don't understand that it would be "crashing" anything

Tim Eck (terracotta engineer)
 
Forum Index -> Terracotta Platform
Go to:   
Powered by JForum 2.1.7 © JForum Team