[JBoss JIRA] (ISPN-5841) Server cannot find filter/converter factory when registering continuous query
by Gustavo Fernandes (JIRA)
[ https://issues.jboss.org/browse/ISPN-5841?page=com.atlassian.jira.plugin.... ]
Gustavo Fernandes reassigned ISPN-5841:
---------------------------------------
Assignee: Gustavo Fernandes (was: Adrian Nistor)
> Server cannot find filter/converter factory when registering continuous query
> -----------------------------------------------------------------------------
>
> Key: ISPN-5841
> URL: https://issues.jboss.org/browse/ISPN-5841
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Querying
> Reporter: Vojtech Juranek
> Assignee: Gustavo Fernandes
>
> When registering continuous query form HR client, it fails with following exception:
> {noformat}
> org.infinispan.client.hotrod.exceptions.HotRodClientException: org.infinispan.server.hotrod.MissingFactoryException: ISPN006013: Listener converter factory 'continuous-query-filter-converter-factory' not found in server
> at org.infinispan.client.hotrod.impl.protocol.Codec20.checkForErrorsInResponseStatus(Codec20.java:336)
> at org.infinispan.client.hotrod.impl.protocol.Codec20.readPartialHeader(Codec20.java:126)
> at org.infinispan.client.hotrod.impl.protocol.Codec20.readHeaderOrEvent(Codec20.java:208)
> at org.infinispan.client.hotrod.impl.operations.AddClientListenerOperation.executeOperation(AddClientListenerOperation.java:95)
> at org.infinispan.client.hotrod.impl.operations.AddClientListenerOperation.executeOperation(AddClientListenerOperation.java:26)
> at org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation.execute(RetryOnFailureOperation.java:52)
> at org.infinispan.client.hotrod.impl.RemoteCacheImpl.addClientListener(RemoteCacheImpl.java:574)
> at org.infinispan.client.hotrod.event.ClientEvents.addContinuousQueryListener(ClientEvents.java:82)
> at org.infinispan.server.test.query.ContinuousQueryIT.testContinuousQuery(ContinuousQueryIT.java:76)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 6 months
[JBoss JIRA] (ISPN-5855) RemoteContinuousQueryTest fails consistently
by Adrian Nistor (JIRA)
Adrian Nistor created ISPN-5855:
-----------------------------------
Summary: RemoteContinuousQueryTest fails consistently
Key: ISPN-5855
URL: https://issues.jboss.org/browse/ISPN-5855
Project: Infinispan
Issue Type: Bug
Components: Remote Querying
Affects Versions: 8.0.0.Final
Reporter: Adrian Nistor
Assignee: Adrian Nistor
Fix For: 8.1.0.Alpha2, 8.0.2.Final
{quote}
java.lang.AssertionError: expected null, but was:<expiredUser2>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotNull(Assert.java:664)
at org.junit.Assert.assertNull(Assert.java:646)
at org.junit.Assert.assertNull(Assert.java:656)
at org.infinispan.client.hotrod.event.RemoteContinuousQueryTest.expectElementsInQueue(RemoteContinuousQueryTest.java:198)
at org.infinispan.client.hotrod.event.RemoteContinuousQueryTest.testContinuousQuery(RemoteContinuousQueryTest.java:174)
{quote}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 6 months
[JBoss JIRA] (ISPN-5855) RemoteContinuousQueryTest fails consistently
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/ISPN-5855?page=com.atlassian.jira.plugin.... ]
Work on ISPN-5855 started by Adrian Nistor.
-------------------------------------------
> RemoteContinuousQueryTest fails consistently
> --------------------------------------------
>
> Key: ISPN-5855
> URL: https://issues.jboss.org/browse/ISPN-5855
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Querying
> Affects Versions: 8.0.0.Final
> Reporter: Adrian Nistor
> Assignee: Adrian Nistor
> Fix For: 8.1.0.Alpha2, 8.0.2.Final
>
>
> {quote}
> java.lang.AssertionError: expected null, but was:<expiredUser2>
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.failNotNull(Assert.java:664)
> at org.junit.Assert.assertNull(Assert.java:646)
> at org.junit.Assert.assertNull(Assert.java:656)
> at org.infinispan.client.hotrod.event.RemoteContinuousQueryTest.expectElementsInQueue(RemoteContinuousQueryTest.java:198)
> at org.infinispan.client.hotrod.event.RemoteContinuousQueryTest.testContinuousQuery(RemoteContinuousQueryTest.java:174)
> {quote}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 6 months
[JBoss JIRA] (ISPN-5855) RemoteContinuousQueryTest fails consistently
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/ISPN-5855?page=com.atlassian.jira.plugin.... ]
Adrian Nistor updated ISPN-5855:
--------------------------------
Status: Open (was: New)
> RemoteContinuousQueryTest fails consistently
> --------------------------------------------
>
> Key: ISPN-5855
> URL: https://issues.jboss.org/browse/ISPN-5855
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Querying
> Affects Versions: 8.0.0.Final
> Reporter: Adrian Nistor
> Assignee: Adrian Nistor
> Fix For: 8.1.0.Alpha2, 8.0.2.Final
>
>
> {quote}
> java.lang.AssertionError: expected null, but was:<expiredUser2>
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.failNotNull(Assert.java:664)
> at org.junit.Assert.assertNull(Assert.java:646)
> at org.junit.Assert.assertNull(Assert.java:656)
> at org.infinispan.client.hotrod.event.RemoteContinuousQueryTest.expectElementsInQueue(RemoteContinuousQueryTest.java:198)
> at org.infinispan.client.hotrod.event.RemoteContinuousQueryTest.testContinuousQuery(RemoteContinuousQueryTest.java:174)
> {quote}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 6 months
[JBoss JIRA] (ISPN-5803) Custom Key Results in ClassCastException in CacheLoader
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-5803?page=com.atlassian.jira.plugin.... ]
Galder Zamarreño updated ISPN-5803:
-----------------------------------
Status: Pull Request Sent (was: Coding In Progress)
Git Pull Request: https://github.com/infinispan/infinispan/pull/3753
> Custom Key Results in ClassCastException in CacheLoader
> -------------------------------------------------------
>
> Key: ISPN-5803
> URL: https://issues.jboss.org/browse/ISPN-5803
> Project: Infinispan
> Issue Type: Bug
> Components: JCache
> Affects Versions: 8.0.1.Final
> Reporter: Dan Siviter
> Assignee: Galder Zamarreño
> Fix For: 8.1.0.Alpha2, 8.1.0.Final
>
>
> If a a JCache is created using a read-through {{javax.cache.integration.CacheLoader}} using a custom Serializable key (in this case {{acme.MyCache$MyKey}}) a {{ClassCastException}} is thrown when trying to pass the key value of {{org.infinispan.marshall.core.MarshalledValue}} instead of {{MarshalledValue#get()}} into the {{CacheLoader}} instance.
> {code}
> java.lang.ClassCastException: org.infinispan.marshall.core.MarshalledValue cannot be cast to acme.MyCache$MyKey
> at acme.MyCache$2.load(MyCache.java:1) [my-app-1.0.0-SNAPSHOT.jar:]
> at org.infinispan.jcache.embedded.JCacheLoaderAdapter.loadKey(JCacheLoaderAdapter.java:65) [infinispan-jcache-8.0.1.Final.jar:8.0.1.Final]
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 6 months
[JBoss JIRA] (ISPN-5803) Custom Key Results in ClassCastException in CacheLoader
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-5803?page=com.atlassian.jira.plugin.... ]
Work on ISPN-5803 started by Galder Zamarreño.
----------------------------------------------
> Custom Key Results in ClassCastException in CacheLoader
> -------------------------------------------------------
>
> Key: ISPN-5803
> URL: https://issues.jboss.org/browse/ISPN-5803
> Project: Infinispan
> Issue Type: Bug
> Components: JCache
> Affects Versions: 8.0.1.Final
> Reporter: Dan Siviter
> Assignee: Galder Zamarreño
> Fix For: 8.1.0.Alpha2, 8.1.0.Final
>
>
> If a a JCache is created using a read-through {{javax.cache.integration.CacheLoader}} using a custom Serializable key (in this case {{acme.MyCache$MyKey}}) a {{ClassCastException}} is thrown when trying to pass the key value of {{org.infinispan.marshall.core.MarshalledValue}} instead of {{MarshalledValue#get()}} into the {{CacheLoader}} instance.
> {code}
> java.lang.ClassCastException: org.infinispan.marshall.core.MarshalledValue cannot be cast to acme.MyCache$MyKey
> at acme.MyCache$2.load(MyCache.java:1) [my-app-1.0.0-SNAPSHOT.jar:]
> at org.infinispan.jcache.embedded.JCacheLoaderAdapter.loadKey(JCacheLoaderAdapter.java:65) [infinispan-jcache-8.0.1.Final.jar:8.0.1.Final]
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 6 months
[JBoss JIRA] (ISPN-5803) Custom Key Results in ClassCastException in CacheLoader
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-5803?page=com.atlassian.jira.plugin.... ]
Galder Zamarreño updated ISPN-5803:
-----------------------------------
Workaround Description: Disable storeByValue in JCache configuration.
Workaround: Workaround Exists
> Custom Key Results in ClassCastException in CacheLoader
> -------------------------------------------------------
>
> Key: ISPN-5803
> URL: https://issues.jboss.org/browse/ISPN-5803
> Project: Infinispan
> Issue Type: Bug
> Components: JCache
> Affects Versions: 8.0.1.Final
> Reporter: Dan Siviter
> Assignee: Galder Zamarreño
> Fix For: 8.1.0.Alpha2, 8.1.0.Final
>
>
> If a a JCache is created using a read-through {{javax.cache.integration.CacheLoader}} using a custom Serializable key (in this case {{acme.MyCache$MyKey}}) a {{ClassCastException}} is thrown when trying to pass the key value of {{org.infinispan.marshall.core.MarshalledValue}} instead of {{MarshalledValue#get()}} into the {{CacheLoader}} instance.
> {code}
> java.lang.ClassCastException: org.infinispan.marshall.core.MarshalledValue cannot be cast to acme.MyCache$MyKey
> at acme.MyCache$2.load(MyCache.java:1) [my-app-1.0.0-SNAPSHOT.jar:]
> at org.infinispan.jcache.embedded.JCacheLoaderAdapter.loadKey(JCacheLoaderAdapter.java:65) [infinispan-jcache-8.0.1.Final.jar:8.0.1.Final]
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 6 months
[JBoss JIRA] (ISPN-5803) Custom Key Results in ClassCastException in CacheLoader
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-5803?page=com.atlassian.jira.plugin.... ]
Galder Zamarreño commented on ISPN-5803:
----------------------------------------
I suspect this is a side effect of the default JCache configuration storeByValue setting, which is true. When storeByValue is enabled, entries are stored in binary format which is wrapped around MarshalledValue class. If you explicitly disable storeByValue it should work.
> Custom Key Results in ClassCastException in CacheLoader
> -------------------------------------------------------
>
> Key: ISPN-5803
> URL: https://issues.jboss.org/browse/ISPN-5803
> Project: Infinispan
> Issue Type: Bug
> Components: JCache
> Affects Versions: 8.0.1.Final
> Reporter: Dan Siviter
> Assignee: Galder Zamarreño
> Fix For: 8.1.0.Alpha2, 8.1.0.Final
>
>
> If a a JCache is created using a read-through {{javax.cache.integration.CacheLoader}} using a custom Serializable key (in this case {{acme.MyCache$MyKey}}) a {{ClassCastException}} is thrown when trying to pass the key value of {{org.infinispan.marshall.core.MarshalledValue}} instead of {{MarshalledValue#get()}} into the {{CacheLoader}} instance.
> {code}
> java.lang.ClassCastException: org.infinispan.marshall.core.MarshalledValue cannot be cast to acme.MyCache$MyKey
> at acme.MyCache$2.load(MyCache.java:1) [my-app-1.0.0-SNAPSHOT.jar:]
> at org.infinispan.jcache.embedded.JCacheLoaderAdapter.loadKey(JCacheLoaderAdapter.java:65) [infinispan-jcache-8.0.1.Final.jar:8.0.1.Final]
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 6 months