Affects Version/s: 1.6
Fix Version/s: None
Environment:Operating System: Linux
I have a Swing program that tries to load several SVG documents
using several JSVGCanvases at the same time. These images all
have within them some <image> tags that import the same other
external SVG documents.
<image x="2214.0" y="9.0" transform="scale(0.5)"
height="163.0" preserveAspectRatio="xMaxYMax meet"/>
When loading these documents at the same time, it appears there is
some sort of race condition that causes the exception below from
all the images, and they all fail to load.
Note that the <image>'s URL references an SVG file, so I'm not
sure why Toolkit.createImage() is being used (as it appears) but
I don't understand the inner workings.
2006-07-11 19:31:56,991 [AWT-EventQueue-0] ERROR: BasicUserAgent Error:
The URI "http://test1.example.com/imgs/../test/logo1.svg"
on element <image> can't be opened because:
JDK URL is corrupt or unsupported variant
at org.apache.batik.swing.svg.JSVGComponent$26Query.run(Unknown Source)
- This only occurs when multiple JSVGCanvases are attempting to load and build
their documents at the same time.
- This only occurs when the imported file is SVG. When I rasterize it to PNG and
import that instead, the problem goes away.
This seems like it must be a bug in Batik's document caching subsystem.