So if your document is included in a JSVGCanvas called "canvas", your modifications should be invoked in the UpdateManager's update thread :

canvas.getUpdateManager().getUpdateRunnableQueue().invokeLater(new Runnable() {
    public void run() {
        // Place your code here
    });

Regards

Laurent



On 12/19/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi Steiner,

    This is almost always caused by modifying the DOM tree outside of the
UpdateManager's
update thread.

"Steiner, Dominik" <[EMAIL PROTECTED] > wrote on 12/19/2005
11:30:04 AM:

> I got this ConcurrentModificationException in my batik application. Does

> anybody have a clue?
>
> 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(UpdateTracker.java :7
> 0)
>         at
org.apache.batik.bridge.UpdateManager.repaint(UpdateManager.java:478)
>
>         at
org.apache.batik.bridge.UpdateManager$UpdateManagerRunHander.runnable
> Invoked( UpdateManager.java:616)
>         at
org.apache.batik.util.RunnableQueue.runnableInvoked(RunnableQueue.jav
> a:493)
>         at
org.apache.batik.util.RunnableQueue.run(RunnableQueue.java:213)
>         at java.lang.Thread.run(Unknown Source)
>
> Thanks for your help.
>
> Dominik Steiner
> Dipl-Ing. Informationstechnik (BA)
> GIGATRONIK
> Gesellschaft für Automobil-
> elektronikentwicklung mbH
> Taunusstr. 21
> 80807 München
> Telefon +49 (0) 89 / 353 96 80-70
> Telefax +49 (0) 89 / 353 96 80-99
> mailto:[EMAIL PROTECTED]
> www.gigatronik.com
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to