DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13699>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13699

PDF-Renderer Not Threadsafe

           Summary: PDF-Renderer Not Threadsafe
           Product: Fop
           Version: 0.20.1
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: pdf renderer
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Starting the method driver.run() within many threads may cause an exception, if 
images (gif/jpg) are embbeded. 

Workaround: Be sure to catch Throwable and re-new Driver

Stacktrace:

java.lang.NullPointerException
        at org.apache.fop.image.GifJpegImage.loadImage(GifJpegImage.java:131)
        at org.apache.fop.image.AbstractFopImage.getBitmaps
(AbstractFopImage.java:212)
        at org.apache.fop.pdf.PDFXObject.output(PDFXObject.java:67)
        at org.apache.fop.pdf.PDFDocument.output(PDFDocument.java:1137)
        at org.apache.fop.render.pdf.PDFRenderer.render(PDFRenderer.java:694)
        at org.apache.fop.apps.StreamRenderer.queuePage(StreamRenderer.java:181)
        at org.apache.fop.layout.AreaTree.addPage(AreaTree.java:81)
        at org.apache.fop.fo.pagination.PageSequence.format
(PageSequence.java:306)
        at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:166)
        at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:155)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement
(Unknown Source)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.
dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
(Unknown Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.fop.apps.Driver.render(Driver.java:424)
        at org.apache.fop.apps.Driver.run(Driver.java:508)
        at Converter.run(Converter.java:123) 

Regards,
Joachim

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

Reply via email to