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 Artem Yankov, 1 year ago
org.bson.BasicBSONObject cannot be cast to com.mongodb.DBObject
via JIRA by Artem Yankov, 1 year ago
org.bson.BasicBSONObject cannot be cast to com.mongodb.DBObject
java.lang.ClassCastException: org.bson.BasicBSONObject cannot be cast to com.mongodb.DBObject	at com.mongodb.hadoop.input.MongoInputSplit.readFields(MongoInputSplit.java:122)	at org.apache.hadoop.io.serializer.WritableSerialization$WritableDeserializer.deserialize(WritableSerialization.java:67)	at org.apache.hadoop.io.serializer.WritableSerialization$WritableDeserializer.deserialize(WritableSerialization.java:40)	at org.apache.hadoop.mapred.MapTask.getSplitDetails(MapTask.java:395)	at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:727)	at org.apache.hadoop.mapred.MapTask.run(MapTask.java:369)	at org.apache.hadoop.mapred.Child$4.run(Child.java:259)	at java.security.AccessController.doPrivileged(Native Method)	at javax.security.auth.Subject.doAs(Subject.java:396)	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1059)	at org.apache.hadoop.mapred.Child.main(Child.java:253)