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
3 answers

Kryo - How to keep the server running and waiting for requests

I use Kryo-net for send and receive messages. On the server side I open new thread and sets the server, the problem is that the thread is ended at the end of the code so there isnt really listener for requests. import…
Nir
  • 2,497
  • 9
  • 42
  • 71
0
votes
1 answer

jboss memcacehd kryo flex

I have a jboss 5.1 AS in which i m trying to implement session replication with memcached and kryo serialization . Everything is working fine , but i have a page in my application which has to its left some flex features . When i click on this page…
0
votes
1 answer

How to use Kryo with RMI

I see a lot of questions about if Kryo can be used to replace default JVM serialization that RMI uses, but nothing in the way of how to actually set it up. I've heard that Kryo is a "drop-in" replacement for JVM serialization, and not sure if that…
user1768830
0
votes
2 answers

Kryo cannot serialize a java.sql.Timestamp?

Edit: Using Kryo 1.04 I'm right now serializing a User class that contains a java.sql.Timestamp field in Scala. For some reason, Kryo can't find a zero-arg constructor and throws an error: Caused by: com.esotericsoftware.kryo.SerializationException:…
crockpotveggies
  • 12,682
  • 12
  • 70
  • 140
0
votes
1 answer

Access a stand alone application from web application

This may be a stupid question. but i don't have any choice to clarifying it. I have a chat server running in a LAN environment system. And for testing purpose i have deployed my chat client applet into a tomcat server. How to access the server from…
mallikarjun
  • 1,862
  • 5
  • 23
  • 47
0
votes
1 answer

KryoNet - How do I start client with Boolean xx = new clientprocess(); to get a return value?

I'm creating a little JAVA multiplayer game using kryonet to manage the Server/Client part. I have a little question: in my server program, I start a client with a new called method, "on" a Boolean: Boolean xx = new clientprocess(); In my…
Mtx z
  • 9
  • 1
  • 2
-1
votes
1 answer

Registering KryoSerializer to Hazelcast

I created a serializer for a specific object using the com.esotericsoftware.kryo.Serializer (extending from it and passing my generic parameter). Now i want to put my object into a com.hazelcast.map.IMap by setting the value type to my custom…
-1
votes
1 answer

Deserializing LongMap in Kryo

I have a class with a field of scala.collection.mutable.LongMap type. After serializing it with Kryo I attempt to deserialize the object and get the following exception: com.esotericsoftware.kryo.KryoException: java.lang.IllegalArgumentException:…
lalaland
  • 54
  • 5
-1
votes
1 answer

How do I cleanly determine if a file is not of the type I want?

I am using Kryo to save binary files of user data. The user can open one of their files in my application. I'm not sure if I have a clean approach to detecting whether they tried to open a file of some other type. Right now, I'm writing a simple…
Tenfour04
  • 83,111
  • 11
  • 94
  • 154
-1
votes
1 answer

java kryonet - ChatMessage - Class is not registered

i just started to use kryonet. the chat example works fine when run from the examples folder. if i copy the chat client, server, and network files into another source folder in eclipse, i get IllegalArgumentException: Class is not registered:…
Ray Tayek
  • 9,841
  • 8
  • 50
  • 90
-2
votes
1 answer

Spark - Task not serializable: java.io.NotSerializableException: java.lang.reflect.Field

I was getting below error for one of my spark job - Task not serializable: java.io.NotSerializableException: java.lang.reflect.Field I realised that I had a class in one of the closures which was using keeping a java.lang.reflect.Field array in…
Krishna Kumar
  • 63
  • 1
  • 8
1 2 3
28
29