Skip to content

EhCacheCacheManager throws assertion error for ehcache configuration with only default cache configured [SPR-7955] #12610

Closed
@spring-projects-issues

Description

@spring-projects-issues

Stevo Slavić opened SPR-7955 and commented

Using new spring 3.1 @Cacheable support, and EhCacheCacheManager I get an exception for a valid ehcache configuration - one with only default cache configured:

<?xml version="1.0" encoding="UTF-8"?>
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd">
    <defaultCache maxElementsInMemory="100" overflowToDisk="false" eternal="true"/>
</ehcache>

Assertion error is thrown from AbstractCacheManager.afterPropertiesSet method at line 46: "Assert.notEmpty(cacheSet);"


Affects: 3.1 M1

Backported to: 3.1.4

1 votes, 4 watchers

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions