java.lang.ClassCastException

[B cannot be cast to org.bson.BSONObject

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web19048

  • [B cannot be cast to org.bson.BSONObject
  • [B cannot be cast to org.bson.BSONObject
  • via Google Groups by 李铖, 1 year ago
    org.apache.hadoop.io.Text cannot be cast to org.bson.BSONObject
  • Stack trace

    • java.lang.ClassCastException: [B cannot be cast to org.bson.BSONObject at org.obiba.magma.datasource.mongodb.MongoDBValueSet.getBinaryValue(MongoDBValueSet.java:78) at org.obiba.magma.datasource.mongodb.MongoDBValueSet.getValue(MongoDBValueSet.java:69) at org.obiba.magma.datasource.mongodb.MongoDBVariableValueSource.getValue(MongoDBVariableValueSource.java:79) at org.obiba.opal.web.magma.ValueSetResource$1.apply(ValueSetResource.java:146) at org.obiba.opal.web.magma.ValueSetResource$1.apply(ValueSetResource.java:141) at com.google.common.collect.Iterators$8.transform(Iterators.java:794) at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48) at org.obiba.opal.web.magma.ValueSetResource.getValueSetDto(ValueSetResource.java:151) at org.obiba.opal.web.magma.ValueSetResource.getValueSet(ValueSetResource.java:82)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.