Kryo is a fast and efficient object graph serialization framework for Java. The goals of the project are speed, efficiency, and an easy to use API. The project is useful any time objects need to be persisted, whether to a file, database, or over the network.
Questions tagged [kryo]
431 questions
0
votes
1 answer
Saving a game state to a file
I'm now at a point where I need to save the current game state.
I'm using libGDX and did add the kryo lib to my project and did some testings.
Question:
Do I have to override the file every save or can I override only the bites that change from one…
user4959397
0
votes
1 answer
Spark in Kryo : "java.lang.StackOverflowErrorat com.esotericsoftware.kryo.util.IdentityObjectIntMap.put"
everyone. I met the bug shown below:
I noticed that it just refer a map method in scala, I wonder how to solve this problem. Thank you very much~

Can Chen
- 19
- 2
0
votes
1 answer
Kryo Serialization empty Deserialization
I refactor my code to work with kryo serialization.
Everything works fine except deserialize a property of geomtry from certain class.
No exception is thrown (I set "spark.kryo.registrationRequired" to true).
On debug I try to collect the data and I…

david lopez
- 405
- 2
- 5
- 16
0
votes
2 answers
Serializing quickfix.Message with Kryo
I'm trying to serialize a quickfix.Message instance using kryo serialization.
I'm using kryo version 3.0.3.
The code snippet is as follows:
Message fixMessage = getFixMessage();
Kryo kryo = new Kryo();
kryo.register(Message.class);
…

theDima
- 746
- 4
- 12
0
votes
1 answer
Sending object over Kryonet causes crash
I'm trying to send objects using Kryonet. For most objects it works fine, but for my own Vector implementation it crashes. The class is registered on both sides. It contains an empty constructor and all variables are decalred as public.
public…

Geosearchef
- 600
- 1
- 5
- 22
0
votes
1 answer
java kryo 3.0.3 low object's serialization speed
I'm trying to get better performance of object's serialization by usage of kryo library.
I have the next class
public class CustomClass {
private String name;
private int[] array;
public CustomClass(String name, int size){
this.name =…

Mike Herasimov
- 1,319
- 3
- 14
- 31
0
votes
1 answer
KryoNet - Sending packets to Android clients
I am developing an Android app which has to connect clients to my server for sending/receiving different sort of packets. To achieve that, I am using the KryoNet library. My clients connect themself to the server and send their own packets…

David B.
- 81
- 2
- 9
0
votes
1 answer
NullPointerException in storm when deserialize tuples
I've encountered the following NPE when storm tries to deserialize. I did not use OutputCollector concurrently in my code. The only object we are passing between bolts are a thrift object, and we have written a serializer for it. I've attached the…

Liu Renjie
- 220
- 2
- 11
0
votes
1 answer
ElasticSearch JarHell com.esotericsoftware.minlog.Log$Logger
I need to write an elastic-search bolt using node-client in Storm.
I do not want to use Transport-client because that is less efficient (involves one extra hop between nodes).
So I try to build my own ES bolt using the following code:
public void…

user2250246
- 3,807
- 5
- 43
- 71
0
votes
1 answer
Does serialization not always end in serializing primitive types?
I'm using Kryo for creating game-saves in code I'm working on.
Using the default serializer, FieldSerializer, I serialize one massive POJO.
It's a class that contains other classes I've created and primitive types.
The entire state of my game world…

crossingTime
- 3
- 3
0
votes
1 answer
Why use Kryo serialize framework into apache storm will over write data when blot get values
Maybe mostly develop were use AVRO as serialize framework in Kafka and Apache Storm scheme. But I need handle most complex data then I found the Kryo serialize framework also were successfully integrate it into our project which follow Kafka and…

elkan1788
- 97
- 1
- 2
- 11
0
votes
0 answers
Spark Kryo registration throws IllegalArgumentException
When I am running my program, Spark pops this error
java.lang.IllegalArgumentException: Class is not registered: com.domain.package.program.model.ParameterEvenementData[]
Note: To register this class use:…

Will
- 2,057
- 1
- 22
- 34
0
votes
0 answers
Check serialization method
I am running a program on Apache Flink. I got this error:
Caused by: java.io.IOException: Thread 'SortMerger Reading Thread' terminated due to an exception: Serializer consumed more bytes than the record had. This indicates broken serialization. If…

Aslan986
- 9,984
- 11
- 44
- 75
0
votes
0 answers
Serializing Map using Kryo Serialization in HazelCast
I am using Kryo Serialization for Hazelcast (3.5.4). Now I have the following object.
public class XData extends HashMap {...}
public class X
{ ..}
Now, the XData will contain key as Integer and value as X object. I tried to have a KryoSerializer…

Avik Dutta
- 143
- 12
0
votes
0 answers
Serialized class not found exception in Apache Storm
I have a storm application & a custom POJO (Alerts) class in it. I have added this class to storm configuration object. Alerts class is implementing java.io.Serailable interface & it also has…

Ajeesh
- 1,572
- 3
- 19
- 32