Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

AEM 6.3 upgrade BsonSerializationException issue

Avatar

Level 2

When we upgrading AEM 6.1 with SP2 instance to AEM 6.3 the below exception occurring only on recent backup. The different backup is working which is took earlier.

22.12.2017 11:14:44.695 *ERROR* [Apache Sling Repository Startup Thread] com.adobe.granite.repository.impl.SlingRepositoryManager start: Uncaught Throwable trying to access Repository, calling stopRepository()

java.lang.RuntimeException: org.apache.jackrabbit.oak.api.CommitFailedException: OakOak0001: Failed to merge changes to the underlying store

    at org.apache.jackrabbit.oak.spi.lifecycle.OakInitializer.initialize(OakInitializer.java:54)

    at org.apache.jackrabbit.oak.Oak.createNewContentRepository(Oak.java:636)

    at org.apache.jackrabbit.oak.Oak.createContentRepository(Oak.java:624)

    at org.apache.jackrabbit.oak.jcr.Jcr.createContentRepository(Jcr.java:386)

    at com.adobe.granite.repository.impl.SlingRepositoryManager.createRepository(SlingRepositoryManager.java:408)

    at com.adobe.granite.repository.impl.SlingRepositoryManager.acquireRepository(SlingRepositoryManager.java:262)

    at org.apache.sling.jcr.base.AbstractSlingRepositoryManager.initializeAndRegisterRepositoryService(AbstractSlingRepositoryManager.java:471)

    at org.apache.sling.jcr.base.AbstractSlingRepositoryManager.access$300(AbstractSlingRepositoryManager.java:85)

    at org.apache.sling.jcr.base.AbstractSlingRepositoryManager$4.run(AbstractSlingRepositoryManager.java:455)

Caused by: org.apache.jackrabbit.oak.api.CommitFailedException: OakOak0001: Failed to merge changes to the underlying store

    at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch$InMemory.merge(DocumentNodeStoreBranch.java:522)

    at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.merge0(DocumentNodeStoreBranch.java:185)

    at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.merge(DocumentNodeStoreBranch.java:119)

    at org.apache.jackrabbit.oak.plugins.document.DocumentRootBuilder.merge(DocumentRootBuilder.java:167)

    at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.merge(DocumentNodeStore.java:1694)

    at org.apache.jackrabbit.oak.spi.lifecycle.OakInitializer.initialize(OakInitializer.java:52)

    ... 8 common frames omitted

Caused by: org.bson.BsonSerializationException: Document size of 29343266 is larger than maximum of 16777216.

    at org.bson.BsonBinaryWriter.backpatchSize(BsonBinaryWriter.java:376)

    at org.bson.BsonBinaryWriter.doWriteEndDocument(BsonBinaryWriter.java:123)

    at org.bson.AbstractBsonWriter.writeEndDocument(AbstractBsonWriter.java:302)

    at com.mongodb.DBObjectCodec.encode(DBObjectCodec.java:132)

    at com.mongodb.DBObjectCodec.encode(DBObjectCodec.java:61)

    at com.mongodb.CompoundDBObjectCodec.encode(CompoundDBObjectCodec.java:48)

    at com.mongodb.CompoundDBObjectCodec.encode(CompoundDBObjectCodec.java:27)

    at org.bson.codecs.BsonDocumentWrapperCodec.encode(BsonDocumentWrapperCodec.java:63)

    at org.bson.codecs.BsonDocumentWrapperCodec.encode(BsonDocumentWrapperCodec.java:29)

    at com.mongodb.connection.InsertCommandMessage.writeTheWrites(InsertCommandMessage.java:101)

    at com.mongodb.connection.InsertCommandMessage.writeTheWrites(InsertCommandMessage.java:43)

    at com.mongodb.connection.BaseWriteCommandMessage.encodeMessageBodyWithMetadata(BaseWriteCommandMessage.java:129)

    at com.mongodb.connection.RequestMessage.encodeWithMetadata(RequestMessage.java:160)

    at com.mongodb.connection.WriteCommandProtocol.sendMessage(WriteCommandProtocol.java:220)

    at com.mongodb.connection.WriteCommandProtocol.execute(WriteCommandProtocol.java:101)

    at com.mongodb.connection.InsertCommandProtocol.execute(InsertCommandProtocol.java:67)

    at com.mongodb.connection.InsertCommandProtocol.execute(InsertCommandProtocol.java:37)

    at com.mongodb.connection.DefaultServer$DefaultServerProtocolExecutor.execute(DefaultServer.java:168)

    at com.mongodb.connection.DefaultServerConnection.executeProtocol(DefaultServerConnection.java:289)

    at com.mongodb.connection.DefaultServerConnection.insertCommand(DefaultServerConnection.java:118)

    at com.mongodb.operation.InsertOperation.executeCommandProtocol(InsertOperation.java:76)

    at com.mongodb.operation.BaseWriteOperation$1.call(BaseWriteOperation.java:139)

    at com.mongodb.operation.BaseWriteOperation$1.call(BaseWriteOperation.java:133)

    at com.mongodb.operation.OperationHelper.withConnectionSource(OperationHelper.java:422)

    at com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:413)

    at com.mongodb.operation.BaseWriteOperation.execute(BaseWriteOperation.java:133)

    at com.mongodb.operation.BaseWriteOperation.execute(BaseWriteOperation.java:60)

    at com.mongodb.Mongo.execute(Mongo.java:845)

    at com.mongodb.Mongo$2.execute(Mongo.java:828)

    at com.mongodb.DBCollection.executeWriteOperation(DBCollection.java:342)

    at com.mongodb.DBCollection.insert(DBCollection.java:337)

    at com.mongodb.DBCollection.insert(DBCollection.java:328)

    at com.mongodb.DBCollection.insert(DBCollection.java:298)

    at com.mongodb.DBCollection.insert(DBCollection.java:264)

    at com.mongodb.DBCollection.insert(DBCollection.java:201)

    at org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore.create(MongoDocumentStore.java:1166)

    at org.apache.jackrabbit.oak.plugins.document.util.LeaseCheckDocumentStoreWrapper.create(LeaseCheckDocumentStoreWrapper.java:123)

    at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.pushJournalEntry(DocumentNodeStore.java:2207)

    at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore$4.headOfQueue(DocumentNodeStore.java:833)

    at org.apache.jackrabbit.oak.plugins.document.CommitQueue.waitUntilHeadOfQueue(CommitQueue.java:237)

    at org.apache.jackrabbit.oak.plugins.document.CommitQueue.done(CommitQueue.java:92)

    at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.done(DocumentNodeStore.java:816)

    at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.persist(DocumentNodeStoreBranch.java:299)

    at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.persist(DocumentNodeStoreBranch.java:268)

    at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.access$300(DocumentNodeStoreBranch.java:58)

    at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch$InMemory.merge(DocumentNodeStoreBranch.java:513)

    ... 13 common frames omitted

22.12.2017 11:14:45.519 *WARN* [DocumentNodeStore background update thread (9)] org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore Background operation failed: org.bson.BsonSerializationException: Document size of 29343266 is larger than maximum of 16777216.

org.bson.BsonSerializationException: Document size of 29343266 is larger than maximum of 16777216.

    at org.bson.BsonBinaryWriter.backpatchSize(BsonBinaryWriter.java:376)

0 Replies