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 user1021712
, 1 year ago
java.lang.ClassCastException: [B cannot be cast to java.nio.ByteBuffer	at org.apache.avro.generic.GenericDatumWriter.writeBytes(GenericDatumWriter.java:260)	at org.apache.avro.generic.GenericDatumWriter.writeWithoutConversion(GenericDatumWriter.java:116)	at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:73)	at org.apache.avro.generic.GenericDatumWriter.writeField(GenericDatumWriter.java:153)	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)	at producers.AvroBinaryProducer.buildAvroData(AvroBinaryProducer.java:90)	at producers.AvroBinaryProducer.start(AvroBinaryProducer.java:120)	at producers.AvroBinaryProducer.main(AvroBinaryProducer.java:140)