java.lang.RuntimeException

Could not dispatch event: class org.eyeseetea.malariacare.database.iomodules.dhis.importer.SyncProgressStatus to handler [EventHandler public void org.eyeseetea.malariacare.ProgressActivity.onProgressChange(org.eyeseetea.malariacare.database.iomodules.dhis.importer.SyncProgressStatus)]: Unable to add window -- token android.os.BinderProxy@4274c618 is not valid; is your activity running?

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web49571

  • via GitHub by ifoche
    , 1 year ago
    Could not dispatch event: class org.eyeseetea.malariacare.database.iomodules.dhis.importer.SyncProgressStatus to handler [EventHandler public void org.eyeseetea.malariacare.ProgressActivity.onProgressChange(org.eyeseetea.malariacare.database.iomodules.dhis.importer.SyncProgressStatus)]: Unable to add window -- token android.os.BinderProxy@4274c618 is not valid; is your activity running?
  • Could not dispatch event: class org.eyeseetea.malariacare.database.iomodules.dhis.importer.SyncProgressStatus to handler [EventHandler public void org.eyeseetea.malariacare.ProgressActivity.onProgressChange(org.eyeseetea.malariacare.database.iomodules.dhis.importer.SyncProgressStatus)]: Unable to add window -- token android.os.BinderProxy@4274c618 is not valid; is your activity running?
  • android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@42134a48 is not valid; is your activity running?
  • Stack trace

    • java.lang.RuntimeException: Could not dispatch event: class org.eyeseetea.malariacare.database.iomodules.dhis.importer.SyncProgressStatus to handler [EventHandler public void org.eyeseetea.malariacare.ProgressActivity.onProgressChange(org.eyeseetea.malariacare.database.iomodules.dhis.importer.SyncProgressStatus)]: Unable to add window -- token android.os.BinderProxy@4274c618 is not valid; is your activity running? at com.squareup.otto.Bus.throwRuntimeException(Bus.java:458) at com.squareup.otto.Bus.dispatch(Bus.java:388) at com.squareup.otto.Bus.dispatchQueuedEvents(Bus.java:369) at com.squareup.otto.Bus.post(Bus.java:338) at org.hisp.dhis.android.sdk.utils.MainThreadBus.access$001(MainThreadBus.java:41) at org.hisp.dhis.android.sdk.utils.MainThreadBus$1.run(MainThreadBus.java:56) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:146) at android.app.ActivityThread.main(ActivityThread.java:5598) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099) at dalvik.system.NativeStart.main(Native Method) Caused by: android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@4274c618 is not valid; is your activity running? at android.view.ViewRootImpl.setView(ViewRootImpl.java:771) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:278) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69) at android.app.Dialog.show(Dialog.java:289) at org.eyeseetea.malariacare.ProgressActivity.showException(ProgressActivity.java:261) at org.eyeseetea.malariacare.ProgressActivity.access$100(ProgressActivity.java:54) at org.eyeseetea.malariacare.ProgressActivity$2.run(ProgressActivity.java:200) at android.app.Activity.runOnUiThread(Activity.java:4931) at org.eyeseetea.malariacare.ProgressActivity.onProgressChange(ProgressActivity.java:196) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.squareup.otto.EventHandler.handleEvent(EventHandler.java:89) at com.squareup.otto.Bus.dispatch(Bus.java:386)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    2 times, 4 months ago
    Unknown user
    Once, 7 months ago
    2 times, 8 months ago
    Unknown user
    Once, 9 months ago
    52 more bugmates