[JBoss JIRA] (ISPN-9427) Expose xsite configuration through Hot Rod properties
by Tristan Tarrant (JIRA)
Tristan Tarrant created ISPN-9427:
-------------------------------------
Summary: Expose xsite configuration through Hot Rod properties
Key: ISPN-9427
URL: https://issues.jboss.org/browse/ISPN-9427
Project: Infinispan
Issue Type: Enhancement
Components: Hot Rod
Affects Versions: 9.4.0.Beta1
Reporter: Tristan Tarrant
Assignee: Tristan Tarrant
Fix For: 9.4.0.CR1
Expose the xsite cluster configuration as properties in the Hot Rod client.
infinispan.client.hotrod.cluster.siteA=127.0.0.2:11222;127.0.0.2:11223
infinispan.client.hotrod.cluster.siteB=127.0.0.3:11222;127.0.0.3:11223
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 7 months
[JBoss JIRA] (ISPN-9424) Remote script execution broken for Hot Rod 2.5
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-9424?page=com.atlassian.jira.plugin.... ]
Galder Zamarreño updated ISPN-9424:
-----------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
> Remote script execution broken for Hot Rod 2.5
> ----------------------------------------------
>
> Key: ISPN-9424
> URL: https://issues.jboss.org/browse/ISPN-9424
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 9.4.0.Beta1
> Reporter: Galder Zamarreño
> Assignee: Gustavo Fernandes
> Fix For: 9.4.0.CR1
>
>
> Running {{ExecTypedTest}} with protocol version 2.5 fails (modifying RemoteCacheManager created in {{createAddScriptClient}} method):
> {code}
> 2018-08-13 19:16:22,030 ERROR [org.infinispan.interceptors.impl.InvocationContextInterceptor] (HotRod-ExecTypedTest-ServerWorker-6-2:[]) ISPN000136: Error executing command PutKeyValueCommand, writing keys [WrappedByteArray{bytes=[B0x033E157479706564..[24], hashCode=0}]
> java.lang.ClassCastException: org.infinispan.commons.marshall.WrappedByteArray cannot be cast to java.lang.String
> at org.infinispan.scripting.impl.ScriptingInterceptor.visitPutKeyValueCommand(ScriptingInterceptor.java:30) ~[classes/:?]
> at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:68) ~[classes/:?]
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 7 months
[JBoss JIRA] (ISPN-9426) Distributed script execution returning null results in NullPointerException
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-9426?page=com.atlassian.jira.plugin.... ]
Galder Zamarreño reassigned ISPN-9426:
--------------------------------------
Assignee: Gustavo Fernandes (was: Galder Zamarreño)
> Distributed script execution returning null results in NullPointerException
> ---------------------------------------------------------------------------
>
> Key: ISPN-9426
> URL: https://issues.jboss.org/browse/ISPN-9426
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 9.4.0.Beta1
> Reporter: Galder Zamarreño
> Assignee: Gustavo Fernandes
> Fix For: 9.4.0.CR1
>
>
> The following script:
> {code}
> // mode=distributed,language=javascript,datatype='text/plain; charset=utf-8'
> cache.get("not-exist");
> {code}
> Results in:
> {code}
> org.infinispan.client.hotrod.exceptions.HotRodClientException:
> Request for messageId=19 returned server error (status=0x85): java.lang.NullPointerException
> at org.infinispan.client.hotrod.impl.protocol.Codec20.checkForErrorsInResponseStatus(Codec20.java:338)
> at org.infinispan.client.hotrod.impl.protocol.Codec20.readHeader(Codec20.java:180)
> at org.infinispan.client.hotrod.impl.transport.netty.HeaderDecoder.decode(HeaderDecoder.java:138)
> at org.infinispan.client.hotrod.impl.transport.netty.HintedReplayingDecoder.callDecode(HintedReplayingDecoder.java:98)
> at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
> at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
> at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
> at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
> at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1414)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
> at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:945)
> at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:146)
> at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)
> at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580)
> at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497)
> at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)
> at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> {code}
> The issue happens with both latest 2.8 and older 2.5 protocol versions.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 7 months
[JBoss JIRA] (ISPN-9426) Distributed script execution returning null results in NullPointerException
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-9426?page=com.atlassian.jira.plugin.... ]
Work on ISPN-9426 stopped by Galder Zamarreño.
----------------------------------------------
> Distributed script execution returning null results in NullPointerException
> ---------------------------------------------------------------------------
>
> Key: ISPN-9426
> URL: https://issues.jboss.org/browse/ISPN-9426
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 9.4.0.Beta1
> Reporter: Galder Zamarreño
> Assignee: Gustavo Fernandes
> Fix For: 9.4.0.CR1
>
>
> The following script:
> {code}
> // mode=distributed,language=javascript,datatype='text/plain; charset=utf-8'
> cache.get("not-exist");
> {code}
> Results in:
> {code}
> org.infinispan.client.hotrod.exceptions.HotRodClientException:
> Request for messageId=19 returned server error (status=0x85): java.lang.NullPointerException
> at org.infinispan.client.hotrod.impl.protocol.Codec20.checkForErrorsInResponseStatus(Codec20.java:338)
> at org.infinispan.client.hotrod.impl.protocol.Codec20.readHeader(Codec20.java:180)
> at org.infinispan.client.hotrod.impl.transport.netty.HeaderDecoder.decode(HeaderDecoder.java:138)
> at org.infinispan.client.hotrod.impl.transport.netty.HintedReplayingDecoder.callDecode(HintedReplayingDecoder.java:98)
> at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
> at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
> at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
> at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
> at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1414)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
> at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:945)
> at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:146)
> at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)
> at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580)
> at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497)
> at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)
> at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> {code}
> The issue happens with both latest 2.8 and older 2.5 protocol versions.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 7 months
[JBoss JIRA] (ISPN-9426) Distributed script execution returning null results in NullPointerException
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-9426?page=com.atlassian.jira.plugin.... ]
Galder Zamarreño commented on ISPN-9426:
----------------------------------------
But if null returned by a script is assumed String and return an empty String, that'd change previous behaviour that just returned null for the Java client.
> Distributed script execution returning null results in NullPointerException
> ---------------------------------------------------------------------------
>
> Key: ISPN-9426
> URL: https://issues.jboss.org/browse/ISPN-9426
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 9.4.0.Beta1
> Reporter: Galder Zamarreño
> Assignee: Galder Zamarreño
> Fix For: 9.4.0.CR1
>
>
> The following script:
> {code}
> // mode=distributed,language=javascript,datatype='text/plain; charset=utf-8'
> cache.get("not-exist");
> {code}
> Results in:
> {code}
> org.infinispan.client.hotrod.exceptions.HotRodClientException:
> Request for messageId=19 returned server error (status=0x85): java.lang.NullPointerException
> at org.infinispan.client.hotrod.impl.protocol.Codec20.checkForErrorsInResponseStatus(Codec20.java:338)
> at org.infinispan.client.hotrod.impl.protocol.Codec20.readHeader(Codec20.java:180)
> at org.infinispan.client.hotrod.impl.transport.netty.HeaderDecoder.decode(HeaderDecoder.java:138)
> at org.infinispan.client.hotrod.impl.transport.netty.HintedReplayingDecoder.callDecode(HintedReplayingDecoder.java:98)
> at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
> at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
> at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
> at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
> at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1414)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
> at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:945)
> at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:146)
> at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)
> at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580)
> at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497)
> at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)
> at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> {code}
> The issue happens with both latest 2.8 and older 2.5 protocol versions.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 7 months
[JBoss JIRA] (ISPN-9426) Distributed script execution returning null results in NullPointerException
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-9426?page=com.atlassian.jira.plugin.... ]
Galder Zamarreño commented on ISPN-9426:
----------------------------------------
At the protocol level, a null return is sent as an empty byte[]. The java client transforms that into null. I guess that's cos there's no transformation to String? If the user wanted it as text plain String it should be converted to empty String.
Debugging the code the request mediat type is String, so {testLocalTypedExecNullReturn} should be expecting empty String instead of null? Then executing the same script distributed should return a collection of empty Strings. [~gustavonalle] ?
> Distributed script execution returning null results in NullPointerException
> ---------------------------------------------------------------------------
>
> Key: ISPN-9426
> URL: https://issues.jboss.org/browse/ISPN-9426
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 9.4.0.Beta1
> Reporter: Galder Zamarreño
> Assignee: Galder Zamarreño
> Fix For: 9.4.0.CR1
>
>
> The following script:
> {code}
> // mode=distributed,language=javascript,datatype='text/plain; charset=utf-8'
> cache.get("not-exist");
> {code}
> Results in:
> {code}
> org.infinispan.client.hotrod.exceptions.HotRodClientException:
> Request for messageId=19 returned server error (status=0x85): java.lang.NullPointerException
> at org.infinispan.client.hotrod.impl.protocol.Codec20.checkForErrorsInResponseStatus(Codec20.java:338)
> at org.infinispan.client.hotrod.impl.protocol.Codec20.readHeader(Codec20.java:180)
> at org.infinispan.client.hotrod.impl.transport.netty.HeaderDecoder.decode(HeaderDecoder.java:138)
> at org.infinispan.client.hotrod.impl.transport.netty.HintedReplayingDecoder.callDecode(HintedReplayingDecoder.java:98)
> at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
> at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
> at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
> at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
> at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1414)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
> at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:945)
> at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:146)
> at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)
> at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580)
> at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497)
> at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)
> at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> {code}
> The issue happens with both latest 2.8 and older 2.5 protocol versions.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 7 months
[JBoss JIRA] (ISPN-9426) Distributed script execution returning null results in NullPointerException
by Galder Zamarreño (JIRA)
[ https://issues.jboss.org/browse/ISPN-9426?page=com.atlassian.jira.plugin.... ]
Galder Zamarreño edited comment on ISPN-9426 at 8/14/18 4:07 AM:
-----------------------------------------------------------------
At the protocol level, a null return is sent as an empty byte[]. The java client transforms that into null. I guess that's cos there's no transformation to String? If the user wanted it as text plain String it should be converted to empty String.
Debugging the code the request mediat type is String, so {{testLocalTypedExecNullReturn}} should be expecting empty String instead of null? Then executing the same script distributed should return a collection of empty Strings. [~gustavonalle] ?
was (Author: galder.zamarreno):
At the protocol level, a null return is sent as an empty byte[]. The java client transforms that into null. I guess that's cos there's no transformation to String? If the user wanted it as text plain String it should be converted to empty String.
Debugging the code the request mediat type is String, so {testLocalTypedExecNullReturn} should be expecting empty String instead of null? Then executing the same script distributed should return a collection of empty Strings. [~gustavonalle] ?
> Distributed script execution returning null results in NullPointerException
> ---------------------------------------------------------------------------
>
> Key: ISPN-9426
> URL: https://issues.jboss.org/browse/ISPN-9426
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 9.4.0.Beta1
> Reporter: Galder Zamarreño
> Assignee: Galder Zamarreño
> Fix For: 9.4.0.CR1
>
>
> The following script:
> {code}
> // mode=distributed,language=javascript,datatype='text/plain; charset=utf-8'
> cache.get("not-exist");
> {code}
> Results in:
> {code}
> org.infinispan.client.hotrod.exceptions.HotRodClientException:
> Request for messageId=19 returned server error (status=0x85): java.lang.NullPointerException
> at org.infinispan.client.hotrod.impl.protocol.Codec20.checkForErrorsInResponseStatus(Codec20.java:338)
> at org.infinispan.client.hotrod.impl.protocol.Codec20.readHeader(Codec20.java:180)
> at org.infinispan.client.hotrod.impl.transport.netty.HeaderDecoder.decode(HeaderDecoder.java:138)
> at org.infinispan.client.hotrod.impl.transport.netty.HintedReplayingDecoder.callDecode(HintedReplayingDecoder.java:98)
> at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
> at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
> at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
> at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
> at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1414)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
> at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
> at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:945)
> at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:146)
> at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)
> at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580)
> at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497)
> at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)
> at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> {code}
> The issue happens with both latest 2.8 and older 2.5 protocol versions.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 7 months