java.lang.ArrayStoreException

350 views
Skip to first unread message

Reynold Xin

unread,
May 11, 2013, 2:41:27 AM5/11/13
to kryo-...@googlegroups.com

Hi,

I saw this today trying to serialize a data structure:

spark.SparkException: Job failed: ResultTask(0, 0) failed: ExceptionFailure(com.esotericsoftware.kryo.KryoException: java.lang.RuntimeException: java.lang.ArrayStoreException: org.apache.hadoop.hive.serde2.objectinspector.primitive.PrimitiveObjectInspectorUtils$PrimitiveTypeEntry
Serialization trace:
ois (org.apache.hadoop.hive.serde2.objectinspector.StandardUnionObjectInspector)
fieldObjectInspector (org.apache.hadoop.hive.serde2.objectinspector.StandardStructObjectInspector$MyField)
fields (org.apache.hadoop.hive.serde2.objectinspector.StandardStructObjectInspector)
array (scala.collection.mutable.ArrayBuffer))


You can find the code for PrimitiveTypeEntry here (You can find all the other relevant classes in the same github repo too):



Any idea what's going on?

Nate

unread,
May 11, 2013, 6:33:45 AM5/11/13
to kryo-...@googlegroups.com
Hi,

Seems the wrong type of object is being stuffed into an array. No idea why though. :(

-Nate


--
You received this message because you are subscribed to the "kryo-users" group.
http://groups.google.com/group/kryo-users
---
You received this message because you are subscribed to the Google Groups "kryo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kryo-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reynold Xin

unread,
May 11, 2013, 3:36:55 PM5/11/13
to kryo-...@googlegroups.com
Hmmm, any tips on debugging this?

You received this message because you are subscribed to a topic in the Google Groups "kryo-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kryo-users/tpKcEhXc9QI/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to kryo-users+...@googlegroups.com.

Nate

unread,
May 15, 2013, 11:13:30 AM5/15/13
to kryo-...@googlegroups.com
Just the usual, make the smallest reproducible test case possible, set your debugger to break on ArrayStoreException, etc.

-Nate
Reply all
Reply to author
Forward
0 new messages