{"action":"created","issue":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/452","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/452/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/452/comments","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/452/events","html_url":"https://github.com/couchbase/couchbase-lite-java-core/issues/452","id":58320118,"number":452,"title":"Error after close DB client ","user":{"login":"hideki","id":15889,"avatar_url":"https://avatars.githubusercontent.com/u/15889?v=3","gravatar_id":"","url":"https://api.github.com/users/hideki","html_url":"https://github.com/hideki","followers_url":"https://api.github.com/users/hideki/followers","following_url":"https://api.github.com/users/hideki/following{/other_user}","gists_url":"https://api.github.com/users/hideki/gists{/gist_id}","starred_url":"https://api.github.com/users/hideki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hideki/subscriptions","organizations_url":"https://api.github.com/users/hideki/orgs","repos_url":"https://api.github.com/users/hideki/repos","events_url":"https://api.github.com/users/hideki/events{/privacy}","received_events_url":"https://api.github.com/users/hideki/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/labels/P2:%20medium","name":"P2: medium","color":"eb6420"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/labels/S4:%20minor","name":"S4: minor","color":"c7def8"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/labels/size-large","name":"size-large","color":"f7c6c7"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/labels/testneeded","name":"testneeded","color":"5319e7"}],"state":"closed","locked":false,"assignee":{"login":"hideki","id":15889,"avatar_url":"https://avatars.githubusercontent.com/u/15889?v=3","gravatar_id":"","url":"https://api.github.com/users/hideki","html_url":"https://github.com/hideki","followers_url":"https://api.github.com/users/hideki/followers","following_url":"https://api.github.com/users/hideki/following{/other_user}","gists_url":"https://api.github.com/users/hideki/gists{/gist_id}","starred_url":"https://api.github.com/users/hideki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hideki/subscriptions","organizations_url":"https://api.github.com/users/hideki/orgs","repos_url":"https://api.github.com/users/hideki/repos","events_url":"https://api.github.com/users/hideki/events{/privacy}","received_events_url":"https://api.github.com/users/hideki/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/milestones/7","html_url":"https://github.com/couchbase/couchbase-lite-java-core/milestones/1.1.0","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/milestones/7/labels","id":807163,"number":7,"title":"1.1.0","description":"","creator":{"login":"jessliu","id":4998909,"avatar_url":"https://avatars.githubusercontent.com/u/4998909?v=3","gravatar_id":"","url":"https://api.github.com/users/jessliu","html_url":"https://github.com/jessliu","followers_url":"https://api.github.com/users/jessliu/followers","following_url":"https://api.github.com/users/jessliu/following{/other_user}","gists_url":"https://api.github.com/users/jessliu/gists{/gist_id}","starred_url":"https://api.github.com/users/jessliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessliu/subscriptions","organizations_url":"https://api.github.com/users/jessliu/orgs","repos_url":"https://api.github.com/users/jessliu/repos","events_url":"https://api.github.com/users/jessliu/events{/privacy}","received_events_url":"https://api.github.com/users/jessliu/received_events","type":"User","site_admin":false},"open_issues":30,"closed_issues":17,"state":"open","created_at":"2014-09-29T18:07:31Z","updated_at":"2015-03-11T21:10:09Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-02-20T07:52:47Z","updated_at":"2015-03-12T06:05:12Z","closed_at":"2015-03-11T21:10:09Z","body":"https://github.com/couchbase/couchbase-lite-java/issues/52\r\n\r\n```java\r\nprivate void shutdownDatabase() {\r\n        push.goOffline();\r\n        pull.goOffline();\r\n        pull.stop();\r\n        push.stop();\r\n        database.close();\r\n        manager.close();\r\n    }\r\n````\r\nin log:\r\n```\r\njava.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@32f4b68 rejected from java.util.concurrent.ScheduledThreadPoolExecutor@5263919f[Shutting down, pool size = 1, active threads = 1, queued tasks = 6, completed tasks = 15]\r\n\tat java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2047)\r\n\tat java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:823)\r\n\tat java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:326)\r\n\tat java.util.concurrent.ScheduledThreadPoolExecutor.schedule(ScheduledThreadPoolExecutor.java:533)\r\n\tat java.util.concurrent.ScheduledThreadPoolExecutor.submit(ScheduledThreadPoolExecutor.java:632)\r\n\tat java.util.concurrent.Executors$DelegatedExecutorService.submit(Executors.java:678)\r\n\tat com.couchbase.lite.replicator.PullerInternal.changeTrackerStopped(PullerInternal.java:766)\r\n\tat com.couchbase.lite.replicator.ChangeTracker.stopped(ChangeTracker.java:512)\r\n\tat com.couchbase.lite.replicator.ChangeTracker.stop(ChangeTracker.java:498)\r\n\tat com.couchbase.lite.replicator.PullerInternal.goOffline(PullerInternal.java:994)\r\n\tat com.couchbase.lite.replicator.ReplicationInternal$15.doIt(ReplicationInternal.java:1101)\r\n\tat com.couchbase.lite.replicator.ReplicationInternal$15.doIt(ReplicationInternal.java:1098)\r\n\tat com.github.oxo42.stateless4j.StateConfiguration$3.doIt(StateConfiguration.java:130)\r\n\tat com.github.oxo42.stateless4j.StateConfiguration$3.doIt(StateConfiguration.java:127)\r\n\tat com.github.oxo42.stateless4j.StateRepresentation.executeEntryActions(StateRepresentation.java:123)\r\n\tat com.github.oxo42.stateless4j.StateRepresentation.enter(StateRepresentation.java:102)\r\n\tat com.github.oxo42.stateless4j.StateMachine.publicFire(StateMachine.java:199)\r\n\tat com.github.oxo42.stateless4j.StateMachine.fire(StateMachine.java:125)\r\n\tat com.couchbase.lite.replicator.ReplicationInternal$1.run(ReplicationInternal.java:191)\r\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)\r\n\tat java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\njava.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@4579bbfb rejected from java.util.concurrent.ScheduledThreadPoolExecutor@5263919f[Shutting down, pool size = 1, active threads = 1, queued tasks = 3, completed tasks = 18]\r\n\tat java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2047)\r\n\tat java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:823)\r\n\tat java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:326)\r\n\tat java.util.concurrent.ScheduledThreadPoolExecutor.schedule(ScheduledThreadPoolExecutor.java:533)\r\n\tat java.util.concurrent.ScheduledThreadPoolExecutor.submit(ScheduledThreadPoolExecutor.java:632)\r\n\tat java.util.concurrent.Executors$DelegatedExecutorService.submit(Executors.java:678)\r\n\tat com.couchbase.lite.replicator.ReplicationInternal.notifyChangeListeners(ReplicationInternal.java:983)\r\n\tat com.couchbase.lite.replicator.ReplicationInternal.notifyChangeListenersStateTransition(ReplicationInternal.java:1138)\r\n\tat com.couchbase.lite.replicator.ReplicationInternal.access$400(ReplicationInternal.java:61)\r\n\tat com.couchbase.lite.replicator.ReplicationInternal$16.doIt(ReplicationInternal.java:1109)\r\n\tat com.couchbase.lite.replicator.ReplicationInternal$16.doIt(ReplicationInternal.java:1105)\r\n\tat com.github.oxo42.stateless4j.StateRepresentation.executeExitActions(StateRepresentation.java:130)\r\n\tat com.github.oxo42.stateless4j.StateRepresentation.exit(StateRepresentation.java:112)\r\n\tat com.github.oxo42.stateless4j.StateMachine.publicFire(StateMachine.java:197)\r\n\tat com.github.oxo42.stateless4j.StateMachine.fire(StateMachine.java:125)\r\n\tat com.couchbase.lite.replicator.ReplicationInternal$1.run(ReplicationInternal.java:191)\r\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)\r\n\tat java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/comments/78428635","html_url":"https://github.com/couchbase/couchbase-lite-java-core/issues/452#issuecomment-78428635","issue_url":"https://api.github.com/repos/couchbase/couchbase-lite-java-core/issues/452","id":78428635,"user":{"login":"Lupen2002","id":3455182,"avatar_url":"https://avatars.githubusercontent.com/u/3455182?v=3","gravatar_id":"","url":"https://api.github.com/users/Lupen2002","html_url":"https://github.com/Lupen2002","followers_url":"https://api.github.com/users/Lupen2002/followers","following_url":"https://api.github.com/users/Lupen2002/following{/other_user}","gists_url":"https://api.github.com/users/Lupen2002/gists{/gist_id}","starred_url":"https://api.github.com/users/Lupen2002/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lupen2002/subscriptions","organizations_url":"https://api.github.com/users/Lupen2002/orgs","repos_url":"https://api.github.com/users/Lupen2002/repos","events_url":"https://api.github.com/users/Lupen2002/events{/privacy}","received_events_url":"https://api.github.com/users/Lupen2002/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T06:05:12Z","updated_at":"2015-03-12T06:05:12Z","body":"Thank you. This is work!"}}