You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Alexander Smirnoff <as...@vistar.ca> on 2001/10/05 16:25:05 UTC

Fw: About connecting pipelines - something is wrong.....

May be this question is better for developer audience ?

----- Original Message -----
From: "Alexander Smirnoff" <as...@vistar.ca>
To: <co...@xml.apache.org>
Sent: Thursday, October 04, 2001 6:18 PM
Subject: About connecting pipelines - something is wrong.....


> Hi evryone,
>
> The same problem still bothering me:
>
> <map:pipeline>
>      <map:match pattern="request/messages">
>            <map:generate src="cocoon:/req"/>
>            <map:serialize type="xml"/>
>      </map:match>
> </map:pipeline>
> <map:pipeline internal-only="true">
>      <map:match pattern="req">
>            <map:generate src="content/xml/cover.xml"/>
>            <map:serialize type="xml"/>
>      </map:match>
> </map:pipeline>
>
> This example works fine, but when I use <map:generate type="stream"/> in
the
> second pipeline I'm getting an error:
org.apache.cocoon.ProcessingException:
> Exception in StreamGenerator.generate(): java.lang.ClassCastException:
> org.apache.cocoon.environment.wrapper.RequestWrapper.
>
> Is this a BUG? Or its just me?
>
> My basic idea is to get request XML from the client, transform it with
XSLT
> into legal XSP, process it in the second pipeline and get it back to the
> client.
>
>
> Alexander Smirnoff
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


AW: About connecting pipelines - something is wrong.....

Posted by Carsten Ziegeler <cz...@sundn.de>.
Hi Alexander,

actually this is a bug and a problem, too!
The stream generator extracts it's information from the
http request. As you use it in the internal pipeline
which is invoked using the cocoon: protocol,
the request for your internap pipeline is actually
no http request anymore, but an internal one!
I justed checked-in a fix for the stream generator
to handle this. Could you please test it?

Carsten

> -----Ursprüngliche Nachricht-----
> Von: Alexander Smirnoff [mailto:asmirnoff@vistar.ca]
> Gesendet: Freitag, 5. Oktober 2001 16:25
> An: cocoon-dev@xml.apache.org
> Betreff: Fw: About connecting pipelines - something is wrong.....
>
>
> May be this question is better for developer audience ?
>
> ----- Original Message -----
> From: "Alexander Smirnoff" <as...@vistar.ca>
> To: <co...@xml.apache.org>
> Sent: Thursday, October 04, 2001 6:18 PM
> Subject: About connecting pipelines - something is wrong.....
>
>
> > Hi evryone,
> >
> > The same problem still bothering me:
> >
> > <map:pipeline>
> >      <map:match pattern="request/messages">
> >            <map:generate src="cocoon:/req"/>
> >            <map:serialize type="xml"/>
> >      </map:match>
> > </map:pipeline>
> > <map:pipeline internal-only="true">
> >      <map:match pattern="req">
> >            <map:generate src="content/xml/cover.xml"/>
> >            <map:serialize type="xml"/>
> >      </map:match>
> > </map:pipeline>
> >
> > This example works fine, but when I use <map:generate type="stream"/> in
> the
> > second pipeline I'm getting an error:
> org.apache.cocoon.ProcessingException:
> > Exception in StreamGenerator.generate(): java.lang.ClassCastException:
> > org.apache.cocoon.environment.wrapper.RequestWrapper.
> >
> > Is this a BUG? Or its just me?
> >
> > My basic idea is to get request XML from the client, transform it with
> XSLT
> > into legal XSP, process it in the second pipeline and get it back to the
> > client.
> >
> >
> > Alexander Smirnoff
> >
> >
> > ---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <co...@xml.apache.org>
> > For additional commands, e-mail: <co...@xml.apache.org>
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org