{"action":"created","issue":{"url":"https://api.github.com/repos/EsotericSoftware/kryo/issues/390","repository_url":"https://api.github.com/repos/EsotericSoftware/kryo","labels_url":"https://api.github.com/repos/EsotericSoftware/kryo/issues/390/labels{/name}","comments_url":"https://api.github.com/repos/EsotericSoftware/kryo/issues/390/comments","events_url":"https://api.github.com/repos/EsotericSoftware/kryo/issues/390/events","html_url":"https://github.com/EsotericSoftware/kryo/issues/390","id":135491606,"number":390,"title":"kryo Encountered unregistered class ID, even though I've registered all classes","user":{"login":"mklosi","id":3664558,"avatar_url":"https://avatars.githubusercontent.com/u/3664558?v=3","gravatar_id":"","url":"https://api.github.com/users/mklosi","html_url":"https://github.com/mklosi","followers_url":"https://api.github.com/users/mklosi/followers","following_url":"https://api.github.com/users/mklosi/following{/other_user}","gists_url":"https://api.github.com/users/mklosi/gists{/gist_id}","starred_url":"https://api.github.com/users/mklosi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mklosi/subscriptions","organizations_url":"https://api.github.com/users/mklosi/orgs","repos_url":"https://api.github.com/users/mklosi/repos","events_url":"https://api.github.com/users/mklosi/events{/privacy}","received_events_url":"https://api.github.com/users/mklosi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":25,"created_at":"2016-02-22T17:52:22Z","updated_at":"2016-02-26T16:38:18Z","closed_at":null,"body":"I have a spark job that serializes an object with setRegistrationRequired(true).\r\nI have added registrations for all the classes.\r\nI have java code that deserializes the serialized object, also with setRegistrationRequired(true) and all appropriate registrations, making sure that the order of registrations is the same.\r\n\r\nWhile deserializing, I get com.esotericsoftware.kryo.KryoException: Encountered unregistered class ID: 113\r\n\r\nAt first, I thought I was missing some class, but then realized if that was the case, I wouldn't be able to serialize the object in the first place, since requiredRegistration is set to true.\r\n\r\nso I'm not sure what I'm doing wrong here."},"comment":{"url":"https://api.github.com/repos/EsotericSoftware/kryo/issues/comments/189362978","html_url":"https://github.com/EsotericSoftware/kryo/issues/390#issuecomment-189362978","issue_url":"https://api.github.com/repos/EsotericSoftware/kryo/issues/390","id":189362978,"user":{"login":"magro","id":64285,"avatar_url":"https://avatars.githubusercontent.com/u/64285?v=3","gravatar_id":"","url":"https://api.github.com/users/magro","html_url":"https://github.com/magro","followers_url":"https://api.github.com/users/magro/followers","following_url":"https://api.github.com/users/magro/following{/other_user}","gists_url":"https://api.github.com/users/magro/gists{/gist_id}","starred_url":"https://api.github.com/users/magro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magro/subscriptions","organizations_url":"https://api.github.com/users/magro/orgs","repos_url":"https://api.github.com/users/magro/repos","events_url":"https://api.github.com/users/magro/events{/privacy}","received_events_url":"https://api.github.com/users/magro/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T16:38:18Z","updated_at":"2016-02-26T16:38:18Z","body":"Yes, just seeing that `readResolve` invokes `calculateHashCode(keys)`... So a custom serializer for MultiKey (that serializes the keys and on read then uses the MultiKey constructor) might solve the issue ...?"}}