Infinispan
  1. Infinispan
  2. ISPN-1900

MarshalledValue NPE when unmarshalling preloaded data

    Details

    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Disable storeAsBinary/lazyDeserialization

      Show
      Disable storeAsBinary/lazyDeserialization
    • Similar Issues:
      Show 10 results 

      Description

      org.infinispan.CacheException: Unable to unmarshall value
      	at org.infinispan.marshall.MarshalledValue.deserialize0(MarshalledValue.java:159)
      	at org.infinispan.marshall.MarshalledValue.deserialize(MarshalledValue.java:143)
      	at org.infinispan.marshall.MarshalledValue.get(MarshalledValue.java:224)
      	at org.infinispan.interceptors.MarshalledValueInterceptor.visitEntrySetCommand(MarshalledValueInterceptor.java:256)
      	at org.infinispan.commands.read.EntrySetCommand.acceptVisitor(EntrySetCommand.java:60)
      	at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
      	at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:130)
      	at org.infinispan.commands.AbstractVisitor.visitEntrySetCommand(AbstractVisitor.java:107)
      	at org.infinispan.commands.read.EntrySetCommand.acceptVisitor(EntrySetCommand.java:60)
      	at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
      	at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:130)
      	at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:89)
      	at org.infinispan.commands.AbstractVisitor.visitEntrySetCommand(AbstractVisitor.java:107)
      	at org.infinispan.commands.read.EntrySetCommand.acceptVisitor(EntrySetCommand.java:60)
      	at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:345)
      	at org.infinispan.CacheImpl.entrySet(CacheImpl.java:327)
      	at org.infinispan.CacheImpl.entrySet(CacheImpl.java:320)
      	at org.infinispan.loaders.BaseCacheStoreFunctionalTest.testPreloadStoredAsBinary(BaseCacheStoreFunctionalTest.java:166)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:644)
      	at org.testng.internal.Invoker.invokeMethod(Invoker.java:546)
      	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:700)
      	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1002)
      	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:137)
      	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:121)
      	at org.testng.TestRunner.runWorkers(TestRunner.java:909)
      	at org.testng.TestRunner.privateRun(TestRunner.java:618)
      	at org.testng.TestRunner.run(TestRunner.java:499)
      	at org.testng.SuiteRunner.runTest(SuiteRunner.java:332)
      	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:327)
      	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:299)
      	at org.testng.SuiteRunner.run(SuiteRunner.java:204)
      	at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:915)
      	at org.testng.TestNG.runSuitesLocally(TestNG.java:879)
      	at org.testng.TestNG.run(TestNG.java:787)
      	at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
      	at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:101)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
      Caused by: java.lang.NullPointerException
      	at org.infinispan.marshall.MarshalledValue.deserialize0(MarshalledValue.java:154)
      	... 44 more

        Activity

        Hide
        Manik Surtani
        added a comment -

        If this makes storeAsBinary unusable, shouldn't this fix be backported to 5.1.x as well?

        Show
        Manik Surtani
        added a comment - If this makes storeAsBinary unusable, shouldn't this fix be backported to 5.1.x as well?

          People

          • Assignee:
            Galder Zamarreño
            Reporter:
            Galder Zamarreño
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: