List Info

Thread: Cannot move a box and arrow at the same time.




Cannot move a box and arrow at the same time.
user name
2007-09-26 05:22:19
Dear all,

I'm always hitting the
java.util.ConcurrentModificationException when
I try to move a box and an arrow at the same time. Would
anyone please
give me some suggestions? Is it a known bug? Should I create
a bug
report?

I have made a very simple test case, where if you drag the
second box,
the program will throws you the
ConcurrentModificationException from
org.apache.batik.gvt.UpdateTracker.getDirtyAreas()

Source code in the attachement.

Thanks a lot in advance.

Kind regards,
Qian

------------------------------------------------------------
---------
To unsubscribe, e-mail: batik-users-unsubscribexmlgraphics.apache.org
For additional commands, e-mail: batik-users-helpxmlgraphics.apache.org
  
  
Re: Cannot move a box and arrow at the same time.
country flaguser name
United States
2007-10-04 07:03:46

Hi Qian,
    As I mentioned earlier you need to make changes in the UpdateManager's RunnableQueue.
Your code is modifying the document in Swing Thread.

"Qian Li" <qian.007googlemail.com> wrote on 09/26/2007 06:22:19 AM:

&gt; Dear all,
>;
> I'm always hitting the java.util.ConcurrentModificationException when
>; I try to move a box and an arrow at the same time. Would anyone please
&gt; give me some suggestions? Is it a known bug? Should I create a bug
> report?
>
> I have made a very simple test case, where if you drag the second box,
> the program will throws you the ConcurrentModificationException from
>; org.apache.batik.gvt.UpdateTracker.getDirtyAreas()
&gt;
> Source code in the attachement.
>
> Thanks a lot in advance.
>
> Kind regards,
> Qian
>; [attachment "TestConcurrent.java" deleted by Thomas E.
> DeWeese/449433/EKC] [attachment "ElementHandler.java" deleted by
> Thomas E. DeWeese/449433/EKC]
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribexmlgraphics.apache.org
> For additional commands, e-mail: batik-users-helpxmlgraphics.apache.org
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )