[
https://issues.jboss.org/browse/ISPN-4208?page=com.atlassian.jira.plugin....
]
Mark K closed ISPN-4208.
------------------------
Resolution: Cannot Reproduce Bug
My bad. I had not updated another dependency jar which caused this test to pass with
6.0.0.Final. This is not a regression. I'll post on the forums to find out what the
deal is with MarshalledValue being returned.
Regression: storeAsBinary causes RemoteCache to return a
MarshalledValue rather than the cached object.
-------------------------------------------------------------------------------------------------------
Key: ISPN-4208
URL:
https://issues.jboss.org/browse/ISPN-4208
Project: Infinispan
Issue Type: Bug
Components: Remote Protocols
Affects Versions: 6.0.2.Final
Reporter: Mark K
Assignee: Galder ZamarreƱo
Priority: Blocker
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:
{code:title=Bar.java|borderStyle=solid}
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
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira