BeanWrapper fails in case of read/write method mismatch (e.g. EhCacheFactoryBean.setMemoryStoreEvictionPolicy) [SPR-11361] #15987
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Brandon Mintern opened SPR-11361 and commented
We have an applicationContext-common-authorization.xml file with the following component:
This fails on memoryStoreEvictionPolicy. I can trace down all the way to ehCache's CacheConfiguration, and all is well. After it returns, though, BeanWrapperImpl:1152 calls:
The writeMethod accepts a String, but the value passed in is a MemoryStoreEvictionPolicy enum.
Is this a bug? Or do I simply need to change my configuration (perhaps using memoryStoreEvictionPolicyFromObject instead)?
This worked fine before our upgrade to Spring 4.
When I remove the memoryStoreEvictionPolicy line (LRU is the default, anyway), the server starts up normally.
Affects: 3.2.6, 4.0 GA
Backported to: 3.2.7
The text was updated successfully, but these errors were encountered: