Akka - StackOverflowError during object serialization

后端 未结 2 919
无人共我
无人共我 2021-01-16 04:12

I\'m with a problem that extends for more than 2 days. When I\'m exchanging messages between actors, is accusing the JVM stack overflow.

My message is an object with

2条回答
  •  执笔经年
    2021-01-16 04:46

    Are you using java.util.LinkedList, or a custom linked list of your own? If the latter, you need to write a custom writeObject() method for it that avoids the recursion that would happen if you didn't have one.

提交回复
热议问题