user5069994
user5069994

Reputation: 33

KryoException: Unable to find class on Linux only

I get the next exception when de-serializing an object on linux server, while it works fine on my windows PC.

Exception in thread "main" com.esotericsoftware.kryo.KryoException: Unable to find class: CLASS_PATH

The object is serialized and de-serialized locally only (server or pc) I checked the path on the server and it is the same as CLASS_PATH, with the same upper/lower cases.

Upvotes: 1

Views: 2950

Answers (1)

user5069994
user5069994

Reputation: 33

I have classes with the same class names but in the different packages. Using kryo registration of these classes solves the issue.

kryo.register(SomeClass.class);

Upvotes: 2

Related Questions