Activiti to Camunda Migration

Hi,
I have a custom application using Spring Framework + activiti.
Migrated Activiti 5.21 + Spring Framework to Camunda 7.5 + Spring Framework successfully. As per the documentation, everything should work without any issues.
As part of testing, when I tried to suspend or resume process instance, it is throwing below error which is used to work fine in Activiti. At line where I am setting the workflow variable, it is throwing error
org.camunda.bpm.engine.ProcessEngineException: ENGINE-03040 No serializer defined for variable instance ‘org.camunda.bpm.engine.impl.persistence.entity.util.TypedValueField@46fba943’

Code:
runtimeService.setVariable(document.getWorkflowId(), TaskConstants.SUSPENDED_DATE, new Date());
runtimeService.suspendProcessInstanceById(document.getWorkflowId());