Hello,
In a batik application, I am erasing an element and adding a new one (a
move action).
When I do it with two different calls to
"svgCanvas.getUpdateManager().getUpdateRunnableQueue().invokeLater(new
Runnable(...))", one for erasing and one for adding, I get a Concurrent
Modification Exception, more precisely:
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(Unknown Source)
at java.util.HashMap$KeyIterator.next(Unknown Source)
at org.apache.batik.gvt.UpdateTracker.getDirtyAreas(Unknown
Source)
at org.apache.batik.bridge.UpdateManager.repaint(Unknown Source)
at org.apache.batik.bridge.UpdateManager.runnableInvoked(Unknown
Source)
at org.apache.batik.util.RunnableQueue.runnableInvoked(Unknown
Source)
at org.apache.batik.util.RunnableQueue.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
If I try to do both actions (adding and erasing) in the same call to the
update manager, I get this exception as well.
I have to say that before calling the Update Manager I make sure that
all the rendering it's done and that the Update Manager has started. I
have put listeners on the Update Manager and this happens AFTER the
"updateCompleted" listener.
Anyone had this problem before?
Cheers,
Ignacio Leon
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]