cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Billard <olivier.billard.coc...@laposte.net>
Subject Re: flowscript - pipeline has already been processed...
Date Mon, 09 Aug 2004 10:53:24 GMT
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


Mime
View raw message