I'm not on your mailing list.

I get a similar failure in a multithreaded environment. If I synchronize the
transcoding invocation then this error doesn't occur:

***** CSSEngine: exception
property.syntax.error:java.lang.NullPointerException

AttrValue:0.7181102362204724

Exception:java.lang.NullPointerException
java.lang.NullPointerException
        at org.apache.batik.css.parser.Parser.nextIgnoreSpaces(Parser.java:1611)
        at org.apache.batik.css.parser.Parser.parseTerm(Parser.java:963)
        at org.apache.batik.css.parser.Parser.parseExpression(Parser.java:895)
        at
org.apache.batik.css.parser.Parser.parsePropertyValueInternal(Parser.java:337)
        at 
org.apache.batik.css.parser.Parser.parsePropertyValue(Parser.java:1720)
        at
org.apache.batik.css.engine.CSSEngine.getCascadedStyleMap(CSSEngine.java:767)
        at
org.apache.batik.css.engine.CSSEngine.getComputedStyle(CSSEngine.java:876)
        at
org.apache.batik.bridge.CSSUtilities.getComputedStyle(CSSUtilities.java:82)
        at
org.apache.batik.bridge.CSSUtilities.convertDisplay(CSSUtilities.java:564)
        at
org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:206)
        at 
org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:171)
        at org.apache.batik.bridge.GVTBuilder.build(GVTBuilder.java:82)
        at
org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:208)
        at org.apache.fop.svg.PDFTranscoder.transcode(PDFTranscoder.java:140)
        at
org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:142)
        at
org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:156)
        at de.icongmbh.commons.graphic.svg.SVG.convertToPDF(SVG.java:276)
        at
de.icongmbh.dope.formatter.pdf.utils.SvgExtractor$2.run(SvgExtractor.java:240)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown 
Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

***** CSSEngine: exception....
Exception in thread "pool-2-thread-2" org.w3c.dom.DOMException: :
The attribute "stroke-width" represents an invalid CSS value
("0.7181102362204724").
Original message:

        at
org.apache.batik.css.engine.CSSEngine.getCascadedStyleMap(CSSEngine.java:784)
        at
org.apache.batik.css.engine.CSSEngine.getComputedStyle(CSSEngine.java:876)
        at
org.apache.batik.bridge.CSSUtilities.getComputedStyle(CSSUtilities.java:82)
        at
org.apache.batik.bridge.CSSUtilities.convertDisplay(CSSUtilities.java:564)
        at
org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:206)
        at 
org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:171)
        at org.apache.batik.bridge.GVTBuilder.build(GVTBuilder.java:82)
        at
org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:208)
        at org.apache.fop.svg.PDFTranscoder.transcode(PDFTranscoder.java:140)
        at
org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:142)
        at
org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:156)
        at de.icongmbh.commons.graphic.svg.SVG.convertToPDF(SVG.java:276)
        at
de.icongmbh.dope.formatter.pdf.utils.SvgExtractor$2.run(SvgExtractor.java:240)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown 
Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)


Bugzilla from [email protected] wrote:
> 
> https://issues.apache.org/bugzilla/show_bug.cgi?id=50536
> 
> Helder Magalhães <[email protected]> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Status|NEW                         |NEEDINFO
> 
> --- Comment #1 from Helder Magalhães <[email protected]>
> 2011-01-11 14:50:25 EST ---
> (In reply to comment #0)
>> I am consistently getting following exception when trying to process
>> different
>> documents on multiple threads [...]
> 
> Are you sure to be following the tips at "Writing thread-safe code" [1]?
> 
> If so, then please attach more information (Java version, Java vendor,
> operating system, reduced code snippet, etc.). Otherwise, this is just
> another
> issue needing to be added to the FAQ [2] (if so, would you help creating a
> generic FAQ item for this symptoms? Thanks!).
> 
> 
> [1] http://xmlgraphics.apache.org/batik/using/scripting/java.html#Threads
> [2] http://xmlgraphics.apache.org/batik/faq.html
> 
> -- 
> Configure bugmail:
> https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are the assignee for the bug.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 


--
View this message in context: 
http://batik.2283329.n4.nabble.com/DO-NOT-REPLY-Bug-50536-New-Problem-with-transcoding-SVG-files-on-multiple-threads-tp3171173p3701028.html
Sent from the Batik - Dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to