You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support for typed caches with EhCache 3.0 [SPR-14384] #18957
There is incomplete support for the EhCache JCache solution.
If you create a CacheManager with typed key/value pairs (pass in the key class and the value class), the spring JCacheManager will fail to instantiate this cache.
The solution is to add support for a custom class map for value pairs.
I have a working patch, will submit for review later.
4.3.1 is due quite soon so I'd appreciate a more complete description of the problem. You surely have a cache configuration and a stacktrace to share. Thanks!
Sebastian Audet please update the description with your configuration, your method annotation and the stacktrace. Obviously, a sample that reproduces the issue would be much better.
Given all of that, when using Ehcache 3 with the Spring Cache / JCache support, you must use untyped caches and there is not much Spring could do to improve the situation.
Activity
spring-projects-issues commentedon Jun 21, 2016
Stéphane Nicoll commented
4.3.1is due quite soon so I'd appreciate a more complete description of the problem. You surely have a cache configuration and a stacktrace to share. Thanks!spring-projects-issues commentedon Jun 21, 2016
Sebastian Audet commented
Yup, probably won't share till later this evening though, @ work atm.
spring-projects-issues commentedon Jun 23, 2016
Stéphane Nicoll commented
Sebastian Audet please update the description with your configuration, your method annotation and the stacktrace. Obviously, a sample that reproduces the issue would be much better.
spring-projects-issues commentedon Jun 25, 2016
Louis Jacomet commented
I believe your issue comes from multiple factors:
CacheManager.getCache(String name)throws when a cache has been configured with a key or value type that is different thanObjectGiven all of that, when using Ehcache 3 with the Spring Cache / JCache support, you must use untyped caches and there is not much Spring could do to improve the situation.
spring-projects-issues commentedon Jul 4, 2016
Stéphane Nicoll commented
Sebastian Audet some feedback on why you've created this issue in the first place would be very helpful.
spring-projects-issues commentedon Jul 21, 2016
Stéphane Nicoll commented
Given the lack of answer, I am flagging this one as pending for closure. I'll make sure to update the doc about typed cache in any case.