Hi,

 

I'm currently not doing any resize of the canvas. 

 

Strangely however, I added a Thread.sleep(1000) right after the call to

setDocument(null) to allow more time for propagation to the DOM tree

and the Exception did not occur any longer.

 

Thanks!

 

Leo

  _____  

 
Hi Leo,
 
Leo Lim <[EMAIL PROTECTED]> wrote on 07/18/2007 09:42:47 AM:
 
> I'm currently using Batik 1.7 and was calling 
m_svgCanvas.setDocument(null)
> to clear my svg canvas. Found out that this exception occurs 
intermittently. 
 
   First off Batik does have at least one race condition in this general 
area,
however your stack trace doesn't look like this. 
 
> While this method is executing, it is possible that the user could click 
my 
> "Cancel" button and call this method again. Is this because, I called
> the nullification of the document before the previous one ran its 
course?
 
   Do you have code that resizes the canvas?
 
   It looks like someone is trying to resize the canvas while it is 
shutting down.
 
> Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException
> : RunnableQueue not started or has exited
>       at org.apache.batik.util.RunnableQueue.invokeLater(Unknown Source)
>       at org.apache.batik.swing.svg.AbstractJSVGComponent.
> updateRenderingTransform(Unknown Source)
>       at org.apache.batik.swing.gvt.AbstractJGVTComponent$1.
> componentResized(Unknown Source)
>       at java.awt.AWTEventMulticaster.componentResized(
> AWTEventMulticaster.java:142)

 

Reply via email to