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.
  1. #1
    Ext User
    Join Date
    Sep 2010
    Location
    Dallas, TX
    Posts
    4
    Vote Rating
    0
    TedCHoward is on a distinguished road

      0  

    Default [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:

    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)
    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.

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,966
    Vote Rating
    130
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    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.

  3. #3
    Ext User
    Join Date
    Sep 2010
    Location
    Dallas, TX
    Posts
    4
    Vote Rating
    0
    TedCHoward is on a distinguished road

      0  

    Default


    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.

  4. #4
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,966
    Vote Rating
    130
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Fixed in SVN as of revision 2238.

Similar Threads

  1. [FNR] GridView refreshRow javascript exception w/ grouping grid
    By jonjanisch in forum Ext GWT: Bugs (2.x)
    Replies: 3
    Last Post: 2 Feb 2011, 10:53 AM
  2. Replies: 8
    Last Post: 17 Aug 2010, 9:20 AM
  3. [FNR] Exception on tracking hierarchy.
    By nika.setar in forum Ext GWT: Bugs (2.x)
    Replies: 1
    Last Post: 29 Mar 2010, 8:50 AM
  4. [OPEN] [FNR] Null Pointer Exception from QuickTips
    By C. Cox in forum Ext GWT: Bugs (2.x)
    Replies: 1
    Last Post: 16 Sep 2009, 1:38 PM
  5. [FNR] [1.2.4] Listview unhandled exception when mouseout
    By srichardson in forum Ext GWT: Bugs (1.x)
    Replies: 1
    Last Post: 30 Jun 2009, 3:06 AM

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar