hello, I am having more and more problems with having multiple modifications on a Datastore.
Actually I am stuck when I try to render and edit geometry. The fact is I can't find a way be be sure the datastore is not used be trying to edit/render. I spend a complete afternoon trying to avoid each one to acces the datastore at the same time, I have no control and no way to know if the renderer is using it or not. I tryed "synchronized" stuff, or even using a kind of "lock" (with a boolean at true if used) ... but no... It works a few seconds and randomly it raise a java.util.ConcurrentModificationException. I can't finish the editableMap2D will this problem isn't solved. In this case I only have two possible objects using the datastore... but in the futur there is high probability that some more will try to access a datastore at the same time. the full error : java.util.ConcurrentModificationException at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:373) at java.util.LinkedHashMap$ValueIterator.next(LinkedHashMap.java:388) at org.geotools.data.memory.MemoryDataStore$1.next(MemoryDataStore.java:382) at org.geotools.data.FilteringFeatureReader.hasNext(FilteringFeatureReader.java:125) at org.geotools.data.store.FeatureReaderIterator.hasNext(FeatureReaderIterator.java:44) at org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1596) at org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:647) at org.geotools.renderer.shape.ShapefileRenderer.renderWithStreamingRenderer(ShapefileRenderer.java:1454) at org.geotools.renderer.shape.ShapefileRenderer.paint(ShapefileRenderer.java:1325) at org.geotools.renderer.shape.ShapefileRenderer.paint(ShapefileRenderer.java:266) at org.geotools.renderer.shape.ShapefileRenderer.paint(ShapefileRenderer.java:1479) at org.geotools.gui.swing.map.map2d.strategy.SingleBufferedImageStrategy.createBufferImage(SingleBufferedImageStrategy.java:299) at org.geotools.gui.swing.map.map2d.strategy.SingleBufferedImageStrategy$DrawingThread.run(SingleBufferedImageStrategy.java:459) johann sorel ____________________________________________________________ FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop! Check it out at http://www.inbox.com/earth ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel