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

JIRA | Yannick Marcon | 4 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

    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