cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@sundn.de>
Subject AW: About connecting pipelines - something is wrong.....
Date Mon, 08 Oct 2001 07:24:11 GMT
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" <asmirnoff@vistar.ca>
> To: <cocoon-users@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: <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail: <cocoon-users-help@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


Mime
View raw message