cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Smirnoff" <asmirn...@vistar.ca>
Subject Re: Aggregation Error
Date Tue, 02 Oct 2001 15:48:41 GMT
Oops.. My bad... But I still have an aggregation problem with stream type of
generators:

<map:match pattern="request">
    <map:generate type="stream"/>
    <map:serialize type="xml"/>
</map:match>
<map:match pattern="request/messages">
    <map:aggregate element="Response">
        <map:part src="cocoon:/request"/>
    </map:aggregate>
    <map:serialize type="xml"/>
</map:match>

Exception is:

Exception in StreamGenerator.generate(): java.lang.ClassCastException:
org.apache.cocoon.environment.wrapper.RequestWrapper

Maybe it doesnt inherit the environment from request/messages ? Ideas?

Alex.


----- Original Message -----
From: "Morrison, John" <John.Morrison@uk.experian.com>
To: <cocoon-users@xml.apache.org>
Sent: Tuesday, October 02, 2001 11:28 AM
Subject: RE: Aggregation Error


>
>
> > -----Original Message-----
> > From: Alexander Smirnoff [mailto:asmirnoff@vistar.ca]
> > Sent: Tuesday, 02 October 2001 4:20 pm
> > To: cocoon-users@xml.apache.org
> > Subject: Aggregation Error
> >
> >
> > Hi everyone,
> >
> > Maybe I do not get the idea of pipelines and the aggregation
> > stuff, but this
> > what happens:
> >
> > My sitemap has:
> >
> > <map:pipeline>
> > ....
> >    <map:match pattern="account">
> >        <map:generate src="xsp/account.xsp" type="serverpages"/>
> >        <map:serialize type="xml"/>
> >    </map:match>
> >    <map:match pattern="request/messages">
> >        <map:aggregate element="Response">
> >            <map:part src="cocoon:account"/>
>
> try
>
> <map:part src="cocoon:/account"/>
>
> >        </map:aggregate>
> >        <map:serialize type="xml"/>
> >    </map:match>
> > ....
> > </map:pipeline>
> >
> > When I send http://loalhost:8080/mysite/request/messages
> > cocoon goes wild by
> > giving me Exception:
> >
> > Could not get sitemap source http://localhost:8080/mysite/account:
> > java.lang.NullPointerException,
> >
> > but http://localhost:8080/mysite/account does work fine. Any ideas?
> >
> > Thanks,
> > 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>
> >
>
>
> =======================================================================
> Information in this email and any attachments are confidential, and may
> not be copied or used by anyone other than the addressee, nor disclosed
> to any third party without our permission.  There is no intention to
> create any legally binding contract or other commitment through the use
> of this email.
>
> Experian Limited (registration number 653331).
> Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
>
> ---------------------------------------------------------------------
> 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>
>


---------------------------------------------------------------------
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>


Mime
View raw message