java.lang.ClassCastException: org.joda.time.DateTime cannot be cast to java.lang.Long

GitHub | mkhsueh | 3 months ago
  1. 0

    Cast error serializing Joda Datetime

    GitHub | 3 months ago | mkhsueh
    java.lang.ClassCastException: org.joda.time.DateTime cannot be cast to java.lang.Long
  2. 0

    Scalding Twitter Bijection Issue

    Google Groups | 2 years ago | Brian Arnold
    cascading.pipe.OperatorException: [_pipe_19*_pipe_20][mapTo() @ com.company.pipes.EncoderPipe.encodeBase64(EncoderPipe.scala:22)] operator Each failed executing operation
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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**
  6. 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

    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

      org.joda.time.DateTime cannot be cast to java.lang.Long

      at org.apache.avro.generic.GenericDatumWriter.write()
    2. Apache Avro
      GenericDatumWriter.write
      1. org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:79)
      2. org.apache.avro.generic.GenericDatumWriter.writeField(GenericDatumWriter.java:114)
      3. org.apache.avro.generic.GenericDatumWriter.writeRecord(GenericDatumWriter.java:104)
      4. org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:66)
      5. org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:58)
      5 frames
    3. com.twitter.bijection
      BinaryAvroCodec.apply
      1. com.twitter.bijection.avro.BinaryAvroCodec.apply(AvroCodecs.scala:273)
      2. com.twitter.bijection.avro.BinaryAvroCodec.apply(AvroCodecs.scala:269)
      2 frames
    4. chill-java
      InjectiveSerializer.write
      1. com.twitter.chill.InjectiveSerializer.write(InjectiveSerializer.scala:24)
      1 frame
    5. Kryo
      Kryo.writeClassAndObject
      1. com.esotericsoftware.kryo.Kryo.writeClassAndObject(Kryo.java:628)
      1 frame
    6. Spark
      KryoSerializationStream.writeObject
      1. org.apache.spark.serializer.KryoSerializationStream.writeObject(KryoSerializer.scala:195)
      1 frame