Exception while updating a Document - CBLite Android

140 views
Skip to first unread message

Pankaj Jakhar

unread,
Feb 11, 2014, 5:53:03 AM2/11/14
to mobile-c...@googlegroups.com
While updating a document on local device I am getting this exception.

I reproduce it with these steps:

1. First time when I run the application I can perform all the createItem and updateExisting item operations.
2. When I close the application and make changes for the second time then this Exception is thrown.

What might be the exact cause of it?


02-11 16:17:32.091: V/Database(24993): com.couchbase.lite.replicator.Replication$6@4260b018: Unable to save remote checkpoint
02-11 16:17:32.091: V/Database(24993): org.apache.http.client.HttpResponseException: Conflict
02-11 16:17:32.091: V/Database(24993): at com.couchbase.lite.support.RemoteRequest.executeRequest(RemoteRequest.java:145)
02-11 16:17:32.091: V/Database(24993): at com.couchbase.lite.support.RemoteRequest.run(RemoteRequest.java:83)
02-11 16:17:32.091: V/Database(24993): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
02-11 16:17:32.091: V/Database(24993): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
02-11 16:17:32.091: V/Database(24993): at java.lang.Thread.run(Thread.java:856)
02-11 16:17:32.531: V/Database(24993): Puller[http://192.168.1.4:5984/sync_gateway] checkpointing sequence=7
02-11 16:17:32.546: V/Database(24993): Puller[http://192.168.1.4:5984/sync_gateway] checkpointing sequence=7
02-11 16:17:32.576: E/Database(24993): Got error 409
02-11 16:17:32.576: E/Database(24993): Request was for: org.apache.http.client.methods.HttpPut@426c11a8
02-11 16:17:32.576: E/Database(24993): Status reason: Conflict
02-11 16:17:32.576: V/Database(24993): com.couchbase.lite.replicator.Replication$6@426bf5b8: Unable to save remote checkpoint
02-11 16:17:32.576: V/Database(24993): org.apache.http.client.HttpResponseException: Conflict
02-11 16:17:32.576: V/Database(24993): at com.couchbase.lite.support.RemoteRequest.executeRequest(RemoteRequest.java:145)
02-11 16:17:32.576: V/Database(24993): at com.couchbase.lite.support.RemoteRequest.run(RemoteRequest.java:83)
02-11 16:17:32.576: V/Database(24993): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
02-11 16:17:32.576: V/Database(24993): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
02-11 16:17:32.576: V/Database(24993): at java.lang.Thread.run(Thread.java:856)




Traun Leyden

unread,
Feb 17, 2014, 6:17:53 PM2/17/14
to mobile-c...@googlegroups.com

There are known issues with replication checkpoints:


Although I'm not sure if you are running into either of those issues or something different altogether.

* Are you able to reproduce this every time, or is it sporadic?
* Can you reproduce this with the Grocery Sync demo code?
* Can you reproduce this again and post the full logs to Friendpaste.com and send links to the logs?




--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/77a6ce80-bb75-4c19-aef2-94a8b2c35dbd%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages