org.bson.BsonSerializationException: Size 52320612 is larger than MaxDocumentSize 16793600.

GitHub | flyaruu | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Mongo Access Store has a problem with big navajo messages

    GitHub | 8 months ago | flyaruu
    org.bson.BsonSerializationException: Size 52320612 is larger than MaxDocumentSize 16793600.

    Root Cause Analysis

    1. org.bson.BsonSerializationException

      Size 52320612 is larger than MaxDocumentSize 16793600.

      at org.bson.BsonBinaryWriter.backpatchSize()
    2. MongoDB Java Driver
      AbstractBsonWriter.writeEndArray
      1. org.bson.BsonBinaryWriter.backpatchSize(BsonBinaryWriter.java:367)
      2. org.bson.BsonBinaryWriter.doWriteEndArray(BsonBinaryWriter.java:142)
      3. org.bson.AbstractBsonWriter.writeEndArray(AbstractBsonWriter.java:338)
      3 frames
    3. com.dexels.navajo
      MessageCodec.encode
      1. com.dexels.navajo.mongo.document.MessageCodec.encode(MessageCodec.java:78)
      2. com.dexels.navajo.mongo.document.MessageCodec.encode(MessageCodec.java:1)
      2 frames
    4. MongoDB Java Driver
      MongoCollectionImpl.insertMany
      1. org.bson.codecs.EncoderContext.encodeWithChildContext(EncoderContext.java:91)
      2. org.bson.codecs.DocumentCodec.writeValue(DocumentCodec.java:175)
      3. org.bson.codecs.DocumentCodec.writeMap(DocumentCodec.java:189)
      4. org.bson.codecs.DocumentCodec.writeValue(DocumentCodec.java:172)
      5. org.bson.codecs.DocumentCodec.writeMap(DocumentCodec.java:189)
      6. org.bson.codecs.DocumentCodec.encode(DocumentCodec.java:131)
      7. org.bson.codecs.DocumentCodec.encode(DocumentCodec.java:45)
      8. org.bson.codecs.BsonDocumentWrapperCodec.encode(BsonDocumentWrapperCodec.java:63)
      9. org.bson.codecs.BsonDocumentWrapperCodec.encode(BsonDocumentWrapperCodec.java:29)
      10. com.mongodb.connection.InsertCommandMessage.writeTheWrites(InsertCommandMessage.java:101)
      11. com.mongodb.connection.InsertCommandMessage.writeTheWrites(InsertCommandMessage.java:43)
      12. com.mongodb.connection.BaseWriteCommandMessage.encodeMessageBodyWithMetadata(BaseWriteCommandMessage.java:129)
      13. com.mongodb.connection.RequestMessage.encodeWithMetadata(RequestMessage.java:160)
      14. com.mongodb.connection.WriteCommandProtocol.sendMessage(WriteCommandProtocol.java:220)
      15. com.mongodb.connection.WriteCommandProtocol.execute(WriteCommandProtocol.java:101)
      16. com.mongodb.connection.InsertCommandProtocol.execute(InsertCommandProtocol.java:67)
      17. com.mongodb.connection.InsertCommandProtocol.execute(InsertCommandProtocol.java:37)
      18. com.mongodb.connection.DefaultServer$DefaultServerProtocolExecutor.execute(DefaultServer.java:168)
      19. com.mongodb.connection.DefaultServerConnection.executeProtocol(DefaultServerConnection.java:289)
      20. com.mongodb.connection.DefaultServerConnection.insertCommand(DefaultServerConnection.java:118)
      21. com.mongodb.operation.MixedBulkWriteOperation$Run$2.executeWriteCommandProtocol(MixedBulkWriteOperation.java:456)
      22. com.mongodb.operation.MixedBulkWriteOperation$Run$RunExecutor.execute(MixedBulkWriteOperation.java:647)
      23. com.mongodb.operation.MixedBulkWriteOperation$Run.execute(MixedBulkWriteOperation.java:402)
      24. com.mongodb.operation.MixedBulkWriteOperation$1.call(MixedBulkWriteOperation.java:180)
      25. com.mongodb.operation.MixedBulkWriteOperation$1.call(MixedBulkWriteOperation.java:169)
      26. com.mongodb.operation.OperationHelper.withConnectionSource(OperationHelper.java:232)
      27. com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:223)
      28. com.mongodb.operation.MixedBulkWriteOperation.execute(MixedBulkWriteOperation.java:169)
      29. com.mongodb.operation.MixedBulkWriteOperation.execute(MixedBulkWriteOperation.java:75)
      30. com.mongodb.Mongo.execute(Mongo.java:827)
      31. com.mongodb.Mongo$2.execute(Mongo.java:810)
      32. com.mongodb.MongoCollectionImpl.insertMany(MongoCollectionImpl.java:323)
      33. com.mongodb.MongoCollectionImpl.insertMany(MongoCollectionImpl.java:311)
      33 frames
    5. com.dexels.navajo
      GenericThread.run
      1. com.dexels.navajo.mongo.accessstore.MongoStore.storeAccess(MongoStore.java:308)
      2. com.dexels.navajo.server.statistics.StatisticsRunner.worker(StatisticsRunner.java:224)
      3. com.dexels.navajo.server.GenericThread.run(GenericThread.java:129)
      3 frames
    6. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame