Skip to content

Instantly share code, notes, and snippets.

View hideki's full-sized avatar

Hideki Itakura hideki

View GitHub Profile
package sample;
import com.couchbase.lite.*;
import com.couchbase.lite.replicator.Replication;
import com.couchbase.lite.util.Log;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXMLLoader;
--------- beginning of /dev/log/system
I/ActivityManager( 312): START {flg=0x10000000 cmp=com.couchbase.liteservandroid/.MainActivity (has extras) u=0} from pid 1664
I/ActivityManager( 312): Start proc com.couchbase.liteservandroid for activity com.couchbase.liteservandroid/.MainActivity: pid=1674 uid=10048 gids={3003, 1028}
--------- beginning of /dev/log/main
V/Batcher ( 1674): com.couchbase.lite.support.Batcher@53707ac4: queueObjects called with 1 objects (current inbox size = 7)
V/Batcher ( 1674): com.couchbase.lite.support.Batcher@53707ac4: scheduleWithDelay 250 ms, ignored
V/CBLite ( 1674): setPaused: false
D/ChangeTracker( 1674): ChangeTracker{http://192.168.33.11:4985/db, OneShot, @5371b078}: /changeTrackerReceivedChange: {seq=948, id=ls_db1_947, changes=[{rev=1-6d91cbf7aad9ec80293585a6f7e9adfe}]}
D/ChangeTracker( 1674): ChangeTracker{http://192.168.33.11:4985/db, OneShot, @5371b078}: changeTrackerReceivedChange: {seq=949, id=ls_db1_948, changes=[{rev=1-01e90b379665a5d9762bff1086c36c5d}]}
D/Sync
"CBLReplicationExecutor-http://10.0.2.2:4985/db-pull-a5f8b@5539" prio=5 tid=0x8d nid=NA waiting
java.lang.Thread.State: WAITING
blocks CBLReplicationExecutor-http://10.0.2.2:4985/db-pull-a5f8b@5539
at java.lang.Object.wait(Object.java:-1)
at java.lang.Thread.parkFor$(Thread.java:2127)
- locked <0x15ad> (a java.lang.Object)
at sun.misc.Unsafe.park(Unsafe.java:325)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:161)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2035)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1091)
"CBLReplicationExecutor-http://10.0.2.2:4985/db-pull-a5f8b@5539" prio=5 tid=0x8d nid=NA waiting
java.lang.Thread.State: WAITING
blocks CBLReplicationExecutor-http://10.0.2.2:4985/db-pull-a5f8b@5539
at java.lang.Object.wait(Object.java:-1)
at java.lang.Thread.parkFor$(Thread.java:2127)
- locked <0x15ad> (a java.lang.Object)
at sun.misc.Unsafe.park(Unsafe.java:325)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:161)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2035)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1091)
ok 24 update_seq:{"total_rows":10,"update_seq":11,"offset":0,"rows":[{"doc":null,"id":"cbl_views_0","key":"cbl_views_0","value":"bar"},{"doc":null,"id":"cbl_views_1","key":"cbl_views_1","value":"bar"},{"doc":null,"id":"cbl_views_2","key":"cbl_views_2","value":"bar"},{"doc":null,"id":"cbl_views_3","key":"cbl_views_3","value":"bar"},{"doc":null,"id":"cbl_views_4","key":"cbl_views_4","value":"bar"},{"doc":null,"id":"cbl_views_5","key":"cbl_views_5","value":"bar"},{"doc":null,"id":"cbl_views_6","key":"cbl_views_6","value":"bar"},{"doc":null,"id":"cbl_views_7","key":"cbl_views_7","value":"bar"},{"doc":null,"id":"cbl_views_8","key":"cbl_views_8","value":"bar"},{"doc":null,"id":"cbl_views_9","key":"cbl_views_9","value":"bar"}]}
ok 25 limit
ok 26 should be equal
ok 27 include_docs
# delete db docs
ok 28 all docs deleted
# create player docs
# update ddoc with player view
ok 29 can update design doc
# test array keys
02-16 17:11:01.583: D/AndroidRuntime(13622): >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
02-16 17:11:01.588: D/AndroidRuntime(13622): CheckJNI is OFF
02-16 17:11:01.630: D/ICU(13622): No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
02-16 17:11:01.679: I/Radio-JNI(13622): register_android_hardware_Radio DONE
02-16 17:11:01.701: D/AndroidRuntime(13622): Calling main entry com.android.commands.am.Am
02-16 17:11:01.704: I/ActivityManager(862): Force stopping com.couchbase.cbforest.test appid=10023 user=0: from pid 13622
02-16 17:11:01.705: D/AndroidRuntime(13622): Shutting down VM
02-16 17:11:02.550: D/AndroidRuntime(13636): >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
02-16 17:11:02.550: D/AndroidRuntime(13632): >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
02-16 17:11:02.555: D/AndroidRuntime(13636): CheckJNI is OFF
"Acme.Utils.ThreadPool(10)-PooledThread: Acme.Serve.Serve$ServeConnection@175d3145@24464" daemon prio=5 runnable
at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:149)
at com.couchbase.lite.router.Router.do_POST_Document_bulk_docs(Router.java:1162)
at com.couchbase.lite.listener.LiteServlet.service(LiteServlet.java:128)
"Acme.Utils.ThreadPool(0)-PooledThread: Acme.Serve.Serve$ServeConnection@1fb94dcc@24454" daemon prio=5 waiting
at com.couchbase.lite.router.BufferInputStream.read(BufferInputStream.java:48)
at com.couchbase.lite.listener.LiteServlet.service(LiteServlet.java:136)
"Acme.Utils.ThreadPool(1)-PooledThread: Acme.Serve.Serve$ServeConnection@380f309a@24455" daemon prio=5 waiting for monitor entry
02-10 17:28:01.766: W/Database(10585): Trying to put wrong _id to this: com.couchbase.lite.Document@c3591dd properties: {text=10, created_at=2016-02-10T17:28:01.765Z, check=false, _id=1455154081765-de397210-c396-41ef-8df6-771f13aa2497}
02-10 17:28:01.777: V/Query(10585): com.couchbase.lite.LiveQuery@61e02da: update() called.
02-10 17:28:01.777: D/Query(10585): com.couchbase.lite.LiveQuery@61e02da: update() created queryFuture: java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@32ea152
02-10 17:28:01.778: V/Sync(10585): com.couchbase.lite.replicator.PusherInternal@5631918: addToInbox() called, rev: {b7d12a05-f865-4784-89f1-74e9877469b4 #1-0c3fe8698697d848cecac7d0549bd56e}. Thread: Thread[main,5,main]
02-10 17:28:01.801: D/Query(10585): com.couchbase.lite.LiveQuery@61e02da: update() calling back observer with rows
02-10 17:28:02.278: V/Sync(10585): *** com.couchbase.lite.replicator.ReplicationInternal$2@a546aaf: BEGIN processInbox (1 sequences)
02-10 17:28:02.278: V/Sync(10585): com.couchbase
@hideki
hideki / gist:e6d62f0033c87d0e3b48
Created February 9, 2016 06:15
couchbase-lite-android/issues/782
02-08 15:52:05.299: I/ActivityManager(1300): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.biotronik.couchbaseproto/.MainActivity (has extras)} from uid 10014 on display 0
02-08 15:52:05.390: I/art(4984): Not late-enabling -Xcheck:jni (already on)
02-08 15:52:05.404: I/ActivityManager(1300): Start proc 4984:com.biotronik.couchbaseproto/u0a57 for activity com.biotronik.couchbaseproto/.MainActivity
02-08 15:52:05.468: D/couchbaseprofiling(4984): Begin Couchbase Events App
02-08 15:52:05.746: E/Surface(1647): getSlotFromBufferLocked: unknown buffer: 0xa0a28850
02-08 15:52:05.975: W/System.err(4984): java.lang.IllegalStateException: No valid leaving transitions are permitted from state 'INITIAL' for trigger 'STOP_GRACEFUL'. Consider ignoring the trigger.
02-08 15:52:05.975: W/System.err(4984): at com.github.oxo42.stateless4j.StateMachine$1.doIt(StateMachine.java:37)
02-08 15:52:05.975: W/System.err(4984): at com.github.oxo42.stateless4j.StateMachine.publi
02-04 14:53:22.096 30636-31135/com.couchbase.grocerysync D/Sync: changeTrackerCaughtUp
02-04 14:53:22.097 30636-31750/com.couchbase.grocerysync D/Sync: [PullerInternal.waitForPendingFutures()] STARTED - thread id: 787
02-04 14:53:22.591 30636-30666/com.couchbase.grocerysync V/Sync: *** com.couchbase.lite.replicator.ReplicationInternal$2@cf3a370: BEGIN processInbox (5 sequences)
02-04 14:53:22.593 30636-30666/com.couchbase.grocerysync D/Sync: processInbox called
02-04 14:53:22.594 30636-30666/com.couchbase.grocerysync E/Sync: ERROR: processInbox failed:
java.lang.NullPointerException: Attempt to invoke virtual method 'int com.couchbase.lite.Database.findMissingRevisions(com.couchbase.lite.RevisionList)' on a null object reference
at com.couchbase.lite.replicator.PullerInternal.processInbox(PullerInternal.java:178)