]
Adrian Nistor updated ISPN-2609:
--------------------------------
Status: Pull Request Sent (was: Reopened)
Git Pull Request:
Infinispan SpringCache throws java.lang.NullPointerException: Null
values are not supported!
--------------------------------------------------------------------------------------------
Key: ISPN-2609
URL:
https://issues.jboss.org/browse/ISPN-2609
Project: Infinispan
Issue Type: Bug
Components: Spring integration
Affects Versions: 5.1.6.FINAL
Reporter: Roland Csupor
Assignee: Mircea Markus
Fix For: 5.3.0.Final
I trying to use Infinispan as Spring cache, but if my function returns null, I got an
exception, cause Spring tries to cache this result value:
{noformat}
Caused by: java.lang.NullPointerException: Null values are not supported!
at org.infinispan.CacheImpl.assertKeyValueNotNull(CacheImpl.java:203)
~[infinispan-core-5.1.6.FINAL.jar:5.1.6.FINAL]
at org.infinispan.CacheImpl.put(CacheImpl.java:699)
~[infinispan-core-5.1.6.FINAL.jar:5.1.6.FINAL]
at org.infinispan.CacheImpl.put(CacheImpl.java:694)
~[infinispan-core-5.1.6.FINAL.jar:5.1.6.FINAL]
at org.infinispan.CacheSupport.put(CacheSupport.java:53)
~[infinispan-core-5.1.6.FINAL.jar:5.1.6.FINAL]
at org.infinispan.spring.provider.SpringCache.put(SpringCache.java:83)
~[infinispan-spring-5.1.6.FINAL.jar:5.1.6.FINAL]
at
org.springframework.cache.interceptor.CacheAspectSupport.update(CacheAspectSupport.java:390)
~[spring-context-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at
org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:218)
~[spring-context-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at
org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:66)
~[spring-context-3.1.2.RELEASE.jar:3.1.2.RELEASE]
{noformat}
Did I misconfigured something?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: