[JBoss JIRA] (ISPN-9705) SpringCache Put null value and get(key, clazz) IllegalStateException
by Katia Aresti (Jira)
[ https://issues.jboss.org/browse/ISPN-9705?page=com.atlassian.jira.plugin.... ]
Work on ISPN-9705 started by Katia Aresti.
------------------------------------------
> SpringCache Put null value and get(key, clazz) IllegalStateException
> --------------------------------------------------------------------
>
> Key: ISPN-9705
> URL: https://issues.jboss.org/browse/ISPN-9705
> Project: Infinispan
> Issue Type: Bug
> Reporter: Katia Aresti
> Assignee: Katia Aresti
> Priority: Major
>
> {code:title=SpringCacheTest,java|borderStyle=solid}
> public void testPutNullError() {
> //when//then
> cache.put("key", null);
> cache.get("key", String.class);
> }
> {code}
> We get
> {code}
> java.lang.IllegalStateException: Cached value is not of required type [java.lang.String]: org.infinispan.spring.provider.NullValue@76f7d241
> {code}
> JavaDoc for this method states this method does not make difference between cached null and null value.
> Note: This variant of {@code get} does not allow for differentiating
> * between a cached {@code null} value and no cache entry found at all.
> * Use the standard {@link #get(Object)} variant for that purpose instead.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 10 months
[JBoss JIRA] (ISPN-9706) SpringCache: get("key", Callable) not working with null values
by Katia Aresti (Jira)
[ https://issues.jboss.org/browse/ISPN-9706?page=com.atlassian.jira.plugin.... ]
Katia Aresti updated ISPN-9706:
-------------------------------
Status: Open (was: New)
> SpringCache: get("key", Callable) not working with null values
> --------------------------------------------------------------
>
> Key: ISPN-9706
> URL: https://issues.jboss.org/browse/ISPN-9706
> Project: Infinispan
> Issue Type: Bug
> Reporter: Katia Aresti
> Assignee: Katia Aresti
> Priority: Major
>
> {code:SpringCacheTest.java}
> @Test
> public void testGetWithNullValue() {
> assertNull(cache.get("null", () -> null));
> }
> {code}
> {code}
> Caused by: java.lang.NullPointerException: Null values are not supported!
> {code}
> and
> {code:SpringCacheTest.java}
> @Test
> public void testGetNullValueAfterPutNull() {
> cache.put("key", null);
> String result = cache.get("key", () -> "notnull");
> assertNull(result);
> }
> {code}
> {code}
> java.lang.ClassCastException: org.infinispan.spring.provider.NullValue cannot be cast to java.lang.String
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 10 months
[JBoss JIRA] (ISPN-9705) SpringCache Put null value and get(key, clazz) IllegalStateException
by Katia Aresti (Jira)
[ https://issues.jboss.org/browse/ISPN-9705?page=com.atlassian.jira.plugin.... ]
Katia Aresti updated ISPN-9705:
-------------------------------
Status: Open (was: New)
> SpringCache Put null value and get(key, clazz) IllegalStateException
> --------------------------------------------------------------------
>
> Key: ISPN-9705
> URL: https://issues.jboss.org/browse/ISPN-9705
> Project: Infinispan
> Issue Type: Bug
> Reporter: Katia Aresti
> Assignee: Katia Aresti
> Priority: Major
>
> {code:title=SpringCacheTest,java|borderStyle=solid}
> public void testPutNullError() {
> //when//then
> cache.put("key", null);
> cache.get("key", String.class);
> }
> {code}
> We get
> {code}
> java.lang.IllegalStateException: Cached value is not of required type [java.lang.String]: org.infinispan.spring.provider.NullValue@76f7d241
> {code}
> JavaDoc for this method states this method does not make difference between cached null and null value.
> Note: This variant of {@code get} does not allow for differentiating
> * between a cached {@code null} value and no cache entry found at all.
> * Use the standard {@link #get(Object)} variant for that purpose instead.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 10 months
[JBoss JIRA] (ISPN-9708) Expose threadpool executors via JMX
by Dan Berindei (Jira)
[ https://issues.jboss.org/browse/ISPN-9708?page=com.atlassian.jira.plugin.... ]
Dan Berindei updated ISPN-9708:
-------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
> Expose threadpool executors via JMX
> -----------------------------------
>
> Key: ISPN-9708
> URL: https://issues.jboss.org/browse/ISPN-9708
> Project: Infinispan
> Issue Type: Enhancement
> Components: Core, JMX, reporting and management, Server
> Affects Versions: 9.4.1.Final
> Reporter: Tristan Tarrant
> Assignee: Tristan Tarrant
> Priority: Major
> Fix For: 9.4.2.Final, 10.0.0.Alpha1
>
>
> We should expose executors over JMX so that threadpools can be monitored.
> This includes all the global threadpools as well as any protocol server thread pools.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 10 months
[JBoss JIRA] (ISPN-9734) Docs: Fill in TODO Gaps for Querying and Analyzing
by Don Naro (Jira)
Don Naro created ISPN-9734:
------------------------------
Summary: Docs: Fill in TODO Gaps for Querying and Analyzing
Key: ISPN-9734
URL: https://issues.jboss.org/browse/ISPN-9734
Project: Infinispan
Issue Type: Enhancement
Components: Documentation-Core, Documentation-Query
Affects Versions: 10.0.0.Alpha2
Reporter: Don Naro
Assignee: Don Naro
Fix For: 10.0.0.Final
Look at the TODO items in the ISPN doc set and map to RHDG docs. First step is to replace as many TODO items as possible.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 10 months