Getting a Apigee error when accessing cache resource

Not applicable

I am getting below error while trying to get data from a cache resource is it coding related issue or apigee platform related issue.

2017-03-17 12:39:55,136 org:*****prd env:facade api:purchase-path-browse rev:60 messageid:prdapgw107-4641-646626-71 policy:Cache.populateCatalogRefDataCache Apigee-Main-16 WARN SERVICES.CACHE - CacheManagerImpl.addEntry() : CacheManagerImpl.addEntry() - exception when adding cache entry tmobileprd__facade__purchase-path-browse__default__refdata - ignoring it.... com.apigee.cache.CacheException: Serialization error for the object of type com.apigee.javascript.om.message.ScriptableContent in cache tmobileprd__facade__trc-ref for key tmobileprd__facade__purchase-path-browse__default__refdata at com.apigee.cache.CacheEntryImpl.calculateValueSize(CacheEntryImpl.java:114) ~[cache-1.0.0.jar:na] at com.apigee.cache.CacheEntryImpl.shouldCompress(CacheEntryImpl.java:102) ~[cache-1.0.0.jar:na] at com.apigee.cache.CacheManagerImpl.addEntry(CacheManagerImpl.java:221) ~[cache-1.0.0.jar:na]

1 1 346
1 REPLY 1

Hi @akshay.anand9. Please note that only serialized values can be cached by the PopulateCache policy. For example, objects and other complex types created in a JavaScript policy cannot be cached. The same applies to Message variables, such as the built-in request and response variables -- the ResponseCache policy should instead be used in this case.

The "Serialization error" you are seeing would suggest you are attempting to cache a value that is not serialized (or that cannot be automatically serialized by the policy). Please could you check the value of the variable you have defined in the <Source> element of your policy. You can use the trace tool to find this information.