Getting error in REST interface when deserializing JSON list-variable

Hi,

we are experiencing a classloading issue:

Our process retrieves a list of Strings and stores it in a variable.
This variable can successfully be used as the parameter for a parallel multi-instance activity, so the engine recognizes it as a List or an Array.

However, if we query the process-parameters for such a process-instance via the REST-Api or browse the variables in the Camunda cockpit, we’re getting the following error:
error-message:
Cannot deserialize object
in variable ‘list’: ENGINE-09017 Cannot load class
‘net.minidev.json.JSONArray’: net.minidev.json.JSONArray from [Module
“deployment.camunda-engine-rest-7.4.2-ee.war:main” from Service
Module Loader

Environment:
Camunda-7.4.2-ee on JBoss 7.2 (as module)
Camunda REST-Api and Cockpit deployed as WARs on the same JBoss

What can we do to prevent this error?

Thanks!
Patrick

You can add the query parameter deserializeValues=false when calling the REST api.

1 Like