[jira] [Comment Edited] (CB-7968) ConcurrentModificationException in postMessage
[ https://issues.apache.org/jira/browse/CB-7968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14242765#comment-14242765 ] Lyubomir Gospodinov edited comment on CB-7968 at 12/11/14 4:44 PM: --- In my case, this happens when I call appView.loadUrl from inside a plugin's initialize method. Workaround is calling loadUrlIntoView(url, false) in order NOT to recreate plugins. was (Author: lubogospod): In my case, this happens when I call appView.loadUrl from inside a plugin. Workaround is calling loadUrlIntoView(url, false) in order NOT to recreate plugins. > ConcurrentModificationException in postMessage > -- > > Key: CB-7968 > URL: https://issues.apache.org/jira/browse/CB-7968 > Project: Apache Cordova > Issue Type: Bug > Components: Android >Affects Versions: 3.5.0 > Environment: Nexus 7 (2G) razorg >Reporter: Clayton Grassick > > Crash observed in Cordova messaging code: > java.util.ConcurrentModificationException > at java.util.HashMap$HashIterator.nextEntry(HashMap.java:806) > at java.util.HashMap$ValueIterator.next(HashMap.java:838) > at org.apache.cordova.PluginManager.postMessage(PluginManager.java:271) > at org.apache.cordova.CordovaWebView.postMessage(CordovaWebView.java:528) > at org.apache.cordova.App$1.run(App.java:78) > at android.os.Handler.handleCallback(Handler.java:733) > at android.os.Handler.dispatchMessage(Handler.java:95) > at android.os.Looper.loop(Looper.java:136) > at android.app.ActivityThread.main(ActivityThread.java:5017) > 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:779) > at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) > at dalvik.system.NativeStart.main(Native Method) -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-7968) ConcurrentModificationException in postMessage
[ https://issues.apache.org/jira/browse/CB-7968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14242765#comment-14242765 ] Lyubomir Gospodinov commented on CB-7968: - In my case, this happens when I call appView.loadUrl from inside a plugin. Workaround is calling loadUrlIntoView(url, false) in order NOT to recreate plugins. > ConcurrentModificationException in postMessage > -- > > Key: CB-7968 > URL: https://issues.apache.org/jira/browse/CB-7968 > Project: Apache Cordova > Issue Type: Bug > Components: Android >Affects Versions: 3.5.0 > Environment: Nexus 7 (2G) razorg >Reporter: Clayton Grassick > > Crash observed in Cordova messaging code: > java.util.ConcurrentModificationException > at java.util.HashMap$HashIterator.nextEntry(HashMap.java:806) > at java.util.HashMap$ValueIterator.next(HashMap.java:838) > at org.apache.cordova.PluginManager.postMessage(PluginManager.java:271) > at org.apache.cordova.CordovaWebView.postMessage(CordovaWebView.java:528) > at org.apache.cordova.App$1.run(App.java:78) > at android.os.Handler.handleCallback(Handler.java:733) > at android.os.Handler.dispatchMessage(Handler.java:95) > at android.os.Looper.loop(Looper.java:136) > at android.app.ActivityThread.main(ActivityThread.java:5017) > 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:779) > at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) > at dalvik.system.NativeStart.main(Native Method) -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-7968) ConcurrentModificationException in postMessage
[ https://issues.apache.org/jira/browse/CB-7968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14242582#comment-14242582 ] Lyubomir Gospodinov commented on CB-7968: - Hi, I am seeing this error with Cordova 3.6.4 for Android. Any ideas what is causing this? > ConcurrentModificationException in postMessage > -- > > Key: CB-7968 > URL: https://issues.apache.org/jira/browse/CB-7968 > Project: Apache Cordova > Issue Type: Bug > Components: Android >Affects Versions: 3.5.0 > Environment: Nexus 7 (2G) razorg >Reporter: Clayton Grassick > > Crash observed in Cordova messaging code: > java.util.ConcurrentModificationException > at java.util.HashMap$HashIterator.nextEntry(HashMap.java:806) > at java.util.HashMap$ValueIterator.next(HashMap.java:838) > at org.apache.cordova.PluginManager.postMessage(PluginManager.java:271) > at org.apache.cordova.CordovaWebView.postMessage(CordovaWebView.java:528) > at org.apache.cordova.App$1.run(App.java:78) > at android.os.Handler.handleCallback(Handler.java:733) > at android.os.Handler.dispatchMessage(Handler.java:95) > at android.os.Looper.loop(Looper.java:136) > at android.app.ActivityThread.main(ActivityThread.java:5017) > 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:779) > at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) > at dalvik.system.NativeStart.main(Native Method) -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org