Jackson serialization - unable to deserialize scala.util.Either from remote actor response #1387
Replies: 2 comments
-
You appear to be using Play. I would suggest that you read the Play docs relating to serialization. Play 3 does use Pekko under the hood but I am not clear from your description that you have provided whether you are using pekko-serialization-jackson directly or indirectly. pekko-serialization-jackson is documented here: |
Beta Was this translation helpful? Give feedback.
-
Yes I'm using Play 3 with the preconfigured serialization settings
If the response is a simple case class with primitives e.g. |
Beta Was this translation helpful? Give feedback.
-
Hi Folks,
For a response from a remote actor in the same cluster, the standard java serialization works fine for
Either
, whereas usingjackson
(CBOR or Json) converts the Either response to a HashMap and obviously does not deserialize. Wondering if someone has faced this and has a solution. Below is the exceptionBeta Was this translation helpful? Give feedback.
All reactions