0 Replies Latest reply on Jul 9, 2015 11:57 AM by Nicolas V.

    Building C++ hotrod client generate exception for unsupported protocol version 107

    Nicolas V. Newbie

      Hello,

       

      I needed to rebuild the c++ hotrod client because I am using Visual Studio 2013.

       

      After doing so, and using it (and solving my compatiblity mode problem) my cache node generate an exception, about a not supported protocol version 107 :

       

      14:39:33.633 [HotRodServerWorker-3-1] ERROR o.i.i.InvocationContextInterceptor - ISPN000136: Execution error

      java.io.IOException: Unsupported protocol version 107

          at org.jboss.marshalling.river.RiverUnmarshaller.start(RiverUnmarshaller.java:1249) ~[jboss-marshalling-osgi-1.4.10.Final.jar:1.4.10.Final]

          at org.infinispan.commons.marshall.jboss.AbstractJBossMarshaller.startObjectInput(AbstractJBossMarshaller.java:128) ~[infinispan-commons-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.commons.marshall.jboss.AbstractJBossMarshaller.objectFromByteBuffer(AbstractJBossMarshaller.java:109) ~[infinispan-commons-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.commons.marshall.AbstractMarshaller.objectFromByteBuffer(AbstractMarshaller.java:82) ~[infinispan-commons-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.server.hotrod.HotRodTypeConverter.unmarshall(HotRodTypeConverter.scala:38) ~[infinispan-server-hotrod-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.server.hotrod.HotRodTypeConverter.boxKey(HotRodTypeConverter.scala:20) ~[infinispan-server-hotrod-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.interceptors.compat.BaseTypeConverterInterceptor.visitPutKeyValueCommand(BaseTypeConverterInterceptor.java:66) ~[infinispan-core-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:71) ~[infinispan-core-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:97) ~[infinispan-core-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:102) ~[infinispan-core-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:71) ~[infinispan-core-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.commands.AbstractVisitor.visitPutKeyValueCommand(AbstractVisitor.java:44) ~[infinispan-core-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:71) ~[infinispan-core-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:336) [infinispan-core-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.cache.impl.CacheImpl.executeCommandAndCommitIfNeeded(CacheImpl.java:1617) [infinispan-core-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.cache.impl.CacheImpl.putInternal(CacheImpl.java:1097) [infinispan-core-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.cache.impl.CacheImpl.put(CacheImpl.java:1089) [infinispan-core-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.cache.impl.DecoratedCache.put(DecoratedCache.java:522) [infinispan-core-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.server.hotrod.CacheDecodeContext.put(CacheDecodeContext.scala:215) [infinispan-server-hotrod-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.server.hotrod.HotRodDecoder.org$infinispan$server$hotrod$HotRodDecoder$$decodeValue(HotRodDecoder.scala:132) [infinispan-server-hotrod-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.server.hotrod.HotRodDecoder$$anonfun$decode$1.apply$mcV$sp(HotRodDecoder.scala:50) [infinispan-server-hotrod-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.server.hotrod.HotRodDecoder.wrapSecurity(HotRodDecoder.scala:208) [infinispan-server-hotrod-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.server.hotrod.HotRodDecoder.decode(HotRodDecoder.scala:45) [infinispan-server-hotrod-7.2.3.Final.jar:7.2.3.Final]

          at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:370) [netty-all-4.0.25.Final.jar:4.0.25.Final]

          at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:168) [netty-all-4.0.25.Final.jar:4.0.25.Final]

          at org.infinispan.server.hotrod.HotRodDecoder.org$infinispan$server$core$transport$StatsChannelHandler$$super$channelRead(HotRodDecoder.scala:31) [infinispan-server-hotrod-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.server.core.transport.StatsChannelHandler$class.channelRead(StatsChannelHandler.scala:32) [infinispan-server-core-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.server.hotrod.HotRodDecoder.channelRead(HotRodDecoder.scala:31) [infinispan-server-hotrod-7.2.3.Final.jar:7.2.3.Final]

          at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308) [netty-all-4.0.25.Final.jar:4.0.25.Final]

          at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294) [netty-all-4.0.25.Final.jar:4.0.25.Final]

          at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846) [netty-all-4.0.25.Final.jar:4.0.25.Final]

          at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:130) [netty-all-4.0.25.Final.jar:4.0.25.Final]

          at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511) [netty-all-4.0.25.Final.jar:4.0.25.Final]

          at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468) [netty-all-4.0.25.Final.jar:4.0.25.Final]

          at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382) [netty-all-4.0.25.Final.jar:4.0.25.Final]

          at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354) [netty-all-4.0.25.Final.jar:4.0.25.Final]

          at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) [netty-all-4.0.25.Final.jar:4.0.25.Final]

          at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) [netty-all-4.0.25.Final.jar:4.0.25.Final]

          at java.lang.Thread.run(Thread.java:745) [na:1.8.0_25]

      14:39:33.636 [HotRodServerWorker-3-1] DEBUG o.i.server.hotrod.CacheDecodeContext - Exception caught

      io.netty.handler.codec.DecoderException: org.infinispan.server.hotrod.HotRodException: org.infinispan.commons.CacheException: java.io.IOException: Unsupported protocol version 107

          at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:425) ~[netty-all-4.0.25.Final.jar:4.0.25.Final]

          at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:168) ~[netty-all-4.0.25.Final.jar:4.0.25.Final]

          at org.infinispan.server.hotrod.HotRodDecoder.org$infinispan$server$core$transport$StatsChannelHandler$$super$channelRead(HotRodDecoder.scala:31) ~[infinispan-server-hotrod-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.server.core.transport.StatsChannelHandler$class.channelRead(StatsChannelHandler.scala:32) ~[infinispan-server-core-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.server.hotrod.HotRodDecoder.channelRead(HotRodDecoder.scala:31) ~[infinispan-server-hotrod-7.2.3.Final.jar:7.2.3.Final]

          at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308) ~[netty-all-4.0.25.Final.jar:4.0.25.Final]

          at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294) ~[netty-all-4.0.25.Final.jar:4.0.25.Final]

          at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846) ~[netty-all-4.0.25.Final.jar:4.0.25.Final]

          at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:130) ~[netty-all-4.0.25.Final.jar:4.0.25.Final]

          at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511) [netty-all-4.0.25.Final.jar:4.0.25.Final]

          at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468) [netty-all-4.0.25.Final.jar:4.0.25.Final]

          at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382) [netty-all-4.0.25.Final.jar:4.0.25.Final]

          at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354) [netty-all-4.0.25.Final.jar:4.0.25.Final]

          at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) [netty-all-4.0.25.Final.jar:4.0.25.Final]

          at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) [netty-all-4.0.25.Final.jar:4.0.25.Final]

          at java.lang.Thread.run(Thread.java:745) [na:1.8.0_25]

      Caused by: org.infinispan.server.hotrod.HotRodException: org.infinispan.commons.CacheException: java.io.IOException: Unsupported protocol version 107

          at org.infinispan.server.hotrod.CacheDecodeContext.createServerException(CacheDecodeContext.scala:100) ~[infinispan-server-hotrod-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.server.hotrod.HotRodDecoder.decode(HotRodDecoder.scala:55) ~[infinispan-server-hotrod-7.2.3.Final.jar:7.2.3.Final]

          at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:370) ~[netty-all-4.0.25.Final.jar:4.0.25.Final]

          ... 15 common frames omitted

      Caused by: org.infinispan.commons.CacheException: java.io.IOException: Unsupported protocol version 107

          at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:344) ~[infinispan-core-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.cache.impl.CacheImpl.executeCommandAndCommitIfNeeded(CacheImpl.java:1617) ~[infinispan-core-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.cache.impl.CacheImpl.putInternal(CacheImpl.java:1097) ~[infinispan-core-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.cache.impl.CacheImpl.put(CacheImpl.java:1089) ~[infinispan-core-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.cache.impl.DecoratedCache.put(DecoratedCache.java:522) ~[infinispan-core-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.server.hotrod.CacheDecodeContext.put(CacheDecodeContext.scala:215) ~[infinispan-server-hotrod-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.server.hotrod.HotRodDecoder.org$infinispan$server$hotrod$HotRodDecoder$$decodeValue(HotRodDecoder.scala:132) ~[infinispan-server-hotrod-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.server.hotrod.HotRodDecoder$$anonfun$decode$1.apply$mcV$sp(HotRodDecoder.scala:50) ~[infinispan-server-hotrod-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.server.hotrod.HotRodDecoder.wrapSecurity(HotRodDecoder.scala:208) ~[infinispan-server-hotrod-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.server.hotrod.HotRodDecoder.decode(HotRodDecoder.scala:45) ~[infinispan-server-hotrod-7.2.3.Final.jar:7.2.3.Final]

          ... 16 common frames omitted

      Caused by: java.io.IOException: Unsupported protocol version 107

          at org.jboss.marshalling.river.RiverUnmarshaller.start(RiverUnmarshaller.java:1249) ~[jboss-marshalling-osgi-1.4.10.Final.jar:1.4.10.Final]

          at org.infinispan.commons.marshall.jboss.AbstractJBossMarshaller.startObjectInput(AbstractJBossMarshaller.java:128) ~[infinispan-commons-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.commons.marshall.jboss.AbstractJBossMarshaller.objectFromByteBuffer(AbstractJBossMarshaller.java:109) ~[infinispan-commons-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.commons.marshall.AbstractMarshaller.objectFromByteBuffer(AbstractMarshaller.java:82) ~[infinispan-commons-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.server.hotrod.HotRodTypeConverter.unmarshall(HotRodTypeConverter.scala:38) ~[infinispan-server-hotrod-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.server.hotrod.HotRodTypeConverter.boxKey(HotRodTypeConverter.scala:20) ~[infinispan-server-hotrod-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.interceptors.compat.BaseTypeConverterInterceptor.visitPutKeyValueCommand(BaseTypeConverterInterceptor.java:66) ~[infinispan-core-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:71) ~[infinispan-core-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:97) ~[infinispan-core-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:102) ~[infinispan-core-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:71) ~[infinispan-core-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.commands.AbstractVisitor.visitPutKeyValueCommand(AbstractVisitor.java:44) ~[infinispan-core-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:71) ~[infinispan-core-7.2.3.Final.jar:7.2.3.Final]

          at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:336) ~[infinispan-core-7.2.3.Final.jar:7.2.3.Final]

          ... 25 common frames omitted

       

      Where is the problem ? the sources for the c++ hotrod api is extracted from git and using the commit 3bac69cbddb195b37c3def06463e30705c494985

       

      Thanks for any help.