i am working in pure java and using sync gateway to pull and push data to server.
using this code to perform this :
URL url = new URL(“http://127.0.0.1:4984/omnibazaar”);
// URL url = new URL(“http://110.93.219.89:8091/omnibazaar”);
Replication push = db.createPushReplication(url);
Replication pull = db.createPullReplication(url);
pull.setContinuous(true);
push.setContinuous(true);
com.couchbase.lite.auth.Authenticator auth = AuthenticatorFactory.createBasicAuthenticator(“OB”, “test”);
push.setAuthenticator(auth);
pull.setAuthenticator(auth);
push.start();
pull.start();
my java code shows the following output:
Sep 08, 2015 8:19:12 PM com.couchbase.lite.util.SystemLogger e
SEVERE:
Sync: com.couchbase.lite.replicator.ReplicationInternal$4@4d506e73
checkSessionAtPath() response: {authentication_handlers=[default,
cookie], ok=true, userCtx={channels={!=1, *=1}, name=OB}}
Sep 08, 2015 8:19:12 PM com.couchbase.lite.util.SystemLogger e
SEVERE:
Sync: com.couchbase.lite.replicator.ReplicationInternal$4@4ee15284
checkSessionAtPath() response: {authentication_handlers=[default,
cookie], ok=true, userCtx={channels={!=1, *=1}, name=OB}}
Sep 08, 2015 8:19:12 PM com.couchbase.lite.util.SystemLogger w
WARNING: Sync: com.couchbase.lite.replicator.PullerInternal@22bb1eab: starting ChangeTracker with since=8 mode=OneShot
Sep 08, 2015 8:19:12 PM com.couchbase.lite.util.SystemLogger w
WARNING:
Sync: com.couchbase.lite.replicator.PullerInternal@22bb1eab: started
ChangeTracker com.couchbase.lite.replicator.ChangeTracker@2b891cf8
Sep 08, 2015 8:19:12 PM com.couchbase.lite.util.SystemLogger e
SEVERE: Sync: PullerInternal stopGraceful.run() finished
but pulling is not working.
kindly help