You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Arnaud Vandyck <ar...@ulg.ac.be> on 2002/03/13 12:17:53 UTC

Aggregation problem

Hi all,

I have these entries in a sub-sitemap:

      <map:match pattern="autolayout.xml">
        <map:read src="docs2/autolayout.xml" mime-type="text/xml"></map:read>
		<map:serialize type="xml" />
	  </map:match>

      <map:match pattern="test.xml">
        <map:aggregate element="site">
          <map:part src="cocoon:/autolayout.xml" />
          <map:part src="cocoon:/coco.xml" />
        </map:aggregate>
        <map:serialize type="xml" />
      </map:match>

      <map:match pattern="**.xml">
        <map:read src="docs2/{1}.xml" mime-type="text/xml"></map:read>
		<map:serialize type="xml" />
	  </map:match>

Accessing autolayout.xml  and index.xml  (first and last  entries) are
OK. But the aggregation fails:

$ lynx -source http://localhost/cocoon/ste/test.xml

<?xml version="1.0" encoding="UTF-8"?>
<site>
  <autolayout/>
</site>
<html>
  <head><title>Internal server error</title>
    <STYLE>
  <!--H1{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;}
      BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-color : white;}
      B{color : white;background-color : #0086b2;} HR{color : #0086b2;} -->
    </STYLE>
  </head>
  <body>
  <h1>Cocoon 2 - Internal server error</h1>
  <HR size="1" noshade>
  <p><b>type</b> internal-server-error</p>
  <p><b>message</b> <u>Attempted to process incomplete pipeline.</u></p>
  <p><b>description</b> <u>org.apache.cocoon.ProcessingException: Attempted to process incomplete pipeline.</u></p>
  <p><b>sender</b> org.apache.cocoon.servlet.CocoonServlet</p><p><b>source</b> Cocoon servlet</p>
  <p><b>request-uri</b><pre>/cocoon/ste/test.xml</pre></p>
  <p><b>exception</b><pre>org.apache.cocoon.ProcessingException: Attempted to process incomplete pipeline.</pre></p>
  <p><b>path-info</b><pre>ste/test.xml</pre></p>
  <p><b>stacktrace</b><pre>org.apache.cocoon.ProcessingException: Attempted to process incomplete pipeline. 
	at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:235)
	at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:99)
	at org.apache.cocoon.components.source.SitemapSource.refresh(SitemapSource.java:240)
	at org.apache.cocoon.components.source.SitemapSource.<init>(SitemapSource.java:152)
	at org.apache.cocoon.components.source.CocoonSourceFactory.getSource(CocoonSourceFactory.java:54)
	at org.apache.cocoon.components.source.SourceHandlerImpl.getSource(SourceHandlerImpl.java:133)
	at org.apache.cocoon.environment.AbstractEnvironment.resolve(AbstractEnvironment.java:272)
	at org.apache.cocoon.sitemap.ContentAggregator.setup(ContentAggregator.java:242)
	at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:142)
	at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:239)
	at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:99)
	at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:277)
	at org.apache.cocoon.www.ste.sitemap_xmap.wildcardMatchN400065(sitemap_xmap.java:816)
	at org.apache.cocoon.www.ste.sitemap_xmap.process(sitemap_xmap.java:535)
	at org.apache.cocoon.www.ste.sitemap_xmap.process(sitemap_xmap.java:483)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
	at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN400225(sitemap_xmap.java:3394)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2621)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2523)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:647)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
	at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
	at java.lang.Thread.run(Thread.java:484)
</pre></p>
    <HR size="1" noshade>
  </body>
</html>

Thanks for any help

-- Arnaud http://vbstefi60.fapse.ulg.ac.be/

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


Aggregation solution [was Re: Aggregation problem]

Posted by Arnaud Vandyck <ar...@ulg.ac.be>.
"Vadim Gritsenko" <va...@verizon.net> wrote:

> > From: KOZLOV Roman [mailto:r-kozlov@opencascade.com]
> > 
> > Hi Arnaud,
> > 
> > It is necessary to define element for each map:part also:
> >           <map:part src="cocoon:/autolayout.xml" element="uuu"/>
> >           <map:part src="cocoon:/coco.xml" element="ooo"/>
> 
> This is *not* necessary.

See the documentation examples in cocoon  (you also do not need to add
the namespace argument)...

> > Arnaud Vandyck wrote:
> > 
> > > Hi all,
> > >
> > > I have these entries in a sub-sitemap:
> > >
> > >       <map:match pattern="autolayout.xml">
> > >         <map:read src="docs2/autolayout.xml" mime-
> > type="text/xml"></map:read>
> > >                 <map:serialize type="xml" />
> 
> This is invalid pipeline. When you use <map:read/>, you can not use
> serializer. And, IIRC, pipeline with the map:read can not be aggregated.
> Try map:generate instead (with map:serialize).

... but I missed this! 

Thank you Vadim, it works fine.

-- Arnaud http://vbstefi60.fapse.ulg.ac.be/

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


RE: Aggregation problem

Posted by Vadim Gritsenko <va...@verizon.net>.
> From: KOZLOV Roman [mailto:r-kozlov@opencascade.com]
> 
> Hi Arnaud,
> 
> It is necessary to define element for each map:part also:
>           <map:part src="cocoon:/autolayout.xml" element="uuu"/>
>           <map:part src="cocoon:/coco.xml" element="ooo"/>

This is *not* necessary.


>     Best regards.
>         Roman
> 
> Arnaud Vandyck wrote:
> 
> > Hi all,
> >
> > I have these entries in a sub-sitemap:
> >
> >       <map:match pattern="autolayout.xml">
> >         <map:read src="docs2/autolayout.xml" mime-
> type="text/xml"></map:read>
> >                 <map:serialize type="xml" />

This is invalid pipeline. When you use <map:read/>, you can not use
serializer. And, IIRC, pipeline with the map:read can not be aggregated.
Try map:generate instead (with map:serialize).

Vadim

> >           </map:match>
> >
> >       <map:match pattern="test.xml">
> >         <map:aggregate element="site">
> >           <map:part src="cocoon:/autolayout.xml" />
> >           <map:part src="cocoon:/coco.xml" />
> >         </map:aggregate>
> >         <map:serialize type="xml" />
> >       </map:match>
> >
> >       <map:match pattern="**.xml">
> >         <map:read src="docs2/{1}.xml"
mime-type="text/xml"></map:read>
> >                 <map:serialize type="xml" />
> >           </map:match>
> >
> > Accessing autolayout.xml  and index.xml  (first and last  entries)
are
> > OK. But the aggregation fails:
> >
> > $ lynx -source http://localhost/cocoon/ste/test.xml
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <site>
> >   <autolayout/>
> > </site>
> > <html>
> >   <head><title>Internal server error</title>
> >     <STYLE>
> >   <!--H1{font-family : sans-serif,Arial,Tahoma;color :
white;background-
> color : #0086b2;}
> >       BODY{font-family : sans-serif,Arial,Tahoma;color :
black;background-
> color : white;}
> >       B{color : white;background-color : #0086b2;} HR{color :
#0086b2;} -->
> >     </STYLE>
> >   </head>
> >   <body>
> >   <h1>Cocoon 2 - Internal server error</h1>
> >   <HR size="1" noshade>
> >   <p><b>type</b> internal-server-error</p>
> >   <p><b>message</b> <u>Attempted to process incomplete
pipeline.</u></p>


<snip/>


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


Re: Aggregation problem

Posted by KOZLOV Roman <r-...@opencascade.com>.
Hi Arnaud,

It is necessary to define element for each map:part also:
          <map:part src="cocoon:/autolayout.xml" element="uuu"/>
          <map:part src="cocoon:/coco.xml" element="ooo"/>

    Best regards.
        Roman

Arnaud Vandyck wrote:

> Hi all,
>
> I have these entries in a sub-sitemap:
>
>       <map:match pattern="autolayout.xml">
>         <map:read src="docs2/autolayout.xml" mime-type="text/xml"></map:read>
>                 <map:serialize type="xml" />
>           </map:match>
>
>       <map:match pattern="test.xml">
>         <map:aggregate element="site">
>           <map:part src="cocoon:/autolayout.xml" />
>           <map:part src="cocoon:/coco.xml" />
>         </map:aggregate>
>         <map:serialize type="xml" />
>       </map:match>
>
>       <map:match pattern="**.xml">
>         <map:read src="docs2/{1}.xml" mime-type="text/xml"></map:read>
>                 <map:serialize type="xml" />
>           </map:match>
>
> Accessing autolayout.xml  and index.xml  (first and last  entries) are
> OK. But the aggregation fails:
>
> $ lynx -source http://localhost/cocoon/ste/test.xml
>
> <?xml version="1.0" encoding="UTF-8"?>
> <site>
>   <autolayout/>
> </site>
> <html>
>   <head><title>Internal server error</title>
>     <STYLE>
>   <!--H1{font-family : sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;}
>       BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-color : white;}
>       B{color : white;background-color : #0086b2;} HR{color : #0086b2;} -->
>     </STYLE>
>   </head>
>   <body>
>   <h1>Cocoon 2 - Internal server error</h1>
>   <HR size="1" noshade>
>   <p><b>type</b> internal-server-error</p>
>   <p><b>message</b> <u>Attempted to process incomplete pipeline.</u></p>
>   <p><b>description</b> <u>org.apache.cocoon.ProcessingException: Attempted to process incomplete pipeline.</u></p>
>   <p><b>sender</b> org.apache.cocoon.servlet.CocoonServlet</p><p><b>source</b> Cocoon servlet</p>
>   <p><b>request-uri</b><pre>/cocoon/ste/test.xml</pre></p>
>   <p><b>exception</b><pre>org.apache.cocoon.ProcessingException: Attempted to process incomplete pipeline.</pre></p>
>   <p><b>path-info</b><pre>ste/test.xml</pre></p>
>   <p><b>stacktrace</b><pre>org.apache.cocoon.ProcessingException: Attempted to process incomplete pipeline.
>         at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:235)
>         at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:99)
>         at org.apache.cocoon.components.source.SitemapSource.refresh(SitemapSource.java:240)
>         at org.apache.cocoon.components.source.SitemapSource.<init>(SitemapSource.java:152)
>         at org.apache.cocoon.components.source.CocoonSourceFactory.getSource(CocoonSourceFactory.java:54)
>         at org.apache.cocoon.components.source.SourceHandlerImpl.getSource(SourceHandlerImpl.java:133)
>         at org.apache.cocoon.environment.AbstractEnvironment.resolve(AbstractEnvironment.java:272)
>         at org.apache.cocoon.sitemap.ContentAggregator.setup(ContentAggregator.java:242)
>         at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:142)
>         at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:239)
>         at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:99)
>         at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:277)
>         at org.apache.cocoon.www.ste.sitemap_xmap.wildcardMatchN400065(sitemap_xmap.java:816)
>         at org.apache.cocoon.www.ste.sitemap_xmap.process(sitemap_xmap.java:535)
>         at org.apache.cocoon.www.ste.sitemap_xmap.process(sitemap_xmap.java:483)
>         at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
>         at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
>         at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN400225(sitemap_xmap.java:3394)
>         at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2621)
>         at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2523)
>         at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
>         at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
>         at org.apache.cocoon.Cocoon.process(Cocoon.java:514)
>         at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:647)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
>         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
>         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
>         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
>         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
>         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
>         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
>         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
>         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
>         at java.lang.Thread.run(Thread.java:484)
> </pre></p>
>     <HR size="1" noshade>
>   </body>
> </html>
>
> Thanks for any help
>
> -- Arnaud http://vbstefi60.fapse.ulg.ac.be/
>
> ---------------------------------------------------------------------
> 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>


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