RE: [coldbox:16295] Cachebox and null values

What provider/store are you using? If it is a provider that serializes the values, it could be related to that.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Hi Brad,

I’m using the JDBC provider.

Thanks.

Nolan

Hey Brad,

It looks like it’s using the ObjectMarshaller in the core.

converter = createObject(“component”,“coldbox.system.core.conversion.ObjectMarshaller”).init()

Does that sound correct?

//init

// Algorithm detection
instance = structnew();
instance.algorithm = “generic”;
if( engine eq CFMLEngine.RAILO ){ instance.algorithm = “railo”; }
if( engine eq CFMLEngine.ADOBE and version GTE 9 ){ instance.algorithm = “objectSave”;

//serializeObject function

// Which algorithm to use?

switch(instance.algorithm){

case “generic” : {

binaryData = serializeGeneric(arguments.target);

break;

}

case “railo” : {

binaryData = serializeRailo(arguments.target);

break;

}

case “objectSave” : {

binaryData = serializeWithObjectSave(arguments.target);

break;

}

}