Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via JIRA by Yannick Marcon, 1 year ago
[B cannot be cast to org.bson.BSONObject
via JIRA by Yannick Marcon, 2 years ago
[B cannot be cast to org.bson.BSONObject
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)