java.lang.ClassCastException: [B cannot be cast to java.nio.ByteBuffer

Stack Overflow | user1021712 | 3 months ago
  1. 0

    B cannot be cast to java.nio.ByteBufferwhen trying to serialize avro record

    Stack Overflow | 3 months ago | user1021712
    java.lang.ClassCastException: [B cannot be cast to java.nio.ByteBuffer
  2. 0

    org.apache.avro.ipc.generic.GenericRequestor cannot be cast to org.apache.avro.generic.IndexedRecord

    Stack Overflow | 3 years ago | x80rock
    java.lang.ClassCastException: org.apache.avro.ipc.generic.GenericRequestor cannot be cast to org.apache.avro.generic.IndexedRecord
  3. 0

    got "java.lang.String cannot be cast to java.lang.Integer" when running hadoop avro example

    Stack Overflow | 2 years ago | odhran
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer**
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Transform protobuf to avro

    Stack Overflow | 3 years ago | user882447
    java.lang.ClassCastException: example.avro.ProtoTest$Msg cannot be cast to org.apache.avro.generic.IndexedRecord
  6. 0

    ClassCastException while using Avro and MRUnit mapDriver

    Stack Overflow | 4 years ago | user1893455
    java.lang.ClassCastException: amazon.fclm.labormetrics.mapreduce.sample.AvroWordCount$Count cannot be cast to org.apache.avro.generic.IndexedRecord

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      [B cannot be cast to java.nio.ByteBuffer

      at org.apache.avro.generic.GenericDatumWriter.writeBytes()
    2. Apache Avro
      GenericDatumWriter.write
      1. org.apache.avro.generic.GenericDatumWriter.writeBytes(GenericDatumWriter.java:260)
      2. org.apache.avro.generic.GenericDatumWriter.writeWithoutConversion(GenericDatumWriter.java:116)
      3. org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:73)
      4. org.apache.avro.generic.GenericDatumWriter.writeField(GenericDatumWriter.java:153)
      5. org.apache.avro.generic.GenericDatumWriter.writeRecord(GenericDatumWriter.java:143)
      6. org.apache.avro.generic.GenericDatumWriter.writeWithoutConversion(GenericDatumWriter.java:105)
      7. org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:73)
      8. org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:60)
      8 frames
    3. producers
      AvroBinaryProducer.main
      1. producers.AvroBinaryProducer.buildAvroData(AvroBinaryProducer.java:90)
      2. producers.AvroBinaryProducer.start(AvroBinaryProducer.java:120)
      3. producers.AvroBinaryProducer.main(AvroBinaryProducer.java:140)
      3 frames