-
14 Nov 2008 8:33 AM #1
[CLOSED] [1.1.3] Dispatcher and Hosted Mode
[CLOSED] [1.1.3] Dispatcher and Hosted Mode
I have noticed an issue when running in hosted mode and using the Dispatcher. For some reason, hosted mode is able to produce a congruent modification exception as seen in this stack trace:
java.util.ConcurrentModificationException: null
at java.util.AbstractList$Itr.checkForComodification(Unknown Source)
at java.util.AbstractList$Itr.next(Unknown Source)
at com.extjs.gxt.ui.client.mvc.Dispatcher.dispatch(Dispatcher.java:232)
at com.extjs.gxt.ui.client.mvc.Dispatcher.dispatch(Dispatcher.java:166)
...
I know that once this gets compiled to javascript it is single threaded and would be impossible to produce this exception. But hosted mode is able to produce this exception.
This looks to be a problem with hosted mode in the GWT compiler, something with their internal timers being incorrect I would imagine.
-
21 Nov 2008 3:17 PM #2
While we're at it
While we're at it
I notice this code in the Dispatcher:
Why not use :Code:history.put(token, event); ignoreNext = true; History.newItem(token);
Now you don't have to deal with boolean flag?Code:History.newItem(token, false);
-
26 Nov 2008 9:47 PM #3
amundb
I am not sure why you are seeing this issue. Are you removing a controller within code executing via a event passed to the dispatcher?
Kutu
Thanks for the tip, I was not aware of the newItem(String historyToken, boolean issueEvent) method. It looks like it was added in 1.5.1. I have updated the Dispatcher code.
-
23 Jan 2009 12:36 PM #4


Reply With Quote