xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Meyer (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FOP-1278) PNG causes NPE for RTF output
Date Mon, 03 Jun 2013 14:53:20 GMT

     [ https://issues.apache.org/jira/browse/FOP-1278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Robert Meyer updated FOP-1278:

    Attachment: test.fo

I know this is an old bug, but thought I'd just investigate to see whether this is still reproducible
and if it's worth keeping this open. I have attached the following FO and am not getting the
NPE for which this bug was originally raised for. It now creates the RTF without error, however
if you open the RTF instead of finding the image, some text in the RTF is written as the following:

"org.apache.fop.render.rtf.rtflib.rtfdoc.RtfExternalGraphic$ExternalGraphicException org.apache.fop.render.rtf.rtflib.rtfdoc.RtfExternalGraphic$ExternalGraphicException:
The tag <fo:external-graphic> does not support png - image type."

I guess that means this can be closed?
> PNG causes NPE for RTF output
> -----------------------------
>                 Key: FOP-1278
>                 URL: https://issues.apache.org/jira/browse/FOP-1278
>             Project: Fop
>          Issue Type: Bug
>          Components: rtf
>    Affects Versions: trunk
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Chris Bowditch
>         Attachments: moon.png, test.fo
> Attached PNG causes a NPE when rendering to RTF. Submitted by Dominic Brugger 
> (brugger.at.puzzle.ch) Stack trace below:
> SEVERE: Error while handling an external-graphic: null
> java.lang.NullPointerException
>         at org.apache.commons.io.IOUtils.copy(IOUtils.java:920)
>         at org.apache.commons.io.IOUtils.toByteArray(IOUtils.java:215)
>         at org.apache.fop.image.AbstractFopImage.loadDefaultOriginalData
> (AbstractFopImage.java:223)
>         at org.apache.fop.image.ImageIOImage.loadOriginalData
> (ImageIOImage.java:217)
>         at org.apache.fop.image.AbstractFopImage.load
> (AbstractFopImage.java:174)
>         at org.apache.fop.render.rtf.RTFHandler.image(RTFHandler.java:1131)
>         at org.apache.fop.render.rtf.RTFHandler.invokeDeferredEvent
> (RTFHandler.java:1492)
>         at org.apache.fop.render.rtf.RTFHandler.recurseFONode
> (RTFHandler.java:1616)
>         at org.apache.fop.render.rtf.RTFHandler.recurseFONode
> (RTFHandler.java:1687)
>         at org.apache.fop.render.rtf.RTFHandler.recurseFONode
> (RTFHandler.java:1687)
>         at org.apache.fop.render.rtf.RTFHandler.recurseFONode
> (RTFHandler.java:1639)
>         at org.apache.fop.render.rtf.RTFHandler.endPageSequence
> (RTFHandler.java:

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message