cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard In Public" <edificat...@blueyonder.co.uk>
Subject Continuations in Aggregations?
Date Thu, 27 Mar 2003 16:59:35 GMT
[I originally posted this to cocoon-users but am reposting it after
receiving a suggestion to post it here...]


Hi

I've started (trying) to incorporate FlowScripts/XmlForms into a project.
I'm working from the PetStore example (thanks Upayavira) and have a
paired-down version of the new account form.

This form is served correctly when access directly
(..cocoon/myproj/newAccountForm.do) but causes the following exception when
access from within an aggregate element:

org.apache.cocoon.ProcessingException: Attempted to process incomplete
pipeline.

The relevant parts of my sitemap are below, together with the full stack
trace.

I sure hope that aggregation and continuations are compatible!

Thank you,

Richard Hoberman

<map:match pattern="*.kont">
<map:call continuation="{1}"/>
</map:match>
<map:match pattern="*.do">
<map:call function="main">
<map:parameter name="page" value="{1}"/>
</map:call>
</map:match>

<map:match pattern="page/**.xml">
    <map:aggregate element="page">
        <map:part src="cocoon:/sitemap.xml" />
        <map:part src="cocoon:/newAccountForm.do" />
        <map:part src="cocoon:/data/brands.xml" />
        <map:part src="cocoon:/data/product_categories.xml" />
        <map:part src="cocoon:/{1}.xml" />
    </map:aggregate>
    <map:serialize type="xml" />
</map:match>

<map:match pattern="**.xml">
    <map:generate src="content/static/{1}.xml" />
    <map:serialize type="xml" />
</map:match>

<map:match pattern="**.html">
    <map:generate src="cocoon:/page/{1}.xml" label="rawalty "/>
    <map:transform type="xslt" src="skins/grrl/xsl/form.xsl" label="raw"/>
    <map:transform type="xslt" src="skins/grrl/xsl/xmlform.xsl" />
    <map:transform type="xslt" src="skins/grrl/xsl/main.xsl" />
    <map:transform type="xslt" src="content/xsl/url.xsl">
        <map:parameter name="use-request-parameters" value="true" />
        <map:parameter name="servlet-path" value="{1}" />
    </map:transform>
    <map:serialize type="html" />
</map:match>

org.apache.cocoon.ProcessingException: Attempted to process incomplete
pipeline.

 at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipe
line(AbstractProcessingPipeline.java:499)

 at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.prepareInte
rnal(AbstractProcessingPipeline.java:517)

 at
org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.ja
va:358)

 at
org.apache.cocoon.components.source.impl.SitemapSource.<init>(SitemapSource.
java:220)

 at
org.apache.cocoon.components.source.impl.SitemapSourceFactory.getSource(Site
mapSourceFactory.java:97)

 at
org.apache.excalibur.source.impl.SourceResolverImpl.resolveURI(SourceResolve
rImpl.java:297)

 at
org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonCompone
ntManager.java:455)

 at
org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonCompone
ntManager.java:455)

 at
org.apache.cocoon.environment.AbstractEnvironment.resolveURI(AbstractEnviron
ment.java:488)

 at
org.apache.cocoon.environment.AbstractEnvironment.resolveURI(AbstractEnviron
ment.java:478)

 at
org.apache.cocoon.sitemap.ContentAggregator.setup(ContentAggregator.java:316
)

 at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeli
ne(AbstractProcessingPipeline.java:378)

 at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline
.setupPipeline(AbstractCachingProcessingPipeline.java:596)

 at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipe
line(AbstractProcessingPipeline.java:505)

 at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.prepareInte
rnal(AbstractProcessingPipeline.java:517)

 at
org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.ja
va:358)

 at
org.apache.cocoon.components.source.impl.SitemapSource.<init>(SitemapSource.
java:220)

 at
org.apache.cocoon.components.source.impl.SitemapSourceFactory.getSource(Site
mapSourceFactory.java:97)

 at
org.apache.excalibur.source.impl.SourceResolverImpl.resolveURI(SourceResolve
rImpl.java:297)

 at
org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonCompone
ntManager.java:455)

 at
org.apache.cocoon.environment.AbstractEnvironment.resolveURI(AbstractEnviron
ment.java:488)

 at
org.apache.cocoon.environment.AbstractEnvironment.resolveURI(AbstractEnviron
ment.java:478)

 at org.apache.cocoon.generation.FileGenerator.setup(FileGenerator.java:104)

 at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeli
ne(AbstractProcessingPipeline.java:378)

 at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline
.setupPipeline(AbstractCachingProcessingPipeline.java:596)

 at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipe
line(AbstractProcessingPipeline.java:505)

 at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(Abs
tractProcessingPipeline.java:467)

 at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri
alizeNode.java:145)

 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:84)

 at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:164)

 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:108)

 at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:153)

 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:108)

 at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:143)

 at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:317)

 at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:299)

 at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod
e.java:131)

 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:84)

 at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:164)

 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:108)

 at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:153)

 at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:108)

 at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:143)

 at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:317)

 at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:299)

 at org.apache.cocoon.Cocoon.process(Cocoon.java:639)

 at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1074)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)

 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)

 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)

 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)

 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)

 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)

 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)

 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)

 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)

 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)

 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

 at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)

 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)

 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)

 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)

 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)

 at java.lang.Thread.run(Thread.java:536)



Mime
View raw message