I have the flow Foobar which is triggered from another flow via a lookup() call. In Foobar is a Cache scope, and in the cache scope is an HTTP Request which gets back a JSON object. If I try to set up the caching strategy to use a persistent Object Store I get the error "Unable to store event in cache" because org.mule.runtime.core.internal.streaming.object.ManagedCursorIteratorProvider isn't serializable. I thought the problem might be that it can't cache Mule's internal representation of the JSON object, so I removed the Request processor's payload metadata specification (which said the output payload was JSON) and also set the processor's MIME type from application/json to application/java; that didn't help.
I'm trying all this in Anypoint Studio 7.2.3 (haven't tested in CloudHub yet).
EDIT: @najma I've already tried putting a JSON to Java Transform Message right after the Request, but that didn't help any.
@mc_quintrix_training have u read my answer correctly? I already said if you set the output payload as java object it will be consumable payload which cannot be stored in cache