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
2 answers
How to serialize a field of a non-primitive type (your own class) in a Storm topology?
The following exception is thrown while I run my Storm project:
java.lang.RuntimeException: java.io.NotSerializableException: com.youtab.dataType.id.GUID
at…

Gal
- 11
- 2
0
votes
1 answer
Kryonet - double incoming packets
Okay. I am receiving packet once, but it's block is fired twice. For example:
I have a block like this:
if (object instanceof InitTheGame) {
System.out.println("STARTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT");
…
user5064340
0
votes
1 answer
org.springframework.batch.core.JobExecution cannot be created when tapping jobs
I am attempting to use aggregated events to allow successful completion of a job to kick off another. Problem is, is that I get a "Class cannot be created (missing no-arg constructor)" exception for JobExecution.
Here are the attempted taps:
stream…

Brandon McKenzie
- 1,655
- 11
- 26
0
votes
0 answers
Kryonet - connecting from the same IP address (different LAN addresses)
Let's say that I have my TCP server in Germany.
When I try to connect from two mobile phones from Poland in the same LAN network (they have different ip's here):
192.168.1.8 and 192.168.1.14
It disconnects previous device. They both have the same…
user5064340
0
votes
1 answer
Using Kryo to Serialize Classes with Non Serializable Attributes
I am using Kryo Serializer for Serializing my Java Object
My Java Object is like this
Class A {
private Class B;
private Class C;
private Class D;
int x ;
int y;
}
B, C and D are third party libraries and not serializable . Also I cant edit their…

Ankur Garg
- 2,553
- 8
- 30
- 41
0
votes
1 answer
Apache Drill query data serialized with Kryo
I am successfully saving a complex object (scala.Vector[(Int, Double)]) in an HBase table column by means of serializing it to a byte array (scala.Array[Byte]) with Kryo (com.twitter.chill.KryoInjection).
Now I would like to query this data with…

Reinis
- 65
- 9
0
votes
1 answer
Kryo setCopyTransient
I am trying to use the Kryo library to perform deep copying of objects, but I have a little problem. I'd like to deep-copy an object without transient variables. I know that I can use setCopyTransient(false) for FieldSerializer like…

Sabriael
- 332
- 1
- 6
- 14
0
votes
2 answers
HazelcastSerializationException with Kryo using Scala
I am using kryo for serialization with Scala 2.11.1 and Hzaelcast 3.5
i am trying to put my data in hazelcast map but i am getting KryoException
here is my model class
@SerialVersionUID(1)
case class User( id : Int ,name : String,…

M.Ahsen Taqi
- 965
- 11
- 35
0
votes
2 answers
changing immutable variable values while serialization in scala
I have a case class User. I have to serialize it using kryo. here is my class.
while implementing read() of Kryo I'm having issue. my variables has val type. as we know we can't change value of val's.
case class User(name : String, age : int)…

M.Ahsen Taqi
- 965
- 11
- 35
0
votes
1 answer
Spark Java: java.util.ConcurrentModificationException while broadcasting object of type GenericObjectPool
I am working on a spark-streaming project in java. I am trying to send some messages from spark to apache kafka using kafka-producer java api. Since creating instance of KafkaProducer for each element would be very expensive, I am trying to use a…

mrnakumar
- 625
- 6
- 13
0
votes
1 answer
Using newString(bytes[]) to store as cache key in hazelcast cache
I have a cache which accepts only string as keys. This cache is a part of a legacy system and I cannot modify them. To use this cache I need to convert my cache keys into string.
To make my cache keys to string am serializing it using KRYO.…

Sam
- 295
- 2
- 9
- 24
0
votes
1 answer
How does binary encoding in HBase work?
I'm saving breeze SparseVectors to HBase using com.twitter.chill.KryoInjection for serialization to byte array which seemed to work fine. But then I recognized that after reading the vectors back out of HBase some values are different/missing.
Now…
0
votes
1 answer
Spark broadcast serialization of custom BiMap class
Trying to make a Spark broadcast BiMap that is composed of two Maps. Since the mappings are unique from either direction all that should be serialized is a single Map, actually only the a Seq[(K, V)] needs to be serialized. So the underlying forward…

pferrel
- 5,673
- 5
- 30
- 41
0
votes
1 answer
Apache storm 0.93, Titan 0.5.4, Kryo 2.21 vs 2.22
I'm using storm 0.93 with titan 0.5.4. Titan is running in the same VM as my application and communicates with cassandra database running externally.
When I deploy my topology to storm, one of the bolts uses titan's API to do some query. I get the…

user3261334
- 139
- 4
- 13
0
votes
1 answer
Kryo 3 Instances
By using Kryo 3 one create a Kryo 3 instance every time one serializes / deserializes the root object (a stream).
I wonder what reuse concept I can use.
From the source it looks like a Kryo instance might be only used in a single thread fashion and…

Martin Kersten
- 5,127
- 8
- 46
- 77