-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serializing custom class Object causes "ConfigObject is immutable, you can't call Map.put" error #265
Comments
Cross post: EsotericSoftware/kryo#472 ;-) |
did you try chill 0.8.1: https://github.com/twitter/chill/releases/tag/v0.8.1 it has support for immutable java maps. |
Chill 0.9.2 still doesn't seem to work. I still get the same error message. |
I guess the solution is to implement a serializer for Config and register that. |
Right, I'll give that a try thank you. |
Hi @ailesgrise and @johnynek
@ailesgrise, Have you implemented the Serializer? Doing it solved the problem? @johnynek Do you think to implement this serializer in the project by default? |
I would be happy to accept a PR but I don’t use Akka, nor does Twitter, so I don’t think any of the usual contributors will get to it soon. I would welcome a PR from you thought! :) |
Hi @johnynek I found the problem, we configure Akka cluster messages to be serialized by kryo but the correct config is to use the default Akka serialization for it. thanks |
I was using twitter chill to Serialize my custom class object and got the following error stack
My class object does take a typesafe ConfigObject as an input for construction and the configObject is immutable.
I have no problem writing the object but when I read it again, I get the aforementioned error.
I am using Scala 2.10.5 using com.twitter chill version 0.8.0.
The text was updated successfully, but these errors were encountered: