Thank you for your reply :) Fails as it sometimes crashes.. It might have something to do with the issues with the lifecycle you have referred. It's perfectly fine for me to instantiate it every time so if that is the safer way I'll do it that way, it is what I am already doing anyway.
As for the authentication I am doing exactly as it is shown in the unit testing except I am doing: Authenticator auth = BasicAuthenticator(username, password); I don't think that might be the problem. I am using Android Studio with gradle build. Sexta-feira, 13 de Junho de 2014 19:34:55 UTC+1, Traun Leyden escreveu: > > > > On Fri, Jun 13, 2014 at 3:42 AM, Joao Ferreira <joao.m.pin...@gmail.com > <javascript:>> wrote: > > >> The first time the replicator is called everything goes smoothly and >> everything gets properly synced. The problem happens when I call the >> replicator once again as the replicator fails to do the replication. >> > > When you say fails, can you be more specific? Also are you sure there is > any changes on the remote CouchDB that need to be sync'd? If not, then the > replication might not have anything to do. > > > >> So should I instantiate the repicator everytime I call it or is it >> acceptable to create an instance and then calling start and stop on demand? >> >> > There are some known issues with the replicator lifecycle that are still > being investigated. See > https://github.com/couchbase/couchbase-lite-java-core/issues/224#issuecomment-45616469 > > So it might be safer to instantiate the replicator every time. > > > >> Other problem is in setting the authenticator for the replicator. If I >> set the syncURL as http://user:pass@example:5984/dbname everything works >> fine, but trying to use the BasicAuthenticor I get an Object not found >> exception, and I can't make sense of this exception. >> > > That sounds to me like some sort of packaging problem or maybe a typo in > your code. > > There's a unit test > <https://github.com/couchbase/couchbase-lite-android/blob/master/src/androidTest/java/com/couchbase/lite/AuthTest.java#L78-L86> > that > uses the BasicAuthenticator. > > How are you building -- Android Studio / Eclipse / gradle ? > > > >> >> Any thoughts are greatly appreciated >> >> -- >> 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 <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/mobile-couchbase/02b27c12-9301-4354-bd5f-a92756f9795f%40googlegroups.com >> >> <https://groups.google.com/d/msgid/mobile-couchbase/02b27c12-9301-4354-bd5f-a92756f9795f%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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-couchbase+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/5cbc8cc0-5572-4b45-99b9-c744e4371143%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.