forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Turner <je...@apache.org>
Subject Re: width_pdf_images branch
Date Fri, 21 Mar 2003 04:49:31 GMT
On Thu, Mar 20, 2003 at 05:41:32PM -0400, Sergey Missan wrote:
> follow up:
> 
> Forrest CLI dies with jars from width_pdf_images branch:

How did you 'upgrade'?  I only branched 3 files, not everything, so it
should be done with:

cd lib/core
cvs up -r with_pdf_images fop-20030320.jar cocoon-20030311.jar \
 cocoon-fop-block-20030311.jar
cp ~/Jimi/JimiProClasses.zip jimi-1.0.jar
rm fop-0.20.4.jar

I've added an etc/get_fop_images.sh script to automate some of this.

> Uncaught error fetching image:
> java.lang.NullPointerException
>         at sun.awt.image.URLImageSource.getConnection(URLImageSource.java:99)
>         at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:108)
>         at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.j
> ava:251)
>         at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:168)
>         at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)
> 
> 
> Is this one of those "non-harmful NPEs" ? :)

No, on the command-line, I see errors like:

 * [0] faq.pdf
java.lang.RuntimeException: java.lang.NullPointerException
        at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3407)
        at java.lang.Thread.run(Thread.java:536)


In the error log (build/tmp/context/WEB-INF/logs/error.log) I see:


FATAL_E (2003-03-21) 12:52.22:870   [core.xslt-processor] (Unknown-URI) Unknown-thread/TraxErrorHandler:
Error in TraxTransformer: file:/home/jeff/apache/xml/xml-forrest/build/tmp/context/skins/forrest-site/xslt/fo/../../../common/xslt/fo/document2fo.xsl;
Line 13; Column 59;
; SystemID: file:/home/jeff/apache/xml/xml-forrest/build/tmp/context/skins/forrest-site/xslt/fo/../../../common/xslt/fo/document2fo.xsl;
Line#: 13; Column#: 59
javax.xml.transform.TransformerException: java.lang.NullPointerException
  at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2344)
  at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2160)
  at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1213)
  at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3372)
  at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.NullPointerException
  at org.apache.fop.fo.flow.BasicLink.addLayoutManager(BasicLink.java:101)
  at org.apache.fop.layoutmgr.LMiter.preLoadNext(LMiter.java:84)
  at org.apache.fop.layoutmgr.LMiter.hasNext(LMiter.java:74)
  at org.apache.fop.layoutmgr.BlockLayoutManager$BlockLMiter.preLoadNext(BlockLayoutManager.java:102)
  at org.apache.fop.layoutmgr.LMiter.hasNext(LMiter.java:74)
  at org.apache.fop.layoutmgr.AbstractLayoutManager.getChildLM(AbstractLayoutManager.java:178)
  at org.apache.fop.layoutmgr.BlockLayoutManager.getNextBreakPoss(BlockLayoutManager.java:184)
  at org.apache.fop.layoutmgr.BlockLayoutManager.getNextBreakPoss(BlockLayoutManager.java:204)
  at org.apache.fop.layoutmgr.FlowLayoutManager.getNextBreakPoss(FlowLayoutManager.java:110)
  at org.apache.fop.layoutmgr.PageLayoutManager.getNextBreakPoss(PageLayoutManager.java:226)
  at org.apache.fop.layoutmgr.PageLayoutManager.doLayout(PageLayoutManager.java:193)
  at org.apache.fop.layoutmgr.PageLayoutManager.run(PageLayoutManager.java:173)
  at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:390)
  at org.apache.fop.apps.LayoutHandler.endPageSequence(LayoutHandler.java:268)
  at org.apache.fop.fo.pagination.PageSequence.end(PageSequence.java:351)
  at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:169)
  at org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)


Quite possibly this is because of untransformed href="site:..." links in the PDF.

> I added jimi.jar into Web-inf/lib

Only if you're testing from a webapp.

--Jeff

> -- Sergey
> 
> 

Mime
View raw message