google-code-export / gwteventservice

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

ConcurrentModificationException while executing TimeoutTimerTask #61

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. While executing TimeoutTimerTask if new user register.
2. In TimeoutTimerTask there is a iterator on myUserInfoCollection collection. 
At the same if new entry is added into DefaultUserManager.myUserMap map, there 
will be the ConcurrentModificationException. Due to this timer stops working. 
Thus there are no further timeouts.

What is the expected output? What do you see instead?
Modification of DefaultUserManager.myUserMap map and iteration on 
myUserInfoCollection collection should be synchronized to avoid 
ConcurrentModificationException and proper working of TimeoutTimerTask.

What version of the product are you using? On what operating system?
gwteventservice-1.1.1
Linux (64 bit)

Original issue reported on code.google.com by vikas.m....@gmail.com on 19 Jan 2015 at 1:02

GoogleCodeExporter commented 9 years ago
My mistake... Please close this issue.

ConcurrentModificationException will not occur as ConcurrentMap is used instead 
of HashMap.

Original comment by vikas.m....@gmail.com on 19 Jan 2015 at 1:44