You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.NullPointerException
at com.esotericsoftware.kryo.util.DefaultClassResolver.writeClass(DefaultClassResolver.java:80)
at com.esotericsoftware.kryo.Kryo.writeClass(Kryo.java:488)
at com.esotericsoftware.kryo.Kryo.writeClassAndObject(Kryo.java:593)
Perhaps it's because the lambda expression is not serializable. But the strange thing is that when I removed the registration of PriorityQueueSerializer from kryo's registrations, the serialization works.
Is this expected?
The text was updated successfully, but these errors were encountered:
@johnynek Hi, I've created a PR to reproduce the problem (not a NPE but the same strange phenomenon). Could you take a look ?
By the way I notice that this project is still using java 1.6, does it mean that the project doesn't support java 1.8 and also dosen't take the java 1.8 lambda expression into consideration?
When I'm using
PriorityQueueSerializer
from chill-java package, I got NPE when serializingPriorityQueue
instance like this:Perhaps it's because the lambda expression is not serializable. But the strange thing is that when I removed the registration of
PriorityQueueSerializer
from kryo's registrations, the serialization works.Is this expected?
The text was updated successfully, but these errors were encountered: