Sorry. Fixed. It turns out the deepCloneDocument() method recommended by Thomas does not clone everything. I have to take a closer look if there are no other potential problem with the cloning.
On 08.12.2008 12:11:50 Vincent Hennebert wrote: > Hi Jeremias, > > > Author: jeremias > > Date: Sun Dec 7 10:01:24 2008 > > New Revision: 724163 > > > > URL: http://svn.apache.org/viewvc?rev=724163&view=rev > > Log: > > Bugzilla #46360: > > Fixed a multi-threading issue when rendering SVG. > > This seems to break the test suite: > Testcase: testSVGWithReferences took 0.095 sec > Caused an ERROR > GVT tree could not be built for SVG graphic > org.apache.xmlgraphics.image.loader.ImageException: GVT tree could not be > built for SVG graphic > at > org.apache.fop.image.loader.batik.ImageConverterSVG2G2D.convert(ImageConverterSVG2G2D.java:93) > at > org.apache.xmlgraphics.image.loader.pipeline.ImageProviderPipeline.execute(ImageProviderPipeline.java:174) > at > org.apache.xmlgraphics.image.loader.pipeline.ImageProviderPipeline.execute(ImageProviderPipeline.java:98) > at > org.apache.xmlgraphics.image.loader.ImageManager.getImage(ImageManager.java:202) > at > org.apache.xmlgraphics.image.loader.ImageManager.getImage(ImageManager.java:271) > at > org.apache.fop.image.loader.batik.ImageLoaderTestCase.testSVGWithReferences(ImageLoaderTestCase.java:187) > Caused by: org.apache.batik.bridge.BridgeException: null:0 > The URI "//logo.jpg" > on element <image> can't be opened because: > The URI can't be opened: > Unable to make sense of URL for connection > at > org.apache.batik.bridge.UserAgentAdapter.getBrokenLinkDocument(Unknown Source) > at > org.apache.batik.bridge.SVGImageElementBridge.createBrokenImageNode(Unknown > Source) > at > org.apache.batik.bridge.SVGImageElementBridge.createImageGraphicsNode(Unknown > Source) > at > org.apache.batik.bridge.SVGImageElementBridge.buildImageGraphicsNode(Unknown > Source) > at > org.apache.batik.bridge.SVGImageElementBridge.createGraphicsNode(Unknown > Source) > at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown > Source) > at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source) > at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown > Source) > at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source) > at org.apache.batik.bridge.GVTBuilder.build(Unknown Source) > at > org.apache.fop.image.loader.batik.ImageConverterSVG2G2D.convert(ImageConverterSVG2G2D.java:91) > > > Can you have a look? > Thanks, > Vincent Jeremias Maerki
