On 08/27/2013 09:49 AM, Imad Sabaany wrote:
Hi everyone,
I write tests to my RCP on swtbot and it's work, but sometimes I get
these Exception:
!MESSAGE Exception during refresh command listener registration
!STACK 0
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(Unknown Source)
at java.util.HashMap$ValueIterator.next(Unknown Source)
at
org.eclipse.core.commands.CommandManager.addExecutionListener(CommandManager.java:324)
at
org.eclipse.ui.internal.commands.CommandService.addExecutionListener(CommandService.java:110)
at
com.sap.ndb.studio.dwb.team.ui.internal.DwbTeamUiPluginStartup.registerRefreshCommandListener(DwbTeamUiPluginStartup.java:75)
at
com.sap.ndb.studio.dwb.team.ui.internal.DwbTeamUiPluginStartup$1.runInUIThread(DwbTeamUiPluginStartup.java:57)
at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
...
Do you have any idea what I can do to fix these?
This stack does seem to show an issue in SWTBot but rather in the
DwbTeamUIPluginStartup which seems to have a bug in the way it manages
threads (more specifically, there seems to be 2 threads manipulating an
HashMap iterator at the same time, an iterator should usually be used in
a single thread).
HTH
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat <http://www.jboss.org/tools>
My blog <http://mickaelistria.wordpress.com> - My Tweets
<http://twitter.com/mickaelistria>
_______________________________________________
swtbot-dev mailing list
swtbot-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/swtbot-dev