JACOB, ERIC wrote:

Hi,

It seems that I cannot use the SourceWritingTransformer to write document
that is in use by the pipeline.

I get the following error:

org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
java.lang.RuntimeException: org.apache.cocoon.ProcessingException: Could not
process your document.: java.io.IOException: Could not rename
E:\repos\moria\target\moria\test.xml.tmp to
E:\repos\moria\target\moria\test.xml

I have something like this into the sitemap:

      <map:match pattern="">
        <map:generate src="test.xml"/>
        <map:transform type="tofile"/>
        <map:serialize type="xml"/>
      </map:match>

How I could avoid this?

Are you trying to write to the same file you're reading from? This doesn't work because you're handling with SAX, which means the generator may still read from the file while the transformer already tries to write to it.

-- Andreas


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to