com.mongodb.MongoInternalException: DBObject of size 199421593 is over Max BSON size 16777216

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 Google Groups by chenshangan521, 2 years ago
DBObject of size 17997480 is over Max BSON size 16777216
via Google Groups by shangan chen, 2 years ago
DBObject of size 17997480 is over Max BSON size 16777216
com.mongodb.MongoInternalException: DBObject of size 199421593 is over Max BSON size 16777216
at com.mongodb.OutMessage.putObject(OutMessage.java:291)
at com.mongodb.DBApiLayer$MyCollection.insert(DBApiLayer.java:239)
at com.mongodb.DBApiLayer$MyCollection.insert(DBApiLayer.java:204)
at com.mongodb.DBCollection.insert(DBCollection.java:148)
at com.mongodb.DBCollection.insert(DBCollection.java:91)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.