Hi,
I have a method that does a featureCollection.clear().
Then the method repopulates the featureCollection with new Points and
attributes.
I'm getting a ConcurrentModificationException while repopulating the
featureCollection.
I think a redraw is being issued that is utilizing the featureCollection while
I'm trying to add new elements to it.
Is there a way to make it so that when repopulating the featureCollection
geotools does not call a redraw in its inners???
Oliver
The following is my exception:
Jan 15, 2010 12:09:39 PM org.geotools.renderer.lite.StreamingRenderer
drawOptimized
SEVERE: null
java.util.ConcurrentModificationException
at java.util.TreeMap$PrivateEntryIterator.nextEntry(Unknown Source)
at java.util.TreeMap$ValueIterator.next(Unknown Source)
at
org.geotools.feature.DefaultFeatureCollection$1.next(DefaultFeatureCollection.java:381)
at
org.geotools.feature.collection.FeatureIteratorImpl.next(FeatureIteratorImpl.java:69)
at
org.geotools.data.collection.DelegateFeatureReader.next(DelegateFeatureReader.java:60)
at
org.geotools.data.store.FeatureReaderIterator.next(FeatureReaderIterator.java:71)
at
org.geotools.data.store.FeatureReaderIterator.next(FeatureReaderIterator.java:41)
at
org.geotools.renderer.lite.StreamingRenderer.drawOptimized(StreamingRenderer.java:1812)
at
org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1730)
at
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:675)
at org.geotools.swing.JMapPane.paintComponent(JMapPane.java:793)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown
Source)
at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown
Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users