You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by Thomas E Deweese <th...@kodak.com> on 2000/11/15 20:31:17 UTC
Thumbnails regression
When I was preparing my commit I noticed that thumbnails.svg
would die with a NoSuchMethodError error. I later tried invoking the
svgviewer "by hand" and it worked on all the samples so I went ahead
and committed. It would appear that there is something wrong with the
way build.xml invokes the svgviewer.
Does anyone have any ideas?
Here is the full stack trace I get when using ant to run the
viewer (incidentally it doesn't do it for most files).
[java] *** CACHE *** load file:/home/deweese/batik/xml-batik/samples/testTemplate.svg/ [21]
[java] *** CACHE *** total cached nodes : 356/2000
[java] java.lang.NoSuchMethodError
[java] at org.apache.batik.dom.AbstractParentNode.fireDOMNodeInsertedEvent(AbstractParentNode.java:312)
[java] at org.apache.batik.dom.AbstractParentNode.appendChild(AbstractParentNode.java:194)
[java] at org.apache.batik.dom.AbstractParentNode.deepCopyInto(AbstractParentNode.java:279)
[java] at org.apache.batik.dom.AbstractAttr.deepCopyInto(AbstractAttr.java:212)
[java] at org.apache.batik.dom.AbstractAttrNS.deepCopyInto(AbstractAttrNS.java:130)
[java] at org.apache.batik.dom.AbstractNode.cloneNode(AbstractNode.java:278)
[java] at org.apache.batik.dom.AbstractElement.deepCopyInto(AbstractElement.java:444)
[java] at org.apache.batik.dom.svg.SVGOMElement.deepCopyInto(SVGOMElement.java:298)
[java] at org.apache.batik.dom.AbstractNode.cloneNode(AbstractNode.java:278)
[java] at org.apache.batik.dom.AbstractParentNode.deepCopyInto(AbstractParentNode.java:278)
[java] at org.apache.batik.dom.AbstractElement.deepCopyInto(AbstractElement.java:439)
[java] at org.apache.batik.dom.svg.SVGOMElement.deepCopyInto(SVGOMElement.java:298)
[java] at org.apache.batik.dom.AbstractNode.cloneNode(AbstractNode.java:278)
[java] at org.apache.batik.refimpl.bridge.ConcreteGVTBuilder.buildGraphicsNode(ConcreteGVTBuilder.java:197)
[java] at org.apache.batik.refimpl.bridge.ConcreteGVTBuilder.buildComposite(ConcreteGVTBuilder.java:156)
[java] at org.apache.batik.refimpl.bridge.ConcreteGVTBuilder.buildGraphicsNode(ConcreteGVTBuilder.java:177)
[java] at org.apache.batik.refimpl.bridge.ConcreteGVTBuilder.buildComposite(ConcreteGVTBuilder.java:156)
[java] at org.apache.batik.refimpl.bridge.ConcreteGVTBuilder.buildGraphicsNode(ConcreteGVTBuilder.java:177)
[java] at org.apache.batik.refimpl.bridge.ConcreteGVTBuilder.buildComposite(ConcreteGVTBuilder.java:156)
[java] at org.apache.batik.refimpl.bridge.ConcreteGVTBuilder.buildGraphicsNode(ConcreteGVTBuilder.java:177)
[java] at org.apache.batik.refimpl.bridge.ConcreteGVTBuilder.buildComposite(ConcreteGVTBuilder.java:156)
[java] at org.apache.batik.refimpl.bridge.ConcreteGVTBuilder.build(ConcreteGVTBuilder.java:87)
[java] at org.apache.batik.refimpl.util.JSVGCanvas$1.run(JSVGCanvas.java:357)
Re: Batik test version (updated)
Posted by Bill Haneman <bi...@ireland.sun.com>.
Vincent Hardy wrote:
>
> Bill,
>
> What did you change in AbstractGraphicsNode?
> V
GraphicsNode.paint() now throws an InteruptedException.
AbstractGraphicsNode now checks to see if its thread is interrupted
before proceeding (throws InterruptedException if it has been).
Because our paint() is recursive from the gvtRoot this is
the only way to (correctly) interrupt the rendering of
a gvt tree.
A similar change was made required in ConcreteCompositeGraphicsNode,
it now checks interrupt status before
calling super().paint(). Note that for CompositeGraphicsNodes
we don't throw an exception this way unless you are using an offscreen
buffer.
Most of the files changed were because of the need to trap this
new exception.
-Bill
--------------
Bill Haneman
+1 353 1 849 0495
Re: Batik test version (updated)
Posted by Vincent Hardy <vi...@eng.sun.com>.
Bill,
What did you change in AbstractGraphicsNode?
V.
Bill Haneman wrote:
>
> Hi:
>
> I have replaced the tarball with one that has a minor bugfix, also
> it now only includes sources and resources as otherwise it was
> really big.
>
> Attached is a list (from cvs update) of the files that
> have changed in the tarball with respect to the current CVS archive.
> I hope that we can do a subsequent merge without too much trouble.
>
> -Bill
>
> P.S. - the thumbnail is still single threaded, will change later.
> P.P.S. - there is new behavior in the viewer which can be disabled
> from the Options menu.
> --------------
> Bill Haneman
> +1 353 1 849 0495
>
> ------------------------------------------------------------------------
> M xml-batik/resources/org/apache/batik/apps/svgviewer/resources/GUI.properties
> M xml-batik/sources/org/apache/batik/apps/svgviewer/ViewerFrame.java
> M xml-batik/sources/org/apache/batik/gvt/GraphicsNode.java
> M xml-batik/sources/org/apache/batik/gvt/renderer/Renderer.java
> M xml-batik/sources/org/apache/batik/refimpl/gvt/AbstractGraphicsNode.java
> M xml-batik/sources/org/apache/batik/refimpl/gvt/ConcreteCompositeGraphicsNode.java
> M xml-batik/sources/org/apache/batik/refimpl/gvt/renderer/DynamicRenderer.java
> M xml-batik/sources/org/apache/batik/refimpl/gvt/renderer/StaticRenderer.java
> M xml-batik/sources/org/apache/batik/refimpl/transcoder/ImageTranscoder.java
> M xml-batik/sources/org/apache/batik/refimpl/util/JSVGCanvas.java
> M xml-batik/sources/org/apache/batik/test/gvt/GVTDemoLauncher.java
> M xml-batik/sources/org/apache/batik/test/refimpl/bridge/SwingStaticViewer.java
>
> ------------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-dev-help@xml.apache.org
Batik test version (updated)
Posted by Bill Haneman <bi...@ireland.sun.com>.
Hi:
I have replaced the tarball with one that has a minor bugfix, also
it now only includes sources and resources as otherwise it was
really big.
Attached is a list (from cvs update) of the files that
have changed in the tarball with respect to the current CVS archive.
I hope that we can do a subsequent merge without too much trouble.
-Bill
P.S. - the thumbnail is still single threaded, will change later.
P.P.S. - there is new behavior in the viewer which can be disabled
from the Options menu.
--------------
Bill Haneman
+1 353 1 849 0495
Re: Thumbnails regression
Posted by Stephane Hillion <St...@sophia.inria.fr>.
Vincent Hardy wrote:
> I think this has to do with the DOM2 APIs. Stephane: any idea?
The problem comes from different versions of the DOM bindings in the
classpath.
I have commited a version of build.xml with a fix.
It is a temporary solution since everything is OK except the XSL stylesheet
processing which do not work at all.
--
Stephane.
Re: Thumbnails regression
Posted by Vincent Hardy <vi...@eng.sun.com>.
Thomas E Deweese wrote:
>
> >>>>> "VH" == vincent hardy <vi...@eng.sun.com> writes:
>
> VH> build.xml does not handle dependencies well and the kind of error
> VH> you got usually indicates that your classes are out of sync. Did
> VH> you try to clean and recompile?
>
> Yes, I did this, I still had the problem.
>
> I noticed that build.xml puts the jars from the lib dir first on
> the class path, if I changed build.xml to put the classes directory
> first this problem goes away.
>
> I'm guessing there are copies of classes from the source tree in
> the one or more of the Jar files, this is _bad_. You'll get away with
> it alot more in Java than say C++ but sooner or later this will bite
> us...
I think this has to do with the DOM2 APIs. Stephane: any idea?
V.
Re: Thumbnails regression
Posted by Thomas E Deweese <th...@kodak.com>.
>>>>> "VH" == vincent hardy <vi...@eng.sun.com> writes:
VH> build.xml does not handle dependencies well and the kind of error
VH> you got usually indicates that your classes are out of sync. Did
VH> you try to clean and recompile?
Yes, I did this, I still had the problem.
I noticed that build.xml puts the jars from the lib dir first on
the class path, if I changed build.xml to put the classes directory
first this problem goes away.
I'm guessing there are copies of classes from the source tree in
the one or more of the Jar files, this is _bad_. You'll get away with
it alot more in Java than say C++ but sooner or later this will bite
us...
Who is managing the jars in the lib dir?
Re: Thumbnails regression
Posted by vincent hardy <vi...@eng.sun.com>.
build.xml does not handle dependencies well and the kind of error you
got
usually indicates that your classes are out of sync. Did you try to
clean and recompile?
V.
Thomas E Deweese wrote:
>
> When I was preparing my commit I noticed that thumbnails.svg
> would die with a NoSuchMethodError error. I later tried invoking the
> svgviewer "by hand" and it worked on all the samples so I went ahead
> and committed. It would appear that there is something wrong with the
> way build.xml invokes the svgviewer.
>
> Does anyone have any ideas?
>
> Here is the full stack trace I get when using ant to run the
> viewer (incidentally it doesn't do it for most files).
>
> [java] *** CACHE *** load file:/home/deweese/batik/xml-batik/samples/testTemplate.svg/ [21]
> [java] *** CACHE *** total cached nodes : 356/2000
> [java] java.lang.NoSuchMethodError
> [java] at org.apache.batik.dom.AbstractParentNode.fireDOMNodeInsertedEvent(AbstractParentNode.java:312)
> [java] at org.apache.batik.dom.AbstractParentNode.appendChild(AbstractParentNode.java:194)
> [java] at org.apache.batik.dom.AbstractParentNode.deepCopyInto(AbstractParentNode.java:279)
> [java] at org.apache.batik.dom.AbstractAttr.deepCopyInto(AbstractAttr.java:212)
> [java] at org.apache.batik.dom.AbstractAttrNS.deepCopyInto(AbstractAttrNS.java:130)
> [java] at org.apache.batik.dom.AbstractNode.cloneNode(AbstractNode.java:278)
> [java] at org.apache.batik.dom.AbstractElement.deepCopyInto(AbstractElement.java:444)
> [java] at org.apache.batik.dom.svg.SVGOMElement.deepCopyInto(SVGOMElement.java:298)
> [java] at org.apache.batik.dom.AbstractNode.cloneNode(AbstractNode.java:278)
> [java] at org.apache.batik.dom.AbstractParentNode.deepCopyInto(AbstractParentNode.java:278)
> [java] at org.apache.batik.dom.AbstractElement.deepCopyInto(AbstractElement.java:439)
> [java] at org.apache.batik.dom.svg.SVGOMElement.deepCopyInto(SVGOMElement.java:298)
> [java] at org.apache.batik.dom.AbstractNode.cloneNode(AbstractNode.java:278)
> [java] at org.apache.batik.refimpl.bridge.ConcreteGVTBuilder.buildGraphicsNode(ConcreteGVTBuilder.java:197)
> [java] at org.apache.batik.refimpl.bridge.ConcreteGVTBuilder.buildComposite(ConcreteGVTBuilder.java:156)
> [java] at org.apache.batik.refimpl.bridge.ConcreteGVTBuilder.buildGraphicsNode(ConcreteGVTBuilder.java:177)
> [java] at org.apache.batik.refimpl.bridge.ConcreteGVTBuilder.buildComposite(ConcreteGVTBuilder.java:156)
> [java] at org.apache.batik.refimpl.bridge.ConcreteGVTBuilder.buildGraphicsNode(ConcreteGVTBuilder.java:177)
> [java] at org.apache.batik.refimpl.bridge.ConcreteGVTBuilder.buildComposite(ConcreteGVTBuilder.java:156)
> [java] at org.apache.batik.refimpl.bridge.ConcreteGVTBuilder.buildGraphicsNode(ConcreteGVTBuilder.java:177)
> [java] at org.apache.batik.refimpl.bridge.ConcreteGVTBuilder.buildComposite(ConcreteGVTBuilder.java:156)
> [java] at org.apache.batik.refimpl.bridge.ConcreteGVTBuilder.build(ConcreteGVTBuilder.java:87)
> [java] at org.apache.batik.refimpl.util.JSVGCanvas$1.run(JSVGCanvas.java:357)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-dev-help@xml.apache.org
--
+-----------------------------------------------------------+
| Vincent Hardy vincent.hardy@eng.sun.com |
| Scalable Vector Graphics XML Technology Center |
| 650-786-4066 Menlo Park, CA, USA |
+-----------------------------------------------------------+