We have been able to reproduce with the following files
http://www.nabble.com/file/p20844449/TestPijltje.java TestPijltje.java
http://www.nabble.com/file/p20844449/pols.xml pols.xml
http://www.nabble.com/file/p20844449/pols.xslt pols.xslt
http://www.nabble.com/file/p20844449/pijltje.svg pijltje.svg
TestPijltje.java is the test program. It starts two threads each of which
will generate a pdf based on the pols.xslt stylesheet, pols.xml en
pijltje.svg input file.
If changing the code to only start one thread it always works fine. With two
threads regular exceptions are thrown
Stack trace is always something like
Dec 4, 2008 11:54:33 PM org.apache.fop.svg.SVGUserAgent displayError
SEVERE: SVG Errorfile:/Users/pc/Downloads/fop-0.95/pijltje.svg:
The attribute "enable-background" represents an invalid CSS value ("new 0 0
47.403 26.361").
Original message:
Invalid number.
org.w3c.dom.DOMException: file:/Users/pc/Downloads/fop-0.95/pijltje.svg:
The attribute "enable-background" represents an invalid CSS value ("new 0 0
47.403 26.361").
Original message:
Invalid number.
at org.apache.batik.css.engine.CSSEngine.getCascadedStyleMap(Unknown
Source)
at org.apache.batik.css.engine.CSSEngine.getComputedStyle(Unknown
Source)
at org.apache.batik.bridge.CSSUtilities.getComputedStyle(Unknown
Source)
at org.apache.batik.bridge.CSSUtilities.convertVisibility(Unknown
Source)
at
org.apache.batik.bridge.SVGSVGElementBridge.createGraphicsNode(Unknown
Source)
at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
at
org.apache.fop.render.pdf.PDFSVGHandler.renderSVGDocument(PDFSVGHandler.java:188)
Any help warmly welcomed!
Thanks
Peter
--
View this message in context:
http://www.nabble.com/Batik-exception-when-using-fop-with-svg-images-in-threaded-environment-tp20809049p20844449.html
Sent from the Batik - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]