You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by de...@free.fr on 2004/08/09 10:56:35 UTC
flowscript - pipeline has already been processed...
hi,
i have an IllegalStateException when trying to aggregate a flowscript response
with other xml parts. It says "pipeline has already been processed for this
request".
<map:aggregate element="page">
<map:part src="cocoon://foo.xml"/>
....
<map:aggregate>
where,
<map:match pattern="foo.xml">
<map:call function="foo"/>
</map:match>
<map:match pattern="foo.jx">
<map:generate type="jx" ...>
...
<map:serialize type="xml"/>
</map:match>
what does "the pipeline has already been processed for this request" means
exactly?
thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: flowscript - pipeline has already been processed...
Posted by de...@free.fr.
Quoting Olivier Billard <ol...@laposte.net>:
> Hi,
>
> If you're using the flow, don't forget to set a return after a
> cocoon.sendPage(). Otherwise, the flow continues and may meet a
> cocoon.sendPage again, causing this error.
>
> <wrong-code>
> if (condition) {
> cocoon.sendPage(page1);
> }
> // condition did not match
> cocoon.sendPage(page2)
> <wrong-code>
>
> <good-code>
> if (condition) {
> cocoon.sendPage(page1);
> // exit the function
> return;
> }
> // condition did not match
> cocoon.sendPage(page2)
> <good-code>
>
> HTH,
yes, it helped.
thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: flowscript - pipeline has already been processed...
Posted by Olivier Billard <ol...@laposte.net>.
Hi,
If you're using the flow, don't forget to set a return after a cocoon.sendPage(). Otherwise, the flow continues and may meet a
cocoon.sendPage again, causing this error.
<wrong-code>
if (condition) {
cocoon.sendPage(page1);
}
// condition did not match
cocoon.sendPage(page2)
<wrong-code>
<good-code>
if (condition) {
cocoon.sendPage(page1);
// exit the function
return;
}
// condition did not match
cocoon.sendPage(page2)
<good-code>
HTH,
--
Olivier Billard
defe@free.fr wrote:
> hi,
>
> i have an IllegalStateException when trying to aggregate a flowscript response
> with other xml parts. It says "pipeline has already been processed for this
> request".
>
> <map:aggregate element="page">
> <map:part src="cocoon://foo.xml"/>
> ....
> <map:aggregate>
>
> where,
> <map:match pattern="foo.xml">
> <map:call function="foo"/>
> </map:match>
>
> <map:match pattern="foo.jx">
> <map:generate type="jx" ...>
> ...
> <map:serialize type="xml"/>
> </map:match>
>
>
> what does "the pipeline has already been processed for this request" means
> exactly?
>
> thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org