com.mongodb.MongoInternalException: DBObject of size 16777340 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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

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 16777340 is over Max BSON size 16777216
at com.mongodb.OutMessage.putObject(OutMessage.java:291)
at com.mongodb.OutMessage.writeQuery(OutMessage.java:211)
at com.mongodb.OutMessage.query(OutMessage.java:84)
at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:285)
at com.mongodb.DB.command(DB.java:262)
at com.mongodb.DB.command(DB.java:229)
at com.mongodb.DB.command(DB.java:214)

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.

Write tip

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