incubator-s4-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hyunju kim <hyunn...@gmail.com>
Subject help >> com.esotericsoftware.kryo.SerializationException
Date Tue, 05 Mar 2013 07:20:26 GMT
Hi~!

i try to change the sample app "twitter-adapter & twitter-counter" ,

this is "twitter-adapter" code

List<Info> info = new ArrayList<Info>();
Info fo = new Info("TwitterInputAdapter",startTime,currentTime);
info.add(fo);
inputEvent event = new InputEvent("statusText",str,index,info);
getRemoteStream().put(event);


Executing the code above generates the *following output*

Exception is >>

Exception in thread "RawStatus"
com.esotericsoftware.kryo.SerializationException: Unable to deserialize
object of type: org.apache.s4.example.twitter.InputEvent
at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:571)
at
com.esotericsoftware.kryo.ObjectBuffer.readClassAndObject(ObjectBuffer.java:206)
at
org.apache.s4.comm.serialize.KryoSerDeser.deserialize(KryoSerDeser.java:84)
at org.apache.s4.core.Stream.run(Stream.java:282)
at java.lang.Thread.run(Thread.java:662)
Caused by: com.esotericsoftware.kryo.SerializationException: Unable to
deserialize object of type: org.apache.s4.example.twitter.LatencyInfo
Serialization trace:
info (org.apache.s4.example.twitter.InputEvent)
at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:571)
at
com.esotericsoftware.kryo.serialize.CollectionSerializer.readObjectData(CollectionSerializer.java:113)
at
com.esotericsoftware.kryo.serialize.FieldSerializer.readObjectData(FieldSerializer.java:220)
at
com.esotericsoftware.kryo.serialize.FieldSerializer.readObjectData(FieldSerializer.java:200)
at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:566)
... 4 more
Caused by: com.esotericsoftware.kryo.SerializationException: Serialization
trace:
kryo (org.apache.s4.example.twitter.LatencyInfo)
at
com.esotericsoftware.kryo.serialize.FieldSerializer.readObjectData(FieldSerializer.java:238)
at
com.esotericsoftware.kryo.serialize.FieldSerializer.readObjectData(FieldSerializer.java:200)
at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:566)
... 8 more
Caused by: java.lang.IllegalArgumentException: Can not set
com.esotericsoftware.kryo.Kryo field
org.apache.s4.example.twitter.LatencyInfo.kryo to java.lang.Boolean
at
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:146)
at
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:150)
at
sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:63)
at java.lang.reflect.Field.set(Field.java:657)
at
com.esotericsoftware.kryo.serialize.FieldSerializer$CachedField.set(FieldSerializer.java:319)
at
com.esotericsoftware.kryo.serialize.FieldSerializer.readObjectData(FieldSerializer.java:231)
... 10 more

Mime
View raw message