-
Feb 18th, 2011, 03:03 PM
#1
Spring "AbstractCacheManager" afterProperties fail, if using default ehcache.xml
<code>
Caused by: java.lang.IllegalArgumentException: [Assertion failed] - this collection must not be empty: it must contain at least 1 element
at org.springframework.util.Assert.notEmpty(Assert.ja va:268)
at org.springframework.util.Assert.notEmpty(Assert.ja va:280)
at org.springframework.cache.support.AbstractCacheMan ager.afterPropertiesSet(AbstractCacheManager.java: 46)
</code>
This assert fails because size of cache is 0. I havn't defined one, just planning to use "defaultCache" to begin with. But due to this, I am forced to define new cache names (atleast one), if I want to use "EhCacheCacheManager" bean.
If this is defect, then EhCacheCacheManager.loadCaches() has to be fixed.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules