java.lang.ClassCastException: java.lang.Integer cannot be cast to org.apache.avro.generic.GenericRecord

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by jozi-k
, 1 year ago
java.lang.Integer cannot be cast to org.apache.avro.generic.GenericRecord
via GitHub by miguno
, 1 year ago
java.lang.Integer cannot be cast to org.apache.avro.generic.GenericRecord
via GitHub by jozi-k
, 1 year ago
java.lang.Integer cannot be cast to org.apache.avro.generic.GenericRecord
java.lang.ClassCastException: java.lang.Integer cannot be cast to org.apache.avro.generic.GenericRecord
at serde.GenericAvroSerializer.serialize(GenericAvroSerializer.java:10)
at org.apache.kafka.streams.state.StateSerdes.rawValue(StateSerdes.java:176)
at org.apache.kafka.streams.state.internals.RocksDBStore.flushCache(RocksDBStore.java:381)
at org.apache.kafka.streams.state.internals.RocksDBStore.flush(RocksDBStore.java:424)
at org.apache.kafka.streams.state.internals.MeteredKeyValueStore.flush(MeteredKeyValueStore.java:165)
at org.apache.kafka.streams.processor.internals.ProcessorStateManager.flush(ProcessorStateManager.java:332)
at org.apache.kafka.streams.processor.internals.StreamTask.commit(StreamTask.java:252)
at org.apache.kafka.streams.processor.internals.StreamThread.commitOne(StreamThread.java:446)
at org.apache.kafka.streams.processor.internals.StreamThread.commitAll(StreamThread.java:434)
at org.apache.kafka.streams.processor.internals.StreamThread.maybeCommit(StreamThread.java:422)
at org.apache.kafka.streams.processor.internals.StreamThread.runLoop(StreamThread.java:340)
at org.apache.kafka.streams.processor.internals.StreamThread.run(StreamThread.java:218)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

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