You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by "Steiner, Dominik" <Do...@gigatronik.com> on 2005/12/19 17:30:04 UTC

thread exception

Hi there,

 

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 <ma...@gigatronik.com> 

www.gigatronik.com

 


Re: thread exception

Posted by Laurent Caron <la...@gmail.com>.
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 <th...@kodak.com> wrote:
>
> Hi Steiner,
>
>     This is almost always caused by modifying the DOM tree outside of the
> UpdateManager's
> update thread.
>
> "Steiner, Dominik" <Do...@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
>
>

Re: thread exception

Posted by th...@kodak.com.
Hi Steiner,

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

"Steiner, Dominik" <Do...@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