Jackson - ClassCastException ArrayNode to ArrayNode

In this case, there are two versions of the Jackson classes in the game. Your application depends on a different Jackson module than the Spin module, so the instances of Jackson classes returned by Spin are not compatible with the classes your application loads. Your application needs to depend on the same Jackson module that Spin does. See for Camunda JSON marshalling and @JsonIgnore for a similar discussion and solutions.