You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The stack-trace below is of the error that occurred when I updated the version of stitch-android-sdk from 4.1.0. to 4.2.1.
error happened during synchronization:
java.lang.IllegalStateException: state should be: open
at com.mongodb.assertions.Assertions.isTrue(Assertions.java:70)
at com.mongodb.embedded.client.EmbeddedCluster.selectServer(EmbeddedCluster.java:78)
at com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.(ClusterBinding.java:99)
at com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.(ClusterBinding.java:95)
at com.mongodb.binding.ClusterBinding.getReadConnectionSource(ClusterBinding.java:82)
at com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:395)
at com.mongodb.operation.CountOperation.execute(CountOperation.java:234)
at com.mongodb.operation.CountOperation.execute(CountOperation.java:66)
at com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor.execute(MongoClientDelegate.java:179)
at com.mongodb.client.internal.MongoCollectionImpl.executeCount(MongoCollectionImpl.java:248)
at com.mongodb.client.internal.MongoCollectionImpl.count(MongoCollectionImpl.java:183)
at com.mongodb.client.internal.MongoCollectionImpl.count(MongoCollectionImpl.java:177)
at com.mongodb.stitch.core.services.mongodb.remote.sync.internal.NamespaceSynchronizationConfig.getStaleDocumentIds(NamespaceSynchronizationConfig.java:199)
at com.mongodb.stitch.core.services.mongodb.remote.sync.internal.DataSynchronizer.syncRemoteToLocal(DataSynchronizer.java:559)
at com.mongodb.stitch.core.services.mongodb.remote.sync.internal.DataSynchronizer.doSyncPass(DataSynchronizer.java:513)
at com.mongodb.stitch.core.services.mongodb.remote.sync.internal.DataSynchronizerRunner.run(DataSynchronizerRunner.java:61)
at java.lang.Thread.run(Thread.java:764)
Background:
I had a fully functional code utilising stitch-android-sdk v4.1.0. In order to add completion listener to syncMany(), I updated it to v4.2.1. However, this error was reported due to which synchronization could not be done. Also, I tried updating to different versions (v4.3.0 and v4.4.1) just in case, but the same error persisted.
Information that may be relevant:(However, the same information was logged while using previous version that worked fine)
NETWORK [initandlisten] Sessions collection is not set up; waiting until next sessions refresh interval: The field 'expireAfterSeconds' is not valid for an index specification. Specification: { key: { lastUse: 1 }, name: "lsidTTLIndex", expireAfterSeconds: 1800 }
The stack-trace below is of the error that occurred when I updated the version of stitch-android-sdk from 4.1.0. to 4.2.1.
error happened during synchronization:
java.lang.IllegalStateException: state should be: open
at com.mongodb.assertions.Assertions.isTrue(Assertions.java:70)
at com.mongodb.embedded.client.EmbeddedCluster.selectServer(EmbeddedCluster.java:78)
at com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.(ClusterBinding.java:99)
at com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.(ClusterBinding.java:95)
at com.mongodb.binding.ClusterBinding.getReadConnectionSource(ClusterBinding.java:82)
at com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:395)
at com.mongodb.operation.CountOperation.execute(CountOperation.java:234)
at com.mongodb.operation.CountOperation.execute(CountOperation.java:66)
at com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor.execute(MongoClientDelegate.java:179)
at com.mongodb.client.internal.MongoCollectionImpl.executeCount(MongoCollectionImpl.java:248)
at com.mongodb.client.internal.MongoCollectionImpl.count(MongoCollectionImpl.java:183)
at com.mongodb.client.internal.MongoCollectionImpl.count(MongoCollectionImpl.java:177)
at com.mongodb.stitch.core.services.mongodb.remote.sync.internal.NamespaceSynchronizationConfig.getStaleDocumentIds(NamespaceSynchronizationConfig.java:199)
at com.mongodb.stitch.core.services.mongodb.remote.sync.internal.DataSynchronizer.syncRemoteToLocal(DataSynchronizer.java:559)
at com.mongodb.stitch.core.services.mongodb.remote.sync.internal.DataSynchronizer.doSyncPass(DataSynchronizer.java:513)
at com.mongodb.stitch.core.services.mongodb.remote.sync.internal.DataSynchronizerRunner.run(DataSynchronizerRunner.java:61)
at java.lang.Thread.run(Thread.java:764)
Background:
I had a fully functional code utilising stitch-android-sdk v4.1.0. In order to add completion listener to syncMany(), I updated it to v4.2.1. However, this error was reported due to which synchronization could not be done. Also, I tried updating to different versions (v4.3.0 and v4.4.1) just in case, but the same error persisted.
Information that may be relevant: (However, the same information was logged while using previous version that worked fine)
The text was updated successfully, but these errors were encountered: