SakunM / windowlicker

Automatically exported from code.google.com/p/windowlicker
GNU General Public License v3.0
0 stars 0 forks source link

ConcurrentModificationException with RecursiveComponentFinder 'found' collection. #18

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
We're using Window Licker quite heavily at the moment, and found the following 
during one of our overnight tests:

java.util.ConcurrentModificationException
    at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:373)
    at java.util.LinkedHashMap$KeyIterator.next(LinkedHashMap.java:384)
    at java.util.AbstractCollection.toArray(AbstractCollection.java:124)
    at java.util.ArrayList.<init>(ArrayList.java:131)
    at com.objogate.wl.swing.probe.RecursiveComponentFinder.components(RecursiveComponentFinder.java:34)
    at com.objogate.wl.swing.probe.SingleComponentFinder.components(SingleComponentFinder.java:23)
    at com.objogate.wl.swing.probe.RecursiveComponentFinder.probe(RecursiveComponentFinder.java:41)
    at com.objogate.wl.swing.probe.SingleComponentFinder.probe(SingleComponentFinder.java:31)
    at com.objogate.wl.swing.probe.RecursiveComponentFinder.probe(RecursiveComponentFinder.java:38)
    at com.objogate.wl.swing.probe.SingleComponentFinder.probe(SingleComponentFinder.java:31)
    at com.objogate.wl.swing.probe.RecursiveComponentFinder.probe(RecursiveComponentFinder.java:38)
    at com.objogate.wl.swing.probe.SingleComponentFinder.probe(SingleComponentFinder.java:31)
    at aquila.administrator.endtoendtest.drivers.DialogueButtonPanelDriver.clickTheTestButtonIfPresent(DialogueButtonPanelDriver.java:54)
    at aquila.administrator.endtoendtest.drivers.DialogueFrameDriver.captureCurrentScreenState(DialogueFrameDriver.java:147)
    at aquila.administrator.endtoendtest.drivers.DialogueDriver.captureCurrentScreenState(DialogueDriver.java:1)
    at aquila.administrator.endtoendtest.scripts.BasicUIFunctionalRegressionTest.ppTrancheMatrixAndGrids(BasicUIFunctionalRegressionTest.java:485)
    at aquila.administrator.endtoendtest.scripts.BasicUIFunctionalRegressionTest.startBasicUIFunctionalRegressionTest(BasicUIFunctionalRegressionTest.java:85)

It's an intermittent issue, but we've hit this in a few places now, and clearly 
the potential is there. The enclosed patch solves the problem for us, so 
hopefully it can be accepted into Window Licker. We'll probably have more 
patches, and more to contribute in general, so it'd be great if we could join 
the project properly.

Original issue reported on code.google.com by are...@aquilauk.co.uk on 29 Sep 2011 at 9:27

Attachments: