gautamaino / gwteventservice

Automatically exported from code.google.com/p/gwteventservice
Other
0 stars 0 forks source link

EventNotification throws ConcurrentModificationException #42

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

After a message is received from the server, on line 517 of 
DefaultRemoteEventService, a ConcurrentModificationException is being thrown, 
because it is possible that in the theListener.apply(theEvent) call, more 
RemoteEventListeners are created and registered.

What is the expected output? What do you see instead?

An exception should not be thrown here, and there should be some way to get a 
copy of the current list of listeners to avoid this situation.

What version of the product are you using? On what operating system?

version 1.2.0, GWT 2.4.0, Java 7 (32 bit), Windows 7 64-bit.

Please provide any additional information below.

As a work-around, I had to figure out which objects were causing this issue, 
and wrap their work in a ScheduledCommand, so that it would be executed outside 
of this onNotify loop.

Original issue reported on code.google.com by mdkitz...@gmail.com on 13 Jan 2012 at 10:10

GoogleCodeExporter commented 8 years ago

Original comment by sven.strohschein@googlemail.com on 16 Jul 2012 at 6:21

GoogleCodeExporter commented 8 years ago
Fixed in GWTEventService 1.3 (trunk version).

Original comment by sven.strohschein@googlemail.com on 7 Aug 2012 at 10:34