java.lang.ClassCastException: Submap cannot be cast to org.apache.avro.generic.IndexedRecord

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Cedric H.
, 1 year ago
Submap cannot be cast to org.apache.avro.generic.IndexedRecord
via Stack Overflow by kaniska Mandal
, 1 year ago
java.lang.String cannot be cast to org.apache.avro.generic.IndexedRecord
via Stack Overflow by user882447
, 2 years ago
example.avro.ProtoTest$Msg cannot be cast to org.apache.avro.generic.IndexedRecord
via Stack Overflow by x80rock
, 2 years ago
org.apache.avro.ipc.generic.GenericRequestor cannot be cast to org.apache.avro.generic.IndexedRecord
via nabble.com by Unknown author, 2 years ago
via gmane.org by Unknown author, 1 year ago
java.util.ArrayList$Itr cannot be cast to org.apache.avro.generic.IndexedRecord
java.lang.ClassCastException: Submap cannot be cast to org.apache.avro.generic.IndexedRecord
at org.apache.avro.generic.GenericData.getField(GenericData.java:666)
at org.apache.avro.generic.GenericData.getField(GenericData.java:681)
at org.apache.avro.generic.GenericDatumWriter.writeField(GenericDatumWriter.java:151)
at org.apache.avro.generic.GenericDatumWriter.writeRecord(GenericDatumWriter.java:143)
at org.apache.avro.generic.GenericDatumWriter.writeWithoutConversion(GenericDatumWriter.java:105)
at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:73)
at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:60)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.