[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Error: Could not expire elements from disk due to net/sf/ehcache/concurrent/ConcurrencyUtil  XML
Forum Index -> Ehcache
Author Message
Sharinga

neo

Joined: 07/02/2012 23:45:27
Messages: 1
Offline

A have got error while using ehcache:

2012-07-03 10:42:43,613 497187894 DEBUG [net.sf.ehcache.store.DiskStore] (Store RequestResults Spool Thread:) RequestResultsCache: Removing expired spool element f6f9d628-21a9-4a54-ae2f-78fc52f25ef5 from Disk Store
2012-07-03 10:42:43,613 497187894 ERROR [net.sf.ehcache.store.DiskStore] (Store RequestResults Spool Thread:) RequestResults Cache: Could not expire elements from disk due to net/sf/ehcache/concurrent/ConcurrencyUtil. Continuing...
java.lang.NoClassDefFoundError: net/sf/ehcache/concurrent/ConcurrencyUtil
at net.sf.ehcache.store.DiskStore.selectRandomAccessFile(DiskStore.java:328)
at net.sf.ehcache.store.DiskStore.loadElementFromDiskElement(DiskStore.java:333)
at net.sf.ehcache.store.DiskStore.expireElements(DiskStore.java:992)
at net.sf.ehcache.store.DiskStore.throwableSafeExpireElementsIfRequired(DiskStore.java:691)
at net.sf.ehcache.store.DiskStore.spoolAndExpiryThreadMain(DiskStore.java:679)
at net.sf.ehcache.store.DiskStore.access$900(DiskStore.java:74)
at net.sf.ehcache.store.DiskStore$SpoolAndExpiryThread.run(DiskStore.java:1170)

I am using Debian 6, GlassFish Server Open Source Edition 3.1.2 and Java 1.6.0_26-b03.
grenfro

neo

Joined: 06/25/2012 09:35:52
Messages: 8
Offline

Hi Sharinga,
It looks like you are missing the terracotta toolkit jar (i.e. terracotta-toolkit-1.5-runtime-4.2.0.jar) from your classpath based on the NoClassDefFoundError below.



--Glenn
teck

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

I'm not sure what the toolkit-runtime jar would have to do with that exception. The class referenced (net/sf/ehcache/concurrent/ConcurrencyUtil ) is part of ehcache-core.

I don't have an explanation for that really. Does this happening at any particular time? Specifically was the server shutting down or your web context being stopped and/or re-deployed?

If you can give us something to repro the issue we could likely get a lot further

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