(De)Serialization problem

Hi all,

I have got an object that includes non-serializable objects from a jar of a third party. Also I have to use this object in almost every task of our BPMN-model. I already figured out how to serialize the problematic objects with “wrapper” classes. Yet, since those objects are not implementing the interface “Serializable” and there is no “no-arg constructor”, I get a Deserialization InvalidClassException. Also, i tried to add the camunda spin dependencies: camunda-spin-core, camunda-dataformat-all etc. to my pre-built Camunda project but then I received a "Form failure: cannot get start form data for process definition " error.
Is there another way to deserialize that object or even better: to make all classes in the jar serializable.

Thanks in advance,
Fred

You should implement a custom serialisation routine for the wrapper class. Then it doesn’t matter whether nested objects are serializable. Just declaring the wrapper class serialisable (implement serializable) is not enough. This is pure java and is not camunda specific.