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 AshishAggarwal <as...@aricent.com> on 2010/02/10 06:37:06 UTC

Getting SVG Error Dialog

Iam getting the following Error:
All the the SVG document update is done via the runnableQueue, and Doc is
not corrupted as iam able to save that properly.

java.lang.NullPointerException

            at
org.apache.batik.bridge.SVGSVGElementBridge.handleAnimatedAttributeChanged(SVGSVGElementBridge.java:386)

            at
org.apache.batik.bridge.BridgeContext$AnimatedAttrListener.animatedAttributeChanged(BridgeContext.java:1763)

            at
org.apache.batik.dom.svg.SVGOMDocument$AnimAttrListener.animatedAttributeChanged(SVGOMDocument.java:706)

            at
org.apache.batik.dom.svg.AbstractSVGAnimatedValue.fireAnimatedAttributeListeners(AbstractSVGAnimatedValue.java:132)

            at
org.apache.batik.dom.svg.AbstractSVGAnimatedLength.attrChanged(AbstractSVGAnimatedLength.java:231)

            at
org.apache.batik.dom.svg.AbstractSVGAnimatedLength.attrModified(AbstractSVGAnimatedLength.java:212)

            at
org.apache.batik.dom.svg.AbstractElement.attrModified(AbstractElement.java:238)

            at
org.apache.batik.dom.AbstractElement.fireDOMAttrModifiedEvent(AbstractElement.java:627)

            at
org.apache.batik.dom.svg.AbstractElement.fireDOMAttrModifiedEvent(AbstractElement.java:117)

            at
org.apache.batik.dom.AbstractAttr.setNodeValue(AbstractAttr.java:156)

            at
org.apache.batik.dom.AbstractAttr.setValue(AbstractAttr.java:199)

            at
org.apache.batik.dom.AbstractElement.setAttribute(AbstractElement.java:144)

            at
com.xxxx.ebts.eem.common.viewframework.userinterface.svgview.DisplayObjectSVGGenerator.HandleRootBoundaryUpdate(DisplayObjectSVGGenerator.java:493)

            at
com.xxxx.ebts.eem.common.viewframework.userinterface.svgview.DisplayObjectSVGGenerator.updateSVG(DisplayObjectSVGGenerator.java:293)

            at
com.nokia.ebts.eem.common.viewframework.userinterface.svgview.SVGUpdator.updateDocument(SVGUpdator.java:271)

            at
com.xxxx.ebts.eem.common.viewframework.userinterface.svgview.SVGUpdator.updateDocument(SVGUpdator.java:1)

            at
com.xxxx.ebts.eem.common.viewframework.userinterface.ViewUIPopulator$ViewRunnable.run(ViewUIPopulator.java:369)

            at
org.apache.batik.util.RunnableQueue.run(RunnableQueue.java:237)

            at java.lang.Thread.run(Unknown Source

Any information and workaround on the same?
-- 
View this message in context: http://old.nabble.com/Getting-SVG-Error-Dialog-tp27526399p27526399.html
Sent from the Batik - Users mailing list archive at Nabble.com.


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


Re: Getting SVG Error Dialog

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

AshishAggarwal <as...@aricent.com> wrote on 02/10/2010 12:37:06 
AM:

> Iam getting the following Error:
> All the the SVG document update is done via the runnableQueue, and Doc 
is
> not corrupted as iam able to save that properly.
> 
> java.lang.NullPointerException at
> 
org.apache.batik.bridge.SVGSVGElementBridge.handleAnimatedAttributeChanged 
(SVGSVGElementBridge.java:386)


    A Null Pointer exception at this point means that the 
SVG Element didn't have a parent in the Graphics node tree.  This appears 
to
be the same error as this note:

http://old.nabble.com/Batik-show-null-error-popup-td27026855.html#a27088788

    So I ask the same question, how was the graphics node tree built?

> Any information and workaround on the same?

    Until I can figure out why your SVG element doesn't have a root
Graphics node as it's parent I don't have any workaround suggestions.