-
20 Sep 2010 11:31 AM #1
[FNR] ToggleButton causes a ConcurrentModification Exception
[FNR] ToggleButton causes a ConcurrentModification Exception
We recently upgraded to GXT 2.2.0. We now have a case where when we run our app in hosted mode and click a ToggleButton, we get the following exception:
I took a look at the source code, and it seems that the code changed from iterating over all ToggleButtons to iterating over all Components to determine if a button in the group was already toggled.Code:java.util.ConcurrentModificationException: null at java.util.HashMap$Haerator.nextEntry(HashMap.java:793) at java.util.HashMap$ValueIterator.next(HashMap.java:822) at com.extjs.gxt.ui.client.widget.button.ToggleButton.toggle(ToggleButton.java:204) at com.extjs.gxt.ui.client.widget.button.ToggleButton.toggle(ToggleButton.java:105) at com.extjs.gxt.ui.client.widget.button.ToggleButton.onClick(ToggleButton.java:142) at com.extjs.gxt.ui.client.widget.button.Button.onComponentEvent(Button.java:285) at com.extjs.gxt.ui.client.widget.Component.onBrowserEvent(Component.java:864) at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1307) at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1263) at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1714) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188) at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:1669) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:401) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222) at java.lang.Thread.run(Thread.java:637)
-
20 Sep 2010 11:43 AM #2
Yes as it can also handle subclass with this.
Your toggle action probably changes a component (attaches or detaches one). I will achange the code to make a copy of that list.
-
20 Sep 2010 1:18 PM #3
Thanks sven.
I was able to change some listeners that were in my code to fix the issue for me. I just thought you'd like to know about the exception as well.
-
20 Sep 2010 3:11 PM #4
Fixed in SVN as of revision 2238.
You found a bug! We've classified it as
a bug in our system.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
Similar Threads
-
[FNR] GridView refreshRow javascript exception w/ grouping grid
By jonjanisch in forum Ext GWT: Bugs (2.x)Replies: 3Last Post: 2 Feb 2011, 10:53 AM -
[FNR] Calling getRotation() on a chart's axis can throw an unrecoverable exception
By crehbein in forum Ext GWT: Bugs (2.x)Replies: 8Last Post: 17 Aug 2010, 9:20 AM -
[FNR] Exception on tracking hierarchy.
By nika.setar in forum Ext GWT: Bugs (2.x)Replies: 1Last Post: 29 Mar 2010, 8:50 AM -
[OPEN] [FNR] Null Pointer Exception from QuickTips
By C. Cox in forum Ext GWT: Bugs (2.x)Replies: 1Last Post: 16 Sep 2009, 1:38 PM -
[FNR] [1.2.4] Listview unhandled exception when mouseout
By srichardson in forum Ext GWT: Bugs (1.x)Replies: 1Last Post: 30 Jun 2009, 3:06 AM


Reply With Quote