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

Regression: storeAsBinary causes RemoteCache to return a MarshalledValue rather than the cached object.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Blocker
    • None
    • 6.0.2.Final
    • Remote Protocols
    • None

    Description

      This is a regression from Infinispan 6.0.0.Final.

      When using the storeAsBinary setting on a cache, RemoteCache.get() method returns a MarshalledValue rather than the actual cached object.

      When I revert back to 6.0.0.Final, the problem does not exist.

      The following exception occurs:

      Bar.java
      ERROR 0410-16:51:45:904 Error interpreting supplied block {ecobee.communicator.util.EcobeeConsole.interpret} [main]({}) 
      org.mozilla.javascript.WrappedException: Wrapped java.lang.ClassCastException: org.infinispan.marshall.core.MarshalledValue cannot be cast to com.ecobee.foundation.model.thermostat.Thermostat (<cmd>#2)
          at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1757)
          at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:170)
          at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)
          at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
          at org.mozilla.javascript.gen.c3._c0(<cmd>:2)
          at org.mozilla.javERROR 0410-16:51:45:904 Error interpreting supplied block {ecobee.communicator.util.EcobeeConsole.interpret} [main]({}) 
      org.mozilla.javascript.WrappedException: Wrapped java.lang.ClassCastException: org.infinispan.marshall.core.MarshalledValue cannot be cast to com.ecobee.foundation.model.thermostat.Thermostat (<cmd>#2)
          at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1757)
          at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:170)
          at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)
          at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
          at org.mozilla.javascript.gen.c3._c0(<cmd>:2)
          at org.mozilla.javascript.gen.c3.call(<cmd>)
          at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
          at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
          at org.mozilla.javascript.gen.c3.call(<cmd>)
          at org.mozilla.javascript.gen.c3.exec(<cmd>)
          at org.mozilla.javascript.Context.evaluateString(Context.java:1196)
          at com.ecobee.communicator.util.EcobeeConsole.interpret(EcobeeConsole.java:148)
          at com.ecobee.communicator.util.EcobeeConsole.console(EcobeeConsole.java:102)
          at com.ecobee.communicator.Administrator.main(Administrator.java:69)
      Caused by: java.lang.ClassCastException: org.infinispan.marshall.core.MarshalledValue cannot be cast to com.ecobee.foundation.model.thermostat.Thermostat
          at com.ecobee.foundation.dao.cluster.impl.ClusterCacheThermostatDao.getThermostat(ClusterCacheThermostatDao.java:66)
          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.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
          ... 12 more
      nullascript.gen.c3.call(<cmd>)
          at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
          at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
          at org.mozilla.javascript.gen.c3.call(<cmd>)
          at org.mozilla.javascript.gen.c3.exec(<cmd>)
          at org.mozilla.javascript.Context.evaluateString(Context.java:1196)
          at com.ecobee.communicator.util.EcobeeConsole.interpret(EcobeeConsole.java:148)
          at com.ecobee.communicator.util.EcobeeConsole.console(EcobeeConsole.java:102)
          at com.ecobee.communicator.Administrator.main(Administrator.java:69)
      Caused by: java.lang.ClassCastException: org.infinispan.marshall.core.MarshalledValue cannot be cast to com.ecobee.foundation.model.thermostat.Thermostat
          at com.ecobee.foundation.dao.cluster.impl.ClusterCacheThermostatDao.getThermostat(ClusterCacheThermostatDao.java:66)
          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.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
          ... 12 more
      null
      

      Attachments

        Activity

          People

            rh-ee-galder Galder ZamarreƱo
            mark.k_jira Mark K (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: