1. The fragment I pasted below from org.apache.xmlgraphics.util.Service.providers shows that the method fails to close the opened InputStream in either the normal case or in case of an exception. That causes locked JARs on Windows systems.
It sounds as if it's time to file a bug against xmlgraphics and to see if there is a later release of batik (in which this problem has been fixed) which you can use.
while (e.hasMoreElements()) {
try {
URL u = (URL)e.nextElement();
InputStream is = u.openStream();
Reader r = new InputStreamReader(is, "UTF-8");
BufferedReader br = new BufferedReader(r);
...irrelevant code removed...
} catch (Exception ex) {
// Just try the next file...
} catch (LinkageError le) {
// Just try the next file...
}
}
[Message sent by forum member 'tjquinn' (tjquinn)]