Hi,

 

I've made checkout of fop 0.94 branch and while running examples target from
build, get this:

 

      [fop] D:\eclipse\test\fop-0_94\examples\fo\basic\images.fo ->
D:\eclipse\test\fop-0_94\build\examples\images.pdf

      [fop] [ERROR] AbstractFopImage - Error while loading image (Gif): null
<java.lang.NullPointerException>java.lang.NullPointerException

      [fop] at sun.awt.image.URLImageSource.<init>(URLImageSource.java:43)

      [fop] at sun.awt.image.URLImageSource.<init>(URLImageSource.java:78)

      [fop] at sun.awt.image.URLImageSource.<init>(URLImageSource.java:83)

      [fop] at sun.net.www.content.image.gif.getContent(gif.java:44)

      [fop] at java.net.URLConnection.getContent(URLConnection.java:590)

      [fop] at org.apache.fop.image.GifImage.loadBitmap(GifImage.java:66)

      [fop] at
org.apache.fop.image.AbstractFopImage.load(AbstractFopImage.java:169)

      [fop] at
org.apache.fop.render.pdf.PDFRenderer.putImage(PDFRenderer.java:1721)

      [fop] at
org.apache.fop.render.pdf.PDFRenderer.renderImage(PDFRenderer.java:1652)

      [fop] at
org.apache.fop.render.AbstractRenderer.renderViewport(AbstractRenderer.java:
748)

      [fop] at
org.apache.fop.render.AbstractPathOrientedRenderer.renderViewport(AbstractPa
thOrientedRenderer.java:541)

      [fop] at
org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.jav
a(Compiled Code))

      [fop] at
org.apache.fop.render.pdf.PDFRenderer.renderInlineArea(PDFRenderer.java(Comp
iled Code))

      [fop] at
org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:
606)

      [fop] at
org.apache.fop.render.pdf.PDFRenderer.renderLineArea(PDFRenderer.java:1307)

      [fop] at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:53
2)

      [fop] at
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:582
)

      [fop] at
org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1300)

      [fop] at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:52
2)

      [fop] at
org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:582
)

      [fop] at
org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1300)

      [fop] at
org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:52
2)

      [fop] at
org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:427)

      [fop] at
org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.
java:406)

      [fop] at
org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.jav
a:340)

      [fop] at
org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer
.java:285)

      [fop] at
org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java
:258)

      [fop] at
org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:232)

      [fop] at
org.apache.fop.render.pdf.PDFRenderer.renderPage(PDFRenderer.java:757)

      [fop] at
org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:120)

      [fop] at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLa
youtManager.java:424)

      [fop] at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.makeNewPage(PageSequenceL
ayoutManager.java:377)

      [fop] at
org.apache.fop.layoutmgr.PageBreaker.handleBreakTrait(PageBreaker.java:492)

      [fop] at
org.apache.fop.layoutmgr.PageBreaker.startPart(PageBreaker.java:398)

      [fop] at
org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:420)

      [fop] at
org.apache.fop.layoutmgr.AbstractBreaker.addAreas(AbstractBreaker.java:370)

      [fop] at
org.apache.fop.layoutmgr.PageBreaker.doPhase3(PageBreaker.java:262)

      [fop] at
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:345)

      [fop] at
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:263)

      [fop] at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequen
ceLayoutManager.java:144)

      [fop] at
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:233
)

      [fop] at
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:145)

      [fop] at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:
378)

      [fop] at
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194)

      [fop] at
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerI
dentityImpl.java:1101)

      [fop] at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

      [fop] at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)

      [fop] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown Source)(Compiled Code)

      [fop] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)

      [fop] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)

      [fop] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)

      [fop] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

      [fop] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)

      [fop] at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerId
entityImpl.java:484)

      [fop] at
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:165)

      [fop] at
org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)

      [fop] at
org.apache.fop.tools.anttasks.FOPTaskStarter.render(Fop.java:558)

      [fop] at
org.apache.fop.tools.anttasks.FOPTaskStarter.run(Fop.java:520)

      [fop] at org.apache.fop.tools.anttasks.Fop.execute(Fop.java:297)

      [fop] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

      [fop] at org.apache.tools.ant.Task.perform(Task.java:364)

      [fop] at org.apache.tools.ant.Target.execute(Target.java:341)

      [fop] at org.apache.tools.ant.Target.performTasks(Target.java:369)

      [fop] at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)

      [fop] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)

      [fop] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.j
ava:40)

      [fop] at
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets
(EclipseDefaultExecutor.java:32)

      [fop] at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)

      [fop] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunn
er.java:423)

      [fop] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRun
ner.java:137)

 

Could that be fixed? I think I had similar problems with 0.93, but thought
GIFs were fixed  already in 0.94. In resulting PDF I could see normally all
JPEG/PNG/TIFF images, but not GIFs L.

 

Thanks in advance,

Andrejus

Reply via email to