-
Notifications
You must be signed in to change notification settings - Fork 832
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
Impossible to serialize nested generic class of the same type e.g. HashMap<Long, HashMap<Long, HashMap<Long, String>>> #207
Comments
Hi, this is most likely a problem with the way how Kryo handles very complex generic type declarations. There are some problems there. Could you provide a self-contained test-case for your problem? Then I could look into it. |
Sorry. It was not meant to be closed. I clicked the wrong button ;-) |
Here we go I use SBT to create IDEA configs so you can run "sbt gen-idea" locally so that IDEA configs reference dependencies correctly |
Thanks. I'll look into it |
OK. I could reproduce a problem. It seems like it occurs if classes are designed in such a way that the same class with generic parameters is used recursively in an object graph. In your case, it is I'll see now how this can be fixed. But it may turn out that it is actually pretty complex to fix properly. |
I see. What the chances you could fix it in foreseeable future? |
I'll give it a try this week. But if I don't manage to fix it quickly, I'll schedule it for a later, e.g. after next release time. |
Please use latest trunk (i.e. a snapshot build) and give it a try. Seems to work for me on your test-case. Close the issue, if everything is OK now. |
It works. Thanks a lot. |
romix, could you update SBT repo with new build ? |
The latest SNAPSHOT build (i.e. the latest trunk build) should be available from Sonatype (see GitHub homepage for more info). As for the release build, I cannot do it, because we haven't released the latest version yet. But we are planning to do it pretty soon. |
How can I understand and fix cause of "Parent scope can be set just once" exception?
I have following object that I'm trying to serialize
where
TTHashTable
isexception is thrown (according to debugger) when we're trying to pass first inner
Hashtable
intoFieldSerializer.write
.I'm using Kryo 2.23.
Thanks!
The text was updated successfully, but these errors were encountered: