Cannot deserialize object in variable 'policy' : SPIN/DOM-XML-01009 unable to parse input into DOM document

Hi All,

We are trying to add one object with type as an Java.util.ArrayList through cockpit as well as through camunda rest api. But it is showing below deserialization error :
Cannot deserialize object in variable ‘policy’ : SPIN/DOM-XML-01009 unable to parse input into DOM document .

Variable name : xyz
Object type name : Java.util.ArrayList
Serialisation data format : application/XML
(Here we also tried to use “application/x-java-serialized-object” at first, but it was showing that this format is prohibited.)
So now we are trying to add this variable through XML or json.

Please put your views on it.