• Bug
  • Status: Closed
  • 2 Major
  • Resolution: Duplicate
  • ehcache-core
  • drb
  • Reporter: lresta
  • March 17, 2010
  • 0
  • Watchers: 1
  • April 06, 2010
  • March 17, 2010

Description

When the cachemanager is shut down, cache event listeners are deregistered. 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!

Note: Is exception occurs also if the net.sf.ehcache.event.RegisteredEventListeners.unregisterListener is invoked directly:

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)

Comments

Steve Harris 2010-03-17

Is this the same issue as https://jira.terracotta.org/jira//browse/EHC-653

Lorenzo Resta 2010-03-17

Yep, this is the same issue as EHC-653. I guess we can close this issue. Any idea when the release date of Ehcache 2.0.1 is?

Steve Harris 2010-03-17

Snapshots are there to try (or they will be in 24 hours). probably will be released in 2.5 weeks officially.

Fiona OShea 2010-03-17

Dup of EHC-653