ENGINE-17007 when post variable

How to avoid error
ENGINE-17007 Cannot set variable with name arrayOfLong. Java serialization format is prohibited
when I try to post

POST {{SERVER_HOST}}/rest/signal/

{
	"name": "start1",
	"variables": {
		"arrayOfLong": {
			"type":"Object",
			"value": "[1]",
			"valueInfo": {
				"objectTypeName": "java.util.ArrayList",
				"serializationDataFormat": "application/x-java-serialized-object"
			} 
			
		}
	}
}

I am using camunda that run with spring boot application.
Recipt from thit post External Task Error: ENGINE-17007 Java serialization format is prohibited not work. I put bpm-platform.xml eweryware(META-INF, src, conf e.g.), but still not working

Try setting this in your bpmn-platform.xml <property name="javaSerializationFormatEnabled">true</property> under <process-engine>'s <properties> and if you are using tomcat as your app server, this file should be under your tomcat’s conf directory.

I put bpm-platform.xml eweryware(META-INF, src, conf e.g.), but still not working

Try setting this in your bpmn-platform.xml <property name="javaSerializationFormatEnabled">true</property> under <process-engine>'s <properties> and if you are using tomcat as your app server, this file should be under your tomcat’s conf directory.

It’ s not working with spring boot. I don’t know why. But when i set this property throw spring config it is work


    @Bean
    public SpringProcessEngineConfiguration processEngineConfiguration() {
        SpringProcessEngineConfiguration config = new SpringProcessEngineConfiguration();
        config.setDataSource(dataSource);
        config.setTransactionManager(transactionManager);
        
        config.setDatabaseSchemaUpdate("true");
        config.setJavaSerializationFormatEnabled(true);
        return config;
    }