xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kiran (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FOP-2661) Not able to create Page Segment for AFP
Date Mon, 07 Nov 2016 06:19:58 GMT
Kiran created FOP-2661:
--------------------------

             Summary: Not able to create Page Segment for AFP
                 Key: FOP-2661
                 URL: https://issues.apache.org/jira/browse/FOP-2661
             Project: FOP
          Issue Type: Bug
          Components: image/png
    Affects Versions: 2.1
            Reporter: Kiran


Hi ,

I am trying to create Page segment while rendendering AFP for a BMP image but getting below
exception

ava.lang.RuntimeException: org.apache.fop.render.intermediate.IFException: Coul
d not handle resourcefile:D://Apps//fop-2.1-src//fop-2.1//sampimage.PSG
        at org.apache.fop.render.intermediate.IFRenderer.handleIFException(IFRen
derer.java:195)
        at org.apache.fop.render.intermediate.IFRenderer.drawImage(IFRenderer.ja
va:1299)
        at org.apache.fop.render.intermediate.IFRenderer.renderImage(IFRenderer.
java:1283)
        at org.apache.fop.render.AbstractRenderer.renderInlineViewport(AbstractR
enderer.java:858)
        at org.apache.fop.render.AbstractPathOrientedRenderer.renderInlineViewpo
rt(AbstractPathOrientedRenderer.java:832)
        at org.apache.fop.render.intermediate.IFRenderer.renderInlineViewport(IF
Renderer.java:864)
        at org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRende
rer.java:715)
        at org.apache.fop.render.intermediate.IFRenderer.renderInlineArea(IFRend
erer.java:928)
        at org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRendere
r.java:690)
        at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.
java:572)
        at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.j
ava:613)
        at org.apache.fop.render.intermediate.IFRenderer.renderBlock(IFRenderer.
java:1000)
        at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.
java:557)
        at org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.ja
va:457)
        at org.apache.fop.render.AbstractPathOrientedRenderer.renderFlow(Abstrac
tPathOrientedRenderer.java:785)
        at org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRe
nderer.java:434)
        at org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRende
rer.java:358)
        at org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractR
enderer.java:305)
        at org.apache.fop.render.intermediate.IFRenderer.renderRegionViewport(IF
Renderer.java:739)
        at org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRender
er.java:270)
        at org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.ja
va:243)
        at org.apache.fop.render.intermediate.IFRenderer.renderPage(IFRenderer.j
ava:587)
        at org.apache.fop.area.RenderPagesModel.renderPage(RenderPagesModel.java
:193)
        at org.apache.fop.area.RenderPagesModel.checkPreparedPages(RenderPagesMo
del.java:174)
        at org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:14
6)
        at org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage
(AbstractPageSequenceLayoutManager.java:315)
        at org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSeq
uenceLayoutManager.java:216)
        at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(Pag
eSequenceLayoutManager.java:140)
        at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.j
ava:267)
        at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java
:130)
        at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilde
r.java:360)
        at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:190)
        at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(Trans
formerIdentityImpl.java:1102)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source
)
        at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source)

        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknow
n Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Sour
ce)
        at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf
ormerIdentityImpl.java:485)
        at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:285)
        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
        at org.apache.fop.cli.Main.startFOP(Main.java:186)
        at org.apache.fop.cli.Main.main(Main.java:217)
Caused by: org.apache.fop.render.intermediate.IFException: Could not handle reso
urcefile:D://Apps//fop-2.1-src//fop-2.1//sampimage.PSG
        at org.apache.fop.render.afp.AFPPainter.drawImage(AFPPainter.java:236)
        at org.apache.fop.render.intermediate.IFRenderer.drawImage(IFRenderer.ja
va:1296)
        ... 46 more
Caused by: java.io.IOException: Requested resource 'OEG00021' not found. Encount
ered resource names: [1       ,         , IBMAFP  ]
        at org.apache.fop.afp.util.AFPResourceUtil.copyNamedResource(AFPResource
Util.java:144)
        at org.apache.fop.afp.AFPResourceManager$1.writeContent(AFPResourceManag
er.java:502)
        at org.apache.fop.afp.modca.AbstractStructuredObject.writeToStream(Abstr
actStructuredObject.java:66)
        at org.apache.fop.afp.modca.StreamedResourceGroup.addObject(StreamedReso
urceGroup.java:61)
        at org.apache.fop.afp.AFPResourceManager.createIncludedResourceFromExter
nal(AFPResourceManager.java:515)
        at org.apache.fop.render.afp.AFPPainter.drawImage(AFPPainter.java:229)
        ... 47 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message