xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steiner, Dominik" <Dominik.Stei...@gigatronik.com>
Subject AW: thread exception
Date Tue, 20 Dec 2005 09:41:54 GMT
Thanks so much Laurent and Thomas... you were right and I could fix it...

 

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:dominik.steiner@gigatronik.com <mailto:dominik.steiner@gigatronik.com> 

www.gigatronik.com

 

  _____  

Von: Laurent Caron [mailto:laurent.caron@gmail.com] 
Gesendet: Dienstag, 20. Dezember 2005 08:12
An: batik-users@xmlgraphics.apache.org
Betreff: Re: thread exception

 

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, thomas.deweese@kodak.com <thomas.deweese@kodak.com> wrote:

Hi Steiner,

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

"Steiner, Dominik" <Dominik.Steiner@gigatronik.com > 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:dominik.steiner@gigatronik.com 
> www.gigatronik.com
>

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org

 


Mime
View raw message