android - Unable to start receiver com.parse.ParseBroadcastReceiver : ConcurrentModificationException -
i getting crash on samsung note 2 parse sdk version 1.5.1 , below application class code.
@override public void oncreate() { super.oncreate(); try { parse.enablelocaldatastore(this); // live acc parse.initialize(this, "xxxxxxxxxxxxxxxxxx", "xxxxxxxxxxxxxxxxxxxxxx"); //enable receive push pushservice.setdefaultpushcallback(this, respondtopushactivity.class); log.d("system out", "parse id----> "+parseinstallation.getcurrentinstallation().getstring("devicetoken")); constants.parseid = parseinstallation.getcurrentinstallation().getstring("devicetoken"); parseinstallation.getcurrentinstallation().saveinbackground(); } catch (exception e) { // todo auto-generated catch block e.printstacktrace(); } }
now got stacktrace below:
java.lang.runtimeexception: java.util.concurrentmodificationexception @ com.parse.pushrouter$8$1.run(pushrouter.java:235) @ android.os.handler.handlecallback(handler.java:730) @ android.os.handler.dispatchmessage(handler.java:92) @ android.os.looper.loop(looper.java:176) @ android.app.activitythread.main(activitythread.java:5419) @ java.lang.reflect.method.invokenative(native method) @ java.lang.reflect.method.invoke(method.java:525) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1046) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:862) @ dalvik.system.nativestart.main(native method) caused by: java.util.concurrentmodificationexception @ java.util.linkedlist$linkiterator.next(linkedlist.java:124) @ com.parse.parseobject.mergerest(parseobject.java:928) @ com.parse.offlinestore$13$2.then(offlinestore.java:765) @ com.parse.offlinestore$13$2.then(offlinestore.java:762) @ com.parse.task$10.run(task.java:448) @ com.parse.task$immediateexecutor.execute(task.java:673) @ com.parse.task.completeimmediately(task.java:444) @ com.parse.task.continuewith(task.java:318) @ com.parse.task.continuewith(task.java:329) @ com.parse.task$8.then(task.java:381) @ com.parse.task$8.then(task.java:373) @ com.parse.task$11.run(task.java:481) @ com.parse.task$immediateexecutor.execute(task.java:673) @ com.parse.task.completeaftertask(task.java:477) @ com.parse.task.continuewithtask(task.java:353) @ com.parse.task.onsuccess(task.java:373) @ com.parse.task.onsuccess(task.java:393) @ com.parse.offlinestore$13.then(offlinestore.java:762) @ com.parse.offlinestore$13.then(offlinestore.java:721) @ com.parse.task$11.run(task.java:481) @ com.parse.task$immediateexecutor.execute(task.java:673) @ com.parse.task.completeaftertask(task.java:477) @ com.parse.task.continuewithtask(task.java:353) @ com.parse.task.continuewithtask(task.java:364) @ com.parse.task$9.then(task.java:410) @ com.parse.task$9.then(task.java:402) @ com.parse.task$11.run(task.java:481) @ com.parse.task$immediateexecutor.execute(task.java:673) @ com.parse.task.completeaftertask(task.java:477) @ com.parse.task.access$400(task.java:22) @ com.parse.task$7.then(task.java:346) @ com.parse.task$7.then(task.java:343) @ com.parse.task.runcontinuations(task.java:510) @ com.parse.task.access$800(task.java:22) @ com.parse.task$taskcompletionsource.trysetresult(task.java:565) @ com.parse.task$taskcompletionsource.setresult(task.java:599) @ com.parse.task$11$1.then(task.java:493) @ com.parse.task$11$1.then(task.java:485) @ com.parse.task$10.run(task.java:448) @ com.parse.task$immediateexecutor.execute(task.java:673) @ com.parse.task.completeimmediately(task.java:444) @ com.parse.task.continuewith(task.java:318) @ com.parse.task.continuewith(task.java:329) @ com.parse.task$11.run(task.java:485) @ com.parse.task$immediateexecutor.execute(task.java:673) @ com.parse.task.completeaftertask(task.java:477) @ com.parse.task.access$400(task.java:22) @ com.parse.task$7.then(task.java:346) @ com.parse.task$7.then(task.java:343) @ com.parse.task.runcontinuations(task.java:510) @ com.parse.task.access$800(task.java:22) @ com.parse.task$taskcompletionsource.trysetresult(task.java:565) @ com.parse.task$taskcompletionsource.setresult(task.java:599) @ com.parse.task$11$1.then(task.java:493) @ com.parse.task$11$1.then(task.java:485) @ com.parse.task$10.run(task.java:448) @ com.parse.task$immediateexecutor.execute(task.java:673) @ com.parse.task.completeimmediately(task.java:444) @ com.parse.task.access$300(task.java:22) @ com.parse.task$6.then(task.java:311) @ com.parse.task$6.then(task.java:308) @ com.parse.task.runcontinuations(task.java:510) @ com.parse.task.access$800(task.java:22) @ com.parse.task$taskcompletionsource.trysetresult(task.java:565) @ com.parse.task$taskcompletionsource.setresult(task.java:599) @ com.parse.task$11$1.then(task.java:493) @ com.parse.task$11$1.then(task.java:485) @ com.parse.task$10.run(task.java:448) @ com.parse.task$immediateexecutor.execute(task.java:673) @ com.parse.task.completeimmediately(task.java:444) @ com.parse.task.access$300(task.java:22) @ com.parse.task$6.then(task.java:311) @ com.parse.task$6.then(task.java:308) @ com.parse.task.runcontinuations(task.java:510) @ com.parse.task.access$800(task.java:22) @ com.parse.task$taskcompletionsource.trysetresult(task.java:565) @ com.parse.task$taskcompletionsource.setresult(task.java:599) @ com.parse.task$11$1.then(task.java:493) @ com.parse.task$11$1.then(task.java:485) @ com.parse.task$10.run(task.java:448) @ com.parse.task$immediateexecutor.execute(task.java:673) @ com.parse.task.completeimmediately(task.java:444) @ com.parse.task.continuewith(task.java:318) @ com.parse.task.continuewith(task.java:329) @ com.parse.task$11.run(task.java:485) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1080) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:573) @ java.lang.thread.run(thread.java:841) [7:19:27 pm] hiren raval: 2nd once: [7:19:28 pm] hiren raval: java.lang.runtimeexception: unable start receiver com.parse.parsebroadcastreceiver: java.util.concurrentmodificationexception @ android.app.activitythread.handlereceiver(activitythread.java:2462) @ android.app.activitythread.access$1600(activitythread.java:157) @ android.app.activitythread$h.handlemessage(activitythread.java:1365) @ android.os.handler.dispatchmessage(handler.java:99) @ android.os.looper.loop(looper.java:176) @ android.app.activitythread.main(activitythread.java:5317) @ java.lang.reflect.method.invokenative(native method) @ java.lang.reflect.method.invoke(method.java:511) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1102) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:869) @ dalvik.system.nativestart.main(native method) caused by: java.util.concurrentmodificationexception @ java.util.linkedlist$linkiterator.next(linkedlist.java:124) @ com.parse.parseobject.mergerest(parseobject.java:928) @ com.parse.offlinestore$13$2.then(offlinestore.java:765) @ com.parse.offlinestore$13$2.then(offlinestore.java:762) @ com.parse.task$10.run(task.java:448) @ com.parse.task$immediateexecutor.execute(task.java:673) @ com.parse.task.completeimmediately(task.java:444) @ com.parse.task.continuewith(task.java:318) @ com.parse.task.continuewith(task.java:329) @ com.parse.task$8.then(task.java:381) @ com.parse.task$8.then(task.java:373) @ com.parse.task$11.run(task.java:481) @ com.parse.task$immediateexecutor.execute(task.java:673) @ com.parse.task.completeaftertask(task.java:477) @ com.parse.task.continuewithtask(task.java:353) @ com.parse.task.onsuccess(task.java:373) @ com.parse.task.onsuccess(task.java:393) @ com.parse.offlinestore$13.then(offlinestore.java:762) @ com.parse.offlinestore$13.then(offlinestore.java:721) @ com.parse.task$11.run(task.java:481) @ com.parse.task$immediateexecutor.execute(task.java:673) @ com.parse.task.completeaftertask(task.java:477) @ com.parse.task.continuewithtask(task.java:353) @ com.parse.task.continuewithtask(task.java:364) @ com.parse.task$9.then(task.java:410) @ com.parse.task$9.then(task.java:402) @ com.parse.task$11.run(task.java:481) @ com.parse.task$immediateexecutor.execute(task.java:673) @ com.parse.task.completeaftertask(task.java:477) @ com.parse.task.access$400(task.java:22) @ com.parse.task$7.then(task.java:346) @ com.parse.task$7.then(task.java:343) @ com.parse.task.runcontinuations(task.java:510) @ com.parse.task.access$800(task.java:22) @ com.parse.task$taskcompletionsource.trysetresult(task.java:565) @ com.parse.task$taskcompletionsource.setresult(task.java:599) @ com.parse.task$11$1.then(task.java:493) @ com.parse.task$11$1.then(task.java:485) @ com.parse.task$10.run(task.java:448) @ com.parse.task$immediateexecutor.execute(task.java:673) @ com.parse.task.completeimmediately(task.java:444) @ com.parse.task.continuewith(task.java:318) @ com.parse.task.continuewith(task.java:329) @ com.parse.task$11.run(task.java:485) @ com.parse.task$immediateexecutor.execute(task.java:673) @ com.parse.task.completeaftertask(task.java:477) @ com.parse.task.access$400(task.java:22) @ com.parse.task$7.then(task.java:346) @ com.parse.task$7.then(task.java:343) @ com.parse.task.runcontinuations(task.java:510) @ com.parse.task.access$800(task.java:22) @ com.parse.task$taskcompletionsource.trysetresult(task.java:565) @ com.parse.task$taskcompletionsource.setresult(task.java:599) @ com.parse.task$11$1.then(task.java:493) @ com.parse.task$11$1.then(task.java:485) @ com.parse.task$10.run(task.java:448) @ com.parse.task$immediateexecutor.execute(task.java:673) @ com.parse.task.completeimmediately(task.java:444) @ com.parse.task.continuewith(task.java:318) @ com.parse.task.continuewith(task.java:329) @ com.parse.task$11.run(task.java:485) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1080) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:573) @ java.lang.thread.run(thread.java:856)
let me know if has solution issue. have check no reply on there.
try uninstalling app phone , re-deploy it. had same issue , uninstalling (include deleting cache , configs!) fixed me.
Comments
Post a Comment