java.lang.ClassCastException: [B cannot be cast to org.bson.BSONObject

JIRA | Yannick Marcon | 3 years ago
  1. 0

    Mongo-hadoop fails read mongo BSON file

    Google Groups | 3 years ago | 李铖
    java.lang.ClassCastException: org.apache.hadoop.io.Text cannot be cast to org.bson.BSONObject
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Error while importing data from MongoDb to Hdfs

    Stack Overflow | 1 year ago | MChirukuri
    java.lang.Exception: java.lang.ClassCastException: com.mongodb.hadoop.io.BSONWritable cannot be cast to org.bson.BSONObject
  4. 0

    about exception :java.lang.ClassCastException: org.apache.hadoop.io.Text cannot be cast to org.bson.BSONObject

    Google Groups | 3 years ago | 李铖
    java.lang.ClassCastException: org.apache.hadoop.io.Text cannot be cast to org.bson.BSONObject

    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 org.bson.BSONObject

      at org.obiba.magma.datasource.mongodb.MongoDBValueSet.getBinaryValue()
    2. org.obiba.magma
      MongoDBVariableValueSource.getValue
      1. org.obiba.magma.datasource.mongodb.MongoDBValueSet.getBinaryValue(MongoDBValueSet.java:78)
      2. org.obiba.magma.datasource.mongodb.MongoDBValueSet.getValue(MongoDBValueSet.java:69)
      3. org.obiba.magma.datasource.mongodb.MongoDBVariableValueSource.getValue(MongoDBVariableValueSource.java:79)
      3 frames
    3. org.obiba.opal
      ValueSetResource$1.apply
      1. org.obiba.opal.web.magma.ValueSetResource$1.apply(ValueSetResource.java:146)
      2. org.obiba.opal.web.magma.ValueSetResource$1.apply(ValueSetResource.java:141)
      2 frames
    4. Guava
      TransformedIterator.next
      1. com.google.common.collect.Iterators$8.transform(Iterators.java:794)
      2. com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
      2 frames
    5. org.obiba.opal
      ValueSetResource.getValueSet
      1. org.obiba.opal.web.magma.ValueSetResource.getValueSetDto(ValueSetResource.java:151)
      2. org.obiba.opal.web.magma.ValueSetResource.getValueSet(ValueSetResource.java:82)
      2 frames