[JBoss JIRA] (ISPN-11023) Index-less queries fails with 'Expected component not found in registry: org.infinispan.query.remote.impl.ObjectReflectionMatcher'
by Gustavo Fernandes (Jira)
[ https://issues.jboss.org/browse/ISPN-11023?page=com.atlassian.jira.plugin... ]
Gustavo Fernandes commented on ISPN-11023:
------------------------------------------
Full stack trace:
{noformat}
org.infinispan.commons.CacheException: java.util.concurrent.CompletionException: org.infinispan.remoting.RemoteException: ISPN000217: Received exception from NonIndexedPojoQueryTest-NodeA-8415, see cause for remote stack trace
at org.infinispan.commons.util.Util.rewrapAsCacheException(Util.java:784)
at org.infinispan.reactive.RxJavaInterop.lambda$static$14(RxJavaInterop.java:200)
at io.reactivex.internal.operators.flowable.FlowableOnErrorNext$OnErrorNextSubscriber.onError(FlowableOnErrorNext.java:103)
at org.infinispan.reactive.publisher.impl.ClusterPublisherManagerImpl$SubscriberHandler.handleThrowable(ClusterPublisherManagerImpl.java:1069)
at org.infinispan.reactive.publisher.impl.InnerPublisherSubscription.handleThrowableInResponse(InnerPublisherSubscription.java:323)
at org.infinispan.reactive.publisher.impl.InnerPublisherSubscription.lambda$sendRequest$0(InnerPublisherSubscription.java:209)
at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
at org.infinispan.remoting.transport.AbstractRequest.completeExceptionally(AbstractRequest.java:74)
at org.infinispan.remoting.transport.impl.SingleTargetRequest.onResponse(SingleTargetRequest.java:46)
at org.infinispan.remoting.transport.impl.RequestRepository.addResponse(RequestRepository.java:52)
at org.infinispan.remoting.transport.jgroups.JGroupsTransport.processResponse(JGroupsTransport.java:1413)
at org.infinispan.remoting.transport.jgroups.JGroupsTransport.processMessage(JGroupsTransport.java:1316)
at org.infinispan.remoting.transport.jgroups.JGroupsTransport.access$300(JGroupsTransport.java:129)
at org.infinispan.remoting.transport.jgroups.JGroupsTransport$ChannelCallbacks.up(JGroupsTransport.java:1461)
at org.jgroups.JChannel.up(JChannel.java:775)
at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:920)
at org.jgroups.protocols.FRAG3.up(FRAG3.java:171)
at org.jgroups.protocols.FlowControl.up(FlowControl.java:338)
at org.jgroups.protocols.FlowControl.up(FlowControl.java:338)
at org.jgroups.protocols.tom.TOA.up(TOA.java:119)
at org.jgroups.protocols.pbcast.GMS.up(GMS.java:855)
at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:243)
at org.jgroups.protocols.UNICAST3.deliverMessage(UNICAST3.java:1049)
at org.jgroups.protocols.UNICAST3.addMessage(UNICAST3.java:772)
at org.jgroups.protocols.UNICAST3.handleDataReceived(UNICAST3.java:753)
at org.jgroups.protocols.UNICAST3.up(UNICAST3.java:405)
at org.jgroups.protocols.pbcast.NAKACK2.up(NAKACK2.java:592)
at org.jgroups.protocols.Discovery.up(Discovery.java:300)
at org.jgroups.protocols.TP.passMessageUp(TP.java:1275)
at org.jgroups.util.SubmitToThreadPool$SingleMessageHandler.run(SubmitToThreadPool.java:87)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.util.concurrent.CompletionException: org.infinispan.remoting.RemoteException: ISPN000217: Received exception from NonIndexedPojoQueryTest-NodeA-8415, see cause for remote stack trace
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
at java.base/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:932)
at java.base/java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:907)
... 28 more
Caused by: org.infinispan.remoting.RemoteException: ISPN000217: Received exception from NonIndexedPojoQueryTest-NodeA-8415, see cause for remote stack trace
at org.infinispan.remoting.transport.ResponseCollectors.wrapRemoteException(ResponseCollectors.java:26)
at org.infinispan.remoting.transport.ValidSingleResponseCollector.withException(ValidSingleResponseCollector.java:37)
at org.infinispan.remoting.transport.ValidSingleResponseCollector.addResponse(ValidSingleResponseCollector.java:21)
at org.infinispan.remoting.transport.impl.SingleTargetRequest.addResponse(SingleTargetRequest.java:72)
at org.infinispan.remoting.transport.impl.SingleTargetRequest.onResponse(SingleTargetRequest.java:42)
... 24 more
Caused by: org.infinispan.commons.CacheConfigurationException: Unable to inject dependencies for component class org.infinispan.query.dsl.embedded.impl.IckleFilterAndConverter, path null
at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:177)
at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:42)
at org.infinispan.marshall.core.GlobalMarshaller.readWithExternalizer(GlobalMarshaller.java:728)
at org.infinispan.marshall.core.GlobalMarshaller.readNonNullableObject(GlobalMarshaller.java:709)
at org.infinispan.marshall.core.GlobalMarshaller.readNullableObject(GlobalMarshaller.java:358)
at org.infinispan.marshall.core.BytesObjectInput.readObject(BytesObjectInput.java:32)
at org.infinispan.remoting.responses.ExceptionResponse$Externalizer.readObject(ExceptionResponse.java:49)
at org.infinispan.remoting.responses.ExceptionResponse$Externalizer.readObject(ExceptionResponse.java:41)
at org.infinispan.marshall.core.GlobalMarshaller.readWithExternalizer(GlobalMarshaller.java:728)
at org.infinispan.marshall.core.GlobalMarshaller.readNonNullableObject(GlobalMarshaller.java:709)
at org.infinispan.marshall.core.GlobalMarshaller.readNullableObject(GlobalMarshaller.java:358)
at org.infinispan.marshall.core.GlobalMarshaller.objectFromObjectInput(GlobalMarshaller.java:192)
at org.infinispan.marshall.core.GlobalMarshaller.objectFromByteBuffer(GlobalMarshaller.java:221)
at org.infinispan.remoting.transport.jgroups.JGroupsTransport.processResponse(JGroupsTransport.java:1405)
... 22 more
Caused by: org.infinispan.commons.CacheException: Expected component not found in registry: org.infinispan.query.remote.impl.ObjectReflectionMatcher
at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:181)
at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:42)
at org.infinispan.marshall.core.GlobalMarshaller.readWithExternalizer(GlobalMarshaller.java:728)
at org.infinispan.marshall.core.GlobalMarshaller.readNonNullableObject(GlobalMarshaller.java:709)
at org.infinispan.marshall.core.GlobalMarshaller.readNullableObject(GlobalMarshaller.java:358)
at org.infinispan.marshall.core.BytesObjectInput.readObject(BytesObjectInput.java:32)
at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:176)
... 35 more
{noformat}
> Index-less queries fails with 'Expected component not found in registry: org.infinispan.query.remote.impl.ObjectReflectionMatcher'
> ----------------------------------------------------------------------------------------------------------------------------------
>
> Key: ISPN-11023
> URL: https://issues.jboss.org/browse/ISPN-11023
> Project: Infinispan
> Issue Type: Bug
> Components: Embedded Querying
> Affects Versions: 10.0.1.Final
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
> Priority: Major
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 10 months
[JBoss JIRA] (ISPN-11013) Selecting a single field in a query returns wrong "total_count"
by Jens Reimann (Jira)
[ https://issues.jboss.org/browse/ISPN-11013?page=com.atlassian.jira.plugin... ]
Jens Reimann commented on ISPN-11013:
-------------------------------------
Setting the properties as requests breaks the query process:
{code}
10:28:01.429 [HotRod-client-async-pool-1-1] WARN org.infinispan.HOTROD - ISPN004005: Error received from the server: org.infinispan.objectfilter.ParsingException: ISPN028522: No relational queries can be applied to property 'tenantId' in type io.enmasse.iot.infinispan.device.DeviceInformation since the property is analyzed.
Exception in thread "main" org.infinispan.client.hotrod.exceptions.HotRodClientException:Request for messageId=118 returned server error (status=0x85): org.infinispan.objectfilter.ParsingException: ISPN028522: No relational queries can be applied to property 'tenantId' in type io.enmasse.iot.infinispan.device.DeviceInformation since the property is analyzed.
{code}
Interestingly the default value for Analyzed should be YES. So it looks like the default does not get applied.
> Selecting a single field in a query returns wrong "total_count"
> ---------------------------------------------------------------
>
> Key: ISPN-11013
> URL: https://issues.jboss.org/browse/ISPN-11013
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Querying
> Affects Versions: 10.0.1.Final
> Reporter: Jens Reimann
> Assignee: Gustavo Fernandes
> Priority: Major
> Attachments: deviceManagement.proto, infinispan.xml
>
>
> Adding a field selector to the query returns the wrong "total_count" in the result:
> {code:java}
> ➜ openshift oc -n enmasse-infra rsh infinispan-0 curl 'http://app:test12@infinispan-0:11222/rest/v2/caches/devices?action=search...'
> {
> "total_results" : 38847,
> "hits" : [ {
> "hit" : {
> "_type" : "io.enmasse.iot.registry.infinispan.data.DeviceInformation",
> "tenantId" : "jbtest.iot/2019-11-29T08:52:39Z",
> "deviceId" : "http-inserter-wh5xn103",
> "version" : "992899e8-c557-4a2c-8bc0-db950a803898",
> "registrationInformation" : "{}",
> "credentials" : [ {
> "authId" : "device-103",
> "type" : "hashed-password",
> "secrets" : [ "{\"hash-function\":\"bcrypt\",\"pwd-hash\":\"$2y$12$JELemetlJuc.6ZgQkCn5X..7UEPQm5iQV23lgno7/2sEKY2i.mPmS\"}" ]
> } ]
> }
> } ]
> }
> {code}
> {code:java}
> ➜ openshift oc -n enmasse-infra rsh infinispan-0 curl 'http://app:test12@infinispan-0:11222/rest/v2/caches/devices?action=search...'
> {
> "total_results" : 1,
> "hits" : [ {
> "hit" : {
> "deviceId" : "http-inserter-wh5xn103"
> }
> } ]
> }
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 10 months
[JBoss JIRA] (ISPN-11013) Selecting a single field in a query returns wrong "total_count"
by Gustavo Fernandes (Jira)
[ https://issues.jboss.org/browse/ISPN-11013?page=com.atlassian.jira.plugin... ]
Gustavo Fernandes edited comment on ISPN-11013 at 12/3/19 5:08 AM:
-------------------------------------------------------------------
The important bit is the {{Store.YES}} in the fields you have in the select clause, in order to get the correct count. If you change that in your proto, you need to either start with empty caches or re-index current data
was (Author: gustavonalle):
The important bit is the {{Store.YES}} in the fields you have in the select clause, in order to get the correct count.
> Selecting a single field in a query returns wrong "total_count"
> ---------------------------------------------------------------
>
> Key: ISPN-11013
> URL: https://issues.jboss.org/browse/ISPN-11013
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Querying
> Affects Versions: 10.0.1.Final
> Reporter: Jens Reimann
> Assignee: Gustavo Fernandes
> Priority: Major
> Attachments: deviceManagement.proto, infinispan.xml
>
>
> Adding a field selector to the query returns the wrong "total_count" in the result:
> {code:java}
> ➜ openshift oc -n enmasse-infra rsh infinispan-0 curl 'http://app:test12@infinispan-0:11222/rest/v2/caches/devices?action=search...'
> {
> "total_results" : 38847,
> "hits" : [ {
> "hit" : {
> "_type" : "io.enmasse.iot.registry.infinispan.data.DeviceInformation",
> "tenantId" : "jbtest.iot/2019-11-29T08:52:39Z",
> "deviceId" : "http-inserter-wh5xn103",
> "version" : "992899e8-c557-4a2c-8bc0-db950a803898",
> "registrationInformation" : "{}",
> "credentials" : [ {
> "authId" : "device-103",
> "type" : "hashed-password",
> "secrets" : [ "{\"hash-function\":\"bcrypt\",\"pwd-hash\":\"$2y$12$JELemetlJuc.6ZgQkCn5X..7UEPQm5iQV23lgno7/2sEKY2i.mPmS\"}" ]
> } ]
> }
> } ]
> }
> {code}
> {code:java}
> ➜ openshift oc -n enmasse-infra rsh infinispan-0 curl 'http://app:test12@infinispan-0:11222/rest/v2/caches/devices?action=search...'
> {
> "total_results" : 1,
> "hits" : [ {
> "hit" : {
> "deviceId" : "http-inserter-wh5xn103"
> }
> } ]
> }
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 10 months
[JBoss JIRA] (ISPN-11013) Selecting a single field in a query returns wrong "total_count"
by Jens Reimann (Jira)
[ https://issues.jboss.org/browse/ISPN-11013?page=com.atlassian.jira.plugin... ]
Jens Reimann updated ISPN-11013:
--------------------------------
Attachment: deviceManagement.proto
> Selecting a single field in a query returns wrong "total_count"
> ---------------------------------------------------------------
>
> Key: ISPN-11013
> URL: https://issues.jboss.org/browse/ISPN-11013
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Querying
> Affects Versions: 10.0.1.Final
> Reporter: Jens Reimann
> Assignee: Gustavo Fernandes
> Priority: Major
> Attachments: deviceManagement.proto, infinispan.xml
>
>
> Adding a field selector to the query returns the wrong "total_count" in the result:
> {code:java}
> ➜ openshift oc -n enmasse-infra rsh infinispan-0 curl 'http://app:test12@infinispan-0:11222/rest/v2/caches/devices?action=search...'
> {
> "total_results" : 38847,
> "hits" : [ {
> "hit" : {
> "_type" : "io.enmasse.iot.registry.infinispan.data.DeviceInformation",
> "tenantId" : "jbtest.iot/2019-11-29T08:52:39Z",
> "deviceId" : "http-inserter-wh5xn103",
> "version" : "992899e8-c557-4a2c-8bc0-db950a803898",
> "registrationInformation" : "{}",
> "credentials" : [ {
> "authId" : "device-103",
> "type" : "hashed-password",
> "secrets" : [ "{\"hash-function\":\"bcrypt\",\"pwd-hash\":\"$2y$12$JELemetlJuc.6ZgQkCn5X..7UEPQm5iQV23lgno7/2sEKY2i.mPmS\"}" ]
> } ]
> }
> } ]
> }
> {code}
> {code:java}
> ➜ openshift oc -n enmasse-infra rsh infinispan-0 curl 'http://app:test12@infinispan-0:11222/rest/v2/caches/devices?action=search...'
> {
> "total_results" : 1,
> "hits" : [ {
> "hit" : {
> "deviceId" : "http-inserter-wh5xn103"
> }
> } ]
> }
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 10 months
[JBoss JIRA] (ISPN-11013) Selecting a single field in a query returns wrong "total_count"
by Gustavo Fernandes (Jira)
[ https://issues.jboss.org/browse/ISPN-11013?page=com.atlassian.jira.plugin... ]
Gustavo Fernandes commented on ISPN-11013:
------------------------------------------
The important bit is the {{Store.YES}} in the fields you have in the select clause, in order to get the correct count.
> Selecting a single field in a query returns wrong "total_count"
> ---------------------------------------------------------------
>
> Key: ISPN-11013
> URL: https://issues.jboss.org/browse/ISPN-11013
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Querying
> Affects Versions: 10.0.1.Final
> Reporter: Jens Reimann
> Assignee: Gustavo Fernandes
> Priority: Major
> Attachments: infinispan.xml
>
>
> Adding a field selector to the query returns the wrong "total_count" in the result:
> {code:java}
> ➜ openshift oc -n enmasse-infra rsh infinispan-0 curl 'http://app:test12@infinispan-0:11222/rest/v2/caches/devices?action=search...'
> {
> "total_results" : 38847,
> "hits" : [ {
> "hit" : {
> "_type" : "io.enmasse.iot.registry.infinispan.data.DeviceInformation",
> "tenantId" : "jbtest.iot/2019-11-29T08:52:39Z",
> "deviceId" : "http-inserter-wh5xn103",
> "version" : "992899e8-c557-4a2c-8bc0-db950a803898",
> "registrationInformation" : "{}",
> "credentials" : [ {
> "authId" : "device-103",
> "type" : "hashed-password",
> "secrets" : [ "{\"hash-function\":\"bcrypt\",\"pwd-hash\":\"$2y$12$JELemetlJuc.6ZgQkCn5X..7UEPQm5iQV23lgno7/2sEKY2i.mPmS\"}" ]
> } ]
> }
> } ]
> }
> {code}
> {code:java}
> ➜ openshift oc -n enmasse-infra rsh infinispan-0 curl 'http://app:test12@infinispan-0:11222/rest/v2/caches/devices?action=search...'
> {
> "total_results" : 1,
> "hits" : [ {
> "hit" : {
> "deviceId" : "http-inserter-wh5xn103"
> }
> } ]
> }
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 10 months
[JBoss JIRA] (ISPN-11013) Selecting a single field in a query returns wrong "total_count"
by Jens Reimann (Jira)
[ https://issues.jboss.org/browse/ISPN-11013?page=com.atlassian.jira.plugin... ]
Jens Reimann commented on ISPN-11013:
-------------------------------------
Index YES. Analyze and Store had been left to the default. Will set them and re-test.
> Selecting a single field in a query returns wrong "total_count"
> ---------------------------------------------------------------
>
> Key: ISPN-11013
> URL: https://issues.jboss.org/browse/ISPN-11013
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Querying
> Affects Versions: 10.0.1.Final
> Reporter: Jens Reimann
> Assignee: Gustavo Fernandes
> Priority: Major
> Attachments: infinispan.xml
>
>
> Adding a field selector to the query returns the wrong "total_count" in the result:
> {code:java}
> ➜ openshift oc -n enmasse-infra rsh infinispan-0 curl 'http://app:test12@infinispan-0:11222/rest/v2/caches/devices?action=search...'
> {
> "total_results" : 38847,
> "hits" : [ {
> "hit" : {
> "_type" : "io.enmasse.iot.registry.infinispan.data.DeviceInformation",
> "tenantId" : "jbtest.iot/2019-11-29T08:52:39Z",
> "deviceId" : "http-inserter-wh5xn103",
> "version" : "992899e8-c557-4a2c-8bc0-db950a803898",
> "registrationInformation" : "{}",
> "credentials" : [ {
> "authId" : "device-103",
> "type" : "hashed-password",
> "secrets" : [ "{\"hash-function\":\"bcrypt\",\"pwd-hash\":\"$2y$12$JELemetlJuc.6ZgQkCn5X..7UEPQm5iQV23lgno7/2sEKY2i.mPmS\"}" ]
> } ]
> }
> } ]
> }
> {code}
> {code:java}
> ➜ openshift oc -n enmasse-infra rsh infinispan-0 curl 'http://app:test12@infinispan-0:11222/rest/v2/caches/devices?action=search...'
> {
> "total_results" : 1,
> "hits" : [ {
> "hit" : {
> "deviceId" : "http-inserter-wh5xn103"
> }
> } ]
> }
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 10 months
[JBoss JIRA] (ISPN-11022) Remote exception stack traces are not serialized
by Dan Berindei (Jira)
Dan Berindei created ISPN-11022:
-----------------------------------
Summary: Remote exception stack traces are not serialized
Key: ISPN-11022
URL: https://issues.jboss.org/browse/ISPN-11022
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 10.1.0.Beta1, 10.0.0.Final
Reporter: Dan Berindei
Fix For: 10.1.0.Final
Since ISPN-10345, we have an externalizer for all the exceptions we use internally, but it does not serialize the stack trace, so the exception created on the originator has the wrong stack trace:
{noformat}
Caused by: org.infinispan.remoting.RemoteException: ISPN000217: Received exception from NonIndexedPojoQueryTest-NodeB-14679, see cause for remote stack trace
at org.infinispan.remoting.transport.ResponseCollectors.wrapRemoteException(ResponseCollectors.java:26)
at org.infinispan.remoting.transport.ValidSingleResponseCollector.withException(ValidSingleResponseCollector.java:37)
at org.infinispan.remoting.transport.ValidSingleResponseCollector.addResponse(ValidSingleResponseCollector.java:21)
at org.infinispan.remoting.transport.impl.SingleTargetRequest.addResponse(SingleTargetRequest.java:72)
at org.infinispan.remoting.transport.impl.SingleTargetRequest.onResponse(SingleTargetRequest.java:42)
... 24 more
Caused by: org.infinispan.commons.CacheConfigurationException: Unable to inject dependencies for component class org.infinispan.query.dsl.embedded.impl.IckleFilterAndConverter, path null
at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:177)
at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:42)
at org.infinispan.marshall.core.GlobalMarshaller.readWithExternalizer(GlobalMarshaller.java:728)
at org.infinispan.marshall.core.GlobalMarshaller.readNonNullableObject(GlobalMarshaller.java:709)
at org.infinispan.marshall.core.GlobalMarshaller.readNullableObject(GlobalMarshaller.java:358)
at org.infinispan.marshall.core.BytesObjectInput.readObject(BytesObjectInput.java:32)
at org.infinispan.remoting.responses.ExceptionResponse$Externalizer.readObject(ExceptionResponse.java:49)
at org.infinispan.remoting.responses.ExceptionResponse$Externalizer.readObject(ExceptionResponse.java:41)
at org.infinispan.marshall.core.GlobalMarshaller.readWithExternalizer(GlobalMarshaller.java:728)
at org.infinispan.marshall.core.GlobalMarshaller.readNonNullableObject(GlobalMarshaller.java:709)
at org.infinispan.marshall.core.GlobalMarshaller.readNullableObject(GlobalMarshaller.java:358)
at org.infinispan.marshall.core.GlobalMarshaller.objectFromObjectInput(GlobalMarshaller.java:192)
at org.infinispan.marshall.core.GlobalMarshaller.objectFromByteBuffer(GlobalMarshaller.java:221)
at org.infinispan.remoting.transport.jgroups.JGroupsTransport.processResponse(JGroupsTransport.java:1405)
... 22 more
Caused by: org.infinispan.commons.CacheException: Expected component not found in registry: org.infinispan.query.remote.impl.ObjectReflectionMatcher
at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:181)
at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:42)
at org.infinispan.marshall.core.GlobalMarshaller.readWithExternalizer(GlobalMarshaller.java:728)
at org.infinispan.marshall.core.GlobalMarshaller.readNonNullableObject(GlobalMarshaller.java:709)
at org.infinispan.marshall.core.GlobalMarshaller.readNullableObject(GlobalMarshaller.java:358)
at org.infinispan.marshall.core.BytesObjectInput.readObject(BytesObjectInput.java:32)
at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:176)
... 35 more
{noformat}
We should include the stack trace when serializing remote exceptions, and use {{Throwable.setStackTrace()}} to restore it on the originator.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 10 months
[JBoss JIRA] (ISPN-7008) IllegalLifeCycleStateException from BlockingRunnable.isReady() escapes to originator
by Dan Berindei (Jira)
[ https://issues.jboss.org/browse/ISPN-7008?page=com.atlassian.jira.plugin.... ]
Dan Berindei resolved ISPN-7008.
--------------------------------
Fix Version/s: 9.1.1.Final
(was: 10.1.0.Final)
Resolution: Done
Fixed with ISPN-8227
> IllegalLifeCycleStateException from BlockingRunnable.isReady() escapes to originator
> ------------------------------------------------------------------------------------
>
> Key: ISPN-7008
> URL: https://issues.jboss.org/browse/ISPN-7008
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 8.2.4.Final, 9.0.0.Alpha4
> Reporter: Dan Berindei
> Priority: Major
> Fix For: 9.1.1.Final
>
>
> The ISPN-5539 fix caught {{IllegalLifecycleStateException}} in {{BlockingRunnable.run()}} and sent a {{CacheNotFoundResponse}} to the originator instead. However, exceptions thrown from {{BlockingRunnable.isReady()}} are not caught, and are instead sent back to the originator. An example stack trace is available in the WFLY-7029 description.
> In this case, the exception was thrown directly when the inbound invocation handler tried to submit the command to the remote commands executor. But I see a related problem in {{BlockingTaskAwareExecutorServiceImpl.ControllerThread.run()}}, which stops with the first exception from {{isReady()}}. For {{IllegalLifecycleStateException}} it's probably ok, but for other exceptions it should continue processing new tasks.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 10 months