Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-8350

Some scripts fail to execute on off-heap cache

XMLWordPrintable

      While executing simple scripts on server with off-heap cache seems to work fine, some scripts like script with map and reduce functions fails with

      12:33:00,695 DEBUG [org.infinispan.server.hotrod.HotRodExceptionHandler] (HotRod-ServerWorker-5-3) Exception caught: org.infinispan.commons.CacheException: java.io.IOException: Unsupported protocol version 1
              at org.infinispan.commons.dataconversion.MarshallerEncoder.fromStorage(MarshallerEncoder.java:36)
              at org.infinispan.cache.impl.EncoderEntryMapper.decode(EncoderEntryMapper.java:56)
              at org.infinispan.cache.impl.EncoderEntryMapper.apply(EncoderEntryMapper.java:66)
              at org.infinispan.cache.impl.EncoderEntryMapper.apply(EncoderEntryMapper.java:23)
              at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
              at java.util.Spliterators$IteratorSpliterator.tryAdvance(Spliterators.java:1812)
              at org.infinispan.commons.util.Closeables$SpliteratorAsCloseableSpliterator.tryAdvance(Closeables.java:143)
              at java.util.Spliterator.forEachRemaining(Spliterator.java:326)
              at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
              at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
              at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
              at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
              at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
              at org.infinispan.stream.impl.local.LocalCacheStream.collect(LocalCacheStream.java:360)
              at jdk.nashorn.internal.scripts.Script$1$\^eval\_.:program(<eval>:11)
              at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:637)
              at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494)
              at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
              at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:418)
              at jdk.nashorn.api.scripting.NashornScriptEngine.access$300(NashornScriptEngine.java:73)
              at jdk.nashorn.api.scripting.NashornScriptEngine$3.eval(NashornScriptEngine.java:511)
              at javax.script.CompiledScript.eval(CompiledScript.java:92)
              at org.infinispan.scripting.impl.ScriptingManagerImpl.execute(ScriptingManagerImpl.java:239)
              at org.infinispan.scripting.impl.LocalRunner.runScript(LocalRunner.java:19)
              at org.infinispan.scripting.impl.ScriptingManagerImpl.runScript(ScriptingManagerImpl.java:222)
              at org.infinispan.scripting.impl.ScriptingTaskEngine.runTask(ScriptingTaskEngine.java:44)
              at org.infinispan.tasks.impl.TaskManagerImpl.runTask(TaskManagerImpl.java:99)
              at org.infinispan.server.hotrod.ContextHandler.realRead(ContextHandler.java:120)
              at org.infinispan.server.hotrod.ContextHandler.lambda$channelRead0$0(ContextHandler.java:52)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: java.io.IOException: Unsupported protocol version 1
              at org.jboss.marshalling.river.RiverUnmarshaller.start(RiverUnmarshaller.java:1348)
              at org.infinispan.commons.marshall.jboss.AbstractJBossMarshaller.startObjectInput(AbstractJBossMarshaller.java:128)
              at org.infinispan.commons.marshall.jboss.AbstractJBossMarshaller.objectFromByteBuffer(AbstractJBossMarshaller.java:109)
              at org.infinispan.commons.marshall.AbstractMarshaller.objectFromByteBuffer(AbstractMarshaller.java:82)
              at org.infinispan.commons.dataconversion.MarshallerEncoder.fromStorage(MarshallerEncoder.java:34)
              ... 32 more
      

            gfernand@redhat.com Gustavo Fernandes (Inactive)
            vjuranek@redhat.com Vojtech Juranek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: