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

JIRA | John Morales | 3 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. com.mongodb.MongoInternalException

      DBObject of size 16777340 is over Max BSON size 16777216

      at com.mongodb.OutMessage.putObject()
    2. MongoDB Java Driver
      DB.command
      1. com.mongodb.OutMessage.putObject(OutMessage.java:291)
      2. com.mongodb.OutMessage.writeQuery(OutMessage.java:211)
      3. com.mongodb.OutMessage.query(OutMessage.java:84)
      4. com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:285)
      5. com.mongodb.DB.command(DB.java:262)
      6. com.mongodb.DB.command(DB.java:229)
      7. com.mongodb.DB.command(DB.java:214)
      7 frames