query cache created in 4.5 cannot be read in 5.2

Description

lucee.runtime.type.ArrayInt; local class incompatible: stream classdesc serialVersionUID = -3373631539654174873, local class serialVersionUID = -2454622233757247080

lucee.runtime.exp.NativeException: lucee.runtime.type.ArrayInt; local class incompatible: stream classdesc serialVersionUID = -3373631539654174873, local class serialVersionUID = -2454622233757247080 at lucee.runtime.exp.NativeException.newInstance(NativeException.java:73) at lucee.runtime.op.Caster.toPageException(Caster.java:3201) at lucee.runtime.op.Caster.toPageException(Caster.java:3176) at lucee.runtime.functions.other.ObjectLoad.call(ObjectLoad.java:58) at data.coremarshaller_cfc$cf.udfCall(/cfcouchbase/data/CoreMarshaller.cfc:158) at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:106) at lucee.runtime.type.UDFImpl._call(UDFImpl.java:338) at lucee.runtime.type.UDFImpl.call(UDFImpl.java:225) at lucee.runtime.ComponentImpl._call(ComponentImpl.java:697) at lucee.runtime.ComponentImpl._call(ComponentImpl.java:580) at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1918) at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:758) at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1701) at couchbaseclient_cfc$cf.udfCall7(/cfcouchbase/CouchbaseClient.cfc:2759) at couchbaseclient_cfc$cf.udfCall(/cfcouchbase/CouchbaseClient.cfc) at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:106) at lucee.runtime.type.UDFImpl._call(UDFImpl.java:338) at lucee.runtime.type.UDFImpl.call(UDFImpl.java:225) at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:772) at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:758) at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1701) at couchbaseclient_cfc$cf.udfCall2(/cfcouchbase/CouchbaseClient.cfc:793) at couchbaseclient_cfc$cf.udfCall(/cfcouchbase/CouchbaseClient.cfc) at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:106) at lucee.runtime.type.UDFImpl._call(UDFImpl.java:338) at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:211) at lucee.runtime.ComponentImpl._call(ComponentImpl.java:698) at lucee.runtime.ComponentImpl._call(ComponentImpl.java:580) at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1935) at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:835) at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1722) at test_cfm$cf.call(/test.cfm:29) at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:928) at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:842) at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:224) at lucee.runtime.listener.ModernAppListener.onRequest(ModernAppListener.java:104) at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2408) at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2398) at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2366) at lucee.runtime.engine.Request.run(Request.java:34)

Activity

Show:
Brad Wood
June 13, 2017, 10:30 PM

Hi Marc, this is by design in Lucee that you can't share natively serialized objects between Lucee versions. It's unfortunate, but there's nothing I can do from the couchbase provider's perspective. The solution is to do your own serialization prior to storing the item and your own deserialization after retrieving it.

The only long term solution for this would be for us to completely abandon the built-in serialization for the SDK.

Won't Fix

Assignee

Brad Wood

Reporter

Marc Archenault

Labels

None

Components

Priority

Major