Hi everyone,

I create PDFs in 10 parallel threads and every now and then I have this
Exception.
Can someone clarify for me what is the problem and how to fix it?
I suspect it is related with parallel usage of same gif image.

java.lang.NullPointerException
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:965)
        at org.apache.fop.apps.Driver.render(Driver.java:424)
        at org.apache.fop.apps.Driver.run(Driver.java:508)
        at
com.skandia.edoc.docgen.common.xml.Transform.getPDF(Transform.java:83)
        at
com.skandia.edoc.docgen.common.doc.Document.transform(Document.java:153)
        at
com.skandia.edoc.docgen.dailyconf.doc.DailyConfirmation.create(DailyConfirma
tion.java:41)
        at
com.skandia.edoc.docgen.common.create.ParallelDocument.run(ParallelDocument.
java:44)
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.processQueue(StreamRenderer.java:213)
        at
org.apache.fop.apps.StreamRenderer.addToRenderQueue(StreamRenderer.java:198)
        at
org.apache.fop.apps.StreamRenderer.queuePage(StreamRenderer.java:183)
        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.SAXParser.endElement(SAXParser.java:1398)
        at
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator
.java:1019)
        at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1256)
        at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:948)
        at org.apache.fop.apps.Driver.render(Driver.java:424)
        at org.apache.fop.apps.Driver.run(Driver.java:508)
        at
com.skandia.edoc.docgen.common.xml.Transform.getPDF(Transform.java:83)
        at
com.skandia.edoc.docgen.common.doc.Document.transform(Document.java:153)
        at
com.skandia.edoc.docgen.dailyconf.doc.DailyConfirmation.create(DailyConfirma
tion.java:41)
        at
com.skandia.edoc.docgen.common.create.ParallelDocument.run(ParallelDocument.
java:44)


Thank you.

Ivaylo


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

Reply via email to