Type: Bug Report
Priority: L2 - Critical
Affects Version/s: 7.9.0
Fix Version/s: None
Title Keywords:ObjectValue NullPointerException
After upgrading camunda from version 7.8 to 7.9 all static calls to Variables.objectValue(someObject).create() as well as ObjectValue.create() are throwing NullPointerExceptions if one tries to unit test a single task without any application context due to the change of java serialization feature introduced in version 7.9.
Here is a practical example of a unit test:
As the task delegate uses the typed value API, neither a POJO nor the ObjectValue call succeeds as either a NPE is thrown or an exception that this variable is not an ObjectValue.
I would expect that this static call does not have any side effects nor requires the processEngienConfiguration from the context.
Is there any way getting around that issue, as for most of the unit tests no application context is needed anyway? (concerning cycle time on CI/CD server)
Could you please provide a working sample, couldn't find any matching to this issue.