Questions tagged [kryo]

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.

431 questions
0
votes
1 answer

Kryo on Android: Could not find class 'sun.nio.ch.DirectBuffer'

I use Kryonet on Android, and after start up, the VM crashes with this error: Could not find class 'sun.nio.ch.DirectBuffer', referenced from method com.esotericsoftware.kryo.util.UnsafeUtil.releaseBuffer. What is the problem?
Baros
  • 53
  • 5
0
votes
1 answer

Directory structure in Kryo or other Java serialization libraries

I am trying to find a way to serialize data with a directory structure in Java. The data I'd be saving are stock trading records, each of which consists of the stock name, price, time and volume. I know how to serialize such records (instances of…
tksmrch
  • 131
  • 1
  • 5
0
votes
1 answer

Strange error with changed class name in Java

I am using kryo lib to serialize objects. I get error: Unable to find class: java.util.ArrayLisoSerialization and teammates reproduce that error... It seems that java class name from Kryo was changed (ArrayListSerialization ->…
El Szarry
  • 13
  • 3
0
votes
1 answer

java serialization practice

I am reading across different methods/tools to serialize objects and I'm looking for an up-to-date suggestion for my application (as I can find a lot of similar question+answers from 2012, 2010, ...). I need to write some java objects to disk. I…
Antje Janosch
  • 1,154
  • 5
  • 19
  • 37
0
votes
0 answers

Netty codec for message with strings

I am suspecting bad codec for the slow performance of my Netty 4.0.19 client server app. The simple message object consists of an integer id and two strings with their accompanying lengths. I use CharsetDecoder in ReplayingDecoder to get string…
0
votes
2 answers

Serialize object with kryo in Titan Database

I would serialize an basic Object in Titan Database. But doesnt work. I want serialize my object for register it in my titan database. But i don't understand why there is this problem. i post my source code and if you have a documentation it is with…
AkrogAmes
  • 45
  • 9
0
votes
1 answer

How to implement multiple serializers using kryo in Hazelcast?

I have an existing domain model which I would like not to change to work with Hazelcast. For this, I want to use StreamSerializer interface and Kryo. I have taken a look at…
Wim Deblauwe
  • 25,113
  • 20
  • 133
  • 211
0
votes
0 answers

noClassDefFoundError in Android Project, but libraries added

I try to use Kryo within my android project. But I get a noClassDefFoundError Error during runtime. There is no syntaxerror highlithing during coding. The Error appears in the logcat at runtime. I have added the nessecary libraries to my Android…
mcfly soft
  • 11,289
  • 26
  • 98
  • 202
0
votes
1 answer

Hazelcast - KRYO serialization Integration Issue --> java.lang.LinkageError: attempted duplicate class definition for name:

I am trying to integrate KRYO Serialization with Hazelcast, but couldn't succeed due to below error. The error occurs, when the Map is getting initalized. Can someone please shed some light on this? Mar 16, 2014 3:00:39 PM…
0
votes
1 answer

KryoNet: Client disconnects immediately after connecting

This seems to be a popular problem, but I'm still having trouble finding a solution even after spending a lot of time troubleshooting. I'm hoping there's an updated solution. I'm setting up a simple Server and Client with the KryoNet Java…
user2066880
  • 4,825
  • 9
  • 38
  • 64
0
votes
1 answer

kryo cannot serialize org.jgrapht.graph.SimpleDirectedGraph

I get the following error when trying to serialize a SimpleDirectedGraph: com.esotericsoftware.kryo.KryoException: java.lang.IllegalArgumentException: Unable to create serializer "com.esotericsoftware.kryo.serializers.FieldSerializer" for class:…
melchoir55
  • 6,842
  • 7
  • 60
  • 106
0
votes
1 answer

Java process gets killed after depleting system memory. Why?

I'm running an Java app on Ubuntu 12.04.3 x64 VPS using Oracle Java. After few minutes the process gets killed by the OS: "killed" appears in the console. Before the crash, excessive memory usage can be seen using TOP (few gigabytes of virtual…
atok
  • 5,880
  • 3
  • 33
  • 62
0
votes
1 answer

Deserializing an array that contains some non-deserializable objects using Kryo (salvaging the deserializable parts)

Background I am attempting to write a Kryo deserialization in such a way that if an array of objects contains some objects that (due to code change) can't be deserialized then those references in the array will become null rather than throwing an…
Richard Tingle
  • 16,906
  • 5
  • 52
  • 77
0
votes
1 answer

Exception thrown when registering custom serializers in Storm's storm.yaml

I registered a custom serializer for a class in Storm's conf/storm.yaml in the following way: topology.kryo.register:       - custom.Car: custom.MyCarSerializer When I started storm by typing "bin/storm nimbus", exceptions are thrown: Exception in…
Tao Xiao
  • 259
  • 1
  • 4
  • 10
0
votes
0 answers

How to build akka-protostuff-serialization?

I'm using akka (akka-2.2.1) through java and I'm not familiar with scala or sbt. I need to change the serializer to one of the following. https://github.com/romix/akka-protostuff-serialization https://github.com/romix/akka-kryo-serialization How to…
RakeshPrasad
  • 103
  • 6
1 2 3
28
29