forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Schaefer <johannes.schae...@uidesign.de>
Subject Re: FOP infinite loop
Date Mon, 07 May 2007 06:37:40 GMT
C.Grobmeier schrieb:
> Hi,
>
> i have images in */resources/images and when i call my site as html, it works, as single
pdf it works too, but when i try wholesite.pdf i get this error:
>
> "No meaningful layout in block after many attempts.  Infinite loop is assumed.  Processing
halted."
>   
This is because FOP does not scale "high" images (definition of "high"
varies).
See
  http://issues.apache.org/jira/browse/FOR-413

Workaround:
1. Scale your image down
2. make your image larger by inserting white space to the right
   (FOP seems to scale down "broad" images)

To locate the insulting image enable the pdf link for each page in
skinconf.xml and do a 'forrest site' (read the error messages).

Hope this helps
Johannes

> Dont know why thsi happens.. .any idea?
> Cheers
> Chris.
>
> In the error-log:
> RROR   (2007-03-09) 14:33.40:459   [access] (/wholesite.pdf) PoolThread-4/CocoonServlet:
Internal Cocoon Problem
> org.apache.cocoon.ProcessingException: Failed to process pipeline
> 	at <map:serialize type="xml"> - file:/C:/dev/tools/forrest/trunk/main/webapp/sitemap.xmap:675:36
> 	at <map:transform> - file:/C:/dev/tools/forrest/trunk/main/webapp/sitemap.xmap:669:61
> 	at <map:transform type="linkrewriter"> - file:/C:/dev/tools/forrest/trunk/main/webapp/sitemap.xmap:668:82
> 	at <map:transform type="xinclude"> - file:/C:/dev/tools/forrest/trunk/main/webapp/sitemap.xmap:667:45
> 	at <map:serialize type="fo2pdf"> - file:/C:/dev/tools/forrest/trunk/build/plugins/org.apache.forrest.plugin.output.pdf/output.xmap:40:43
> 	at <map:generate> - file:/C:/dev/tools/forrest/trunk/build/plugins/org.apache.forrest.plugin.output.pdf/output.xmap:39:53
> 	at <map:mount> - file:/C:/dev/modules/documentation-trunk/documentation-trunk/build/tmp/output.xmap:33:147
> 	at <map:mount> - file:/C:/dev/tools/forrest/trunk/main/webapp/sitemap.xmap:613:106
> 	at org.apache.cocoon.ProcessingException.throwLocated(ProcessingException.java:144)
> 	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.handleException(AbstractProcessingPipeline.java:894)
> 	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:541)
> 	at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:174)
> 	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:722)
> 	at org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.java:347)
> 	at org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:97)
> 	at org.apache.cocoon.components.source.SourceUtil.parse(SourceUtil.java:276)
> 	at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:118)
> 	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:530)
> 	at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:174)
> 	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:437)
> 	at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:137)
> 	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:77)
> 	at org.apache.cocoon.components.treeprocessor.sitemap.SelectNode.invoke(SelectNode.java:86)
> 	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:55)
> 	at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:116)
> 	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:77)
> 	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:155)
> 	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:77)
> 	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:95)
> 	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:292)
> 	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:223)
> 	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:289)
> 	at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:114)
> 	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:77)
> 	at org.apache.cocoon.components.treeprocessor.sitemap.SelectNode.invoke(SelectNode.java:81)
> 	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:77)
> 	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:155)
> 	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:77)
> 	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:95)
> 	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:292)
> 	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:223)
> 	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:289)
> 	at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:114)
> 	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:77)
> 	at org.apache.cocoon.components.treeprocessor.sitemap.SelectNode.invoke(SelectNode.java:81)
> 	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:77)
> 	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:155)
> 	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:77)
> 	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:95)
> 	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:292)
> 	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:223)
> 	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:289)
> 	at org.apache.cocoon.Cocoon.process(Cocoon.java:557)
> 	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:364)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:354)
> 	at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
> 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
> 	at org.mortbay.http.HttpContext.handle(HttpContext.java:1808)
> 	at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
> 	at org.mortbay.http.HttpContext.handle(HttpContext.java:1758)
> 	at org.mortbay.http.HttpServer.service(HttpServer.java:879)
> 	at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
> 	at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:952)
> 	at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
> 	at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:197)
> 	at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
> 	at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:501)
> Caused by: org.apache.fop.apps.FOPException: No meaningful layout in block after many
attempts.  Infinite loop is assumed.  Processing halted.
> 	at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:264)
> 	at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223)
> 	at org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:111)
> 	at org.apache.cocoon.environment.internal.EnvironmentChanger.endElement(EnvironmentStack.java:147)
> 	at org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:261)
> 	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1399)
> 	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
> 	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
> 	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
> 	at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2281)
> 	at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1367)
> 	at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3458)
> 	at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:406)
> 	at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
> 	at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:585)
> 	at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
> 	at org.apache.cocoon.transformation.AbstractSAXTransformer.endDocument(AbstractSAXTransformer.java:377)
> 	at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
> 	at org.apache.cocoon.transformation.XIncludeTransformer$XIncludePipe.endDocument(XIncludeTransformer.java:184)
> 	at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
> 	at org.apache.cocoon.sitemap.DefaultContentAggregator.generate(DefaultContentAggregator.java:135)
> 	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:537)
> 	... 57 more
> Caused by: org.apache.fop.apps.FOPException: No meaningful layout in block after many
attempts.  Infinite loop is assumed.  Processing halted.
> 	at org.apache.fop.fo.flow.Block.layout(Block.java:140)
> 	at org.apache.fop.fo.flow.Block.layout(Block.java:257)
> 	at org.apache.fop.fo.flow.Block.layout(Block.java:257)
> 	at org.apache.fop.fo.flow.Block.layout(Block.java:257)
> 	at org.apache.fop.fo.flow.Block.layout(Block.java:257)
> 	at org.apache.fop.fo.flow.Block.layout(Block.java:257)
> 	at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154)
> 	at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110)
> 	at org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:400)
> 	at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:338)
> 	at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262)
> 	... 78 more
>
>
>
>   

-- 
User Interface Design GmbH, Ludwigsburg, Germany
Phone/Fax  +49 7141 37700-46/-99, Mobile +49 170 4914567
E-mail johannes.schaefer@uidesign.de * www.uidesign.de

Offices:
Teinacher Strasse 38, D-71634 Ludwigsburg
Truderinger Strasse 330, D-81825 Muenchen 
Friedrichsring 46, D-68161 Mannheim

Legal information according to EHUG:
User Interface Design GmbH; Managing Directors: Dr. Claus Goerner, 
Franz Koller; Head office: Ludwigsburg; Commercial register of the
local court of Stuttgart, Germany, HRB 205519


Mime
View raw message