# Spin fails to deserialize Spin objects

**URL:** <https://forum.camunda.io/t/spin-fails-to-deserialize-spin-objects/52203>\
**Category:** Camunda 7 Topics\
**Created:** [May 3, 2024, 6:02am UTC](https://forum.camunda.io/t/spin-fails-to-deserialize-spin-objects/52203 "2024-05-03T06:02:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adagatiya](https://forum.camunda.io/user_avatar/forum.camunda.io/adagatiya/32/22124_2.png) [@Adagatiya](https://forum.camunda.io/u/Adagatiya)\
**Post date:** [May 3, 2024, 6:02am UTC](https://forum.camunda.io/t/spin-fails-to-deserialize-spin-objects/52203/1 "2024-05-03T06:02:21Z")

</div>

Hi together,

at our project we integrated the camunda spin plugin.

Now, when I use an expression as follows to parse a simple JSON object:

```auto
${S("{\"NR\":\"2600006733\"}")}

```

Then it throws the following exception indicating that the used `ObjectMapper` has no idea how to serialize objects of type `JacksonJsonNode`.

`Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `org.camunda.spin.impl.json.jackson.JacksonJsonNode` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator)`

This feels odd as JackJsonNode is a class from within Spin so I expected it to be compatible without any further modifications. Am I missing something?

As additional info, we use the following versions of spin-relevant-libraries:

- camunda-engine-plugin-spin 7.17.0
- camunda-spin-core 1.14.0
- camunda-spin-dataformat-json-jackson 1.14.0
- Jackson xxx 2.13.5 (differs from 2.13.1 as mentioned in spin pom’s)

I would highly appreciate any further ideas or investigations what the issue currently.

Kind regards  
Alexander Skrock

---

<div class="post-metadata">

**Author:** ![WilliamR.Alves](https://forum.camunda.io/user_avatar/forum.camunda.io/williamr.alves/32/27412_2.png) [@WilliamR.Alves](https://forum.camunda.io/u/WilliamR.Alves)\
**Post date:** [May 3, 2024, 9:18pm UTC](https://forum.camunda.io/t/spin-fails-to-deserialize-spin-objects/52203/2 "2024-05-03T21:18:04Z")

</div>

hello my friend!

Does the object you are trying to serialize/deserialize have an empty constructor?

because Jackson uses reflection under the hood and for that it needs an empty constructor for initialization without parameters.

William Robert Alves

---

<div class="post-metadata">

**Author:** ![Adagatiya](https://forum.camunda.io/user_avatar/forum.camunda.io/adagatiya/32/22124_2.png) [@Adagatiya](https://forum.camunda.io/u/Adagatiya)\
**Post date:** [May 3, 2024, 11:00pm UTC](https://forum.camunda.io/t/spin-fails-to-deserialize-spin-objects/52203/3 "2024-05-03T23:00:04Z")

</div>

Hi @WilliamR.Alves ,

this answer does not really address my question. Of course, a class needs an empty constructor, a marked creator, custom serializer/deserializer or alike, but this class is contained within Camunda Spin itself, so it seems odd to me, that it is not deserialiable. I did not even choose to use this class, it is the one that Spin decides to use for the `S` and `JSON` functions.

So I rather expect either a problem inside Camunda Spin or a configuration / class path problem on my side.

Kind regards  
Alexander Skrock

---

<div class="post-metadata">

**Author:** ![WilliamR.Alves](https://forum.camunda.io/user_avatar/forum.camunda.io/williamr.alves/32/27412_2.png) [@WilliamR.Alves](https://forum.camunda.io/u/WilliamR.Alves)\
**Post date:** [May 6, 2024, 12:59pm UTC](https://forum.camunda.io/t/spin-fails-to-deserialize-spin-objects/52203/4 "2024-05-06T12:59:20Z")

</div>

I understood…

Really quite strange…

So… I can’t imagine anything other than something related to the version of the dependency… 🤔

---

<div class="post-metadata">

**Author:** ![system](https://forum.camunda.io/uploads/default/original/3X/5/8/58d50142eacca605d35cb1ef9e6b86ae85f49436.png) [@system](https://forum.camunda.io/u/system)\
**Post date:** [August 4, 2024, 1:00pm UTC](https://forum.camunda.io/t/spin-fails-to-deserialize-spin-objects/52203/5 "2024-08-04T13:00:12Z")

</div>

Closed on August 4, 2024, 1:00pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
