cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ugo Cei <>
Subject Re: Internal Pipeline Reader error
Date Mon, 13 Sep 2004 16:40:33 GMT
Il giorno 13/set/04, alle 18:34, Norman Barker ha scritto:

> I am trying to include data from a reader within a CInclude template, 
> however when I do
> I get the following error,
> java.lang.RuntimeException: org.apache.cocoon.ProcessingException: 
> Streaming of an internal pipeline is not possible with a reader.
> Can someone give me an idea of how to fix this?  If a reader is a 
> static resource I should be able to
> call it at any time?

A reader does not produce a stream of SAX events, rather a stream of 
bytes and you cannot CInclude those. Change

<map:read src="file.xml"/>


<map:generate src="file.xml"/>
<map:serialize type="xml"/>


Ugo Cei -

View raw message