[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: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/infinispan/infinispan/pull/6423
> 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)
7 years, 4 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: Pull Request Sent (was: Coding In Progress)
Git Pull Request: https://github.com/infinispan/infinispan/pull/6423
> 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)
7 years, 4 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.... ]
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)
7 years, 4 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)
7 years, 4 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)
7 years, 4 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)
7 years, 4 months