[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]
EhCache 2.0.0 : java.lang.UnsupportedOperationException when the cacheManager.shutDown() is called  XML
Forum Index -> Ehcache
Author Message
lresta

neo

Joined: 03/17/2010 03:49:16
Messages: 4
Offline

Hi all,

We just migrated EhCache from version 1.6.1 to version 2.0.0. Now we have following problem:

When the application is terminated, the cachemanager is shut down. We do this by calling the shutdown() methon on our cache manager instance. It lools like during deregistration of the cachelisteners a java.lang.UnsupportedOperationException is thrown. This is happening because the remove() method of the COWIterator of the CopyOnWriteArrayList class is not supported!

Code:
 java.lang.UnsupportedOperationException
 	at java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove(CopyOnWriteArrayList.java:1004)
 	at net.sf.ehcache.event.RegisteredEventListeners.unregisterListener(RegisteredEventListeners.java:247)
 	at ch.deltaenergy.collections.AbstractCollection$CacheExpiryListener.dispose(AbstractCollection.java:511)
 	at net.sf.ehcache.event.RegisteredEventListeners.dispose(RegisteredEventListeners.java:275)
 	at net.sf.ehcache.Cache.dispose(Cache.java:2085)
 	at net.sf.ehcache.CacheManager.shutdown(CacheManager.java:1033)
 


Thanks for your help!

Cheers
Lorenzo
steve

ophanim

Joined: 05/24/2006 14:22:53
Messages: 619
Offline

Thx! please create a jira and we'll get it looked at asap. We have a dot release coming soon.

Want to post to this forum? Join the Terracotta Community
lresta

neo

Joined: 03/17/2010 03:49:16
Messages: 4
Offline

A new JIRA Issue has been opened: http://jira.terracotta.org/jira/browse/EHC-654
steve

ophanim

Joined: 05/24/2006 14:22:53
Messages: 619
Offline

We think it might be the same issue as:

https://jira.terracotta.org/jira//browse/EHC-653

Which we fixed last night and should soon be in a snapshot.


Want to post to this forum? Join the Terracotta Community
lresta

neo

Joined: 03/17/2010 03:49:16
Messages: 4
Offline

Yep, this is the same issue. Thank you for letting me know!
 
Forum Index -> Ehcache
Go to:   
Powered by JForum 2.1.7 © JForum Team