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 Leo Lim <le...@fedex.com> on 2007/07/18 15:42:47 UTC
IllegalStateException
Hi,
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.
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?
Thanks for the help!
Leo
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(Un
known Source)
at
org.apache.batik.swing.gvt.AbstractJGVTComponent$1.componentResized(Unknown
Source)
at
java.awt.AWTEventMulticaster.componentResized(AWTEventMulticaster.java:142)
at java.awt.Component.processComponentEvent(Component.java:5864)
at java.awt.Component.processEvent(Component.java:5818)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java
:273)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:18
3)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:173)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Re: IllegalStateException
Posted by Archie Cobbs <ar...@dellroad.org>.
Possibly this is the same bug as
http://issues.apache.org/bugzilla/show_bug.cgi?id=40681
On 7/19/07, thomas.deweese@kodak.com <th...@kodak.com> wrote:
>
> Hi Leo,
>
> Leo Lim <le...@fedex.com> 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)
>
>
--
__________________________________________________________________________
Archie Cobbs * CTO, Awarix * http://www.awarix.com
Re: IllegalStateException
Posted by th...@kodak.com.
Hi Leo,
Leo Lim <le...@fedex.com> 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)