You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Alexander Petrov <pe...@sigma.ispras.ru> on 2001/08/16 14:01:33 UTC

[C2] cache XInclude problem (fwd)

Sorry for sending this again;
I wasn't subscribed to mailing list and, maybe, lost
some reply on my message.
If so, can anyone reply once more ?

and, by the way, how can I access most recent messages ?
cocooun-users-index seems not working :(

---------- Forwarded message ----------
Date: Wed, 15 Aug 2001 20:48:25 +0400 (MSK/MSD)
From: Alexander Petrov <pe...@sigma.ispras.ru>
To: cocoon-users@xml.apache.org
Subject: [C2] cache XInclude problem

I use Apache Cocoon 2.0b2 on Tomcat 3.2.3, Linux.

sitemap contains:
   <map:match pattern="info">
     <map:generate src="info.xml"/>
     <map:transform type="xinclude"/>
     <map:transform src="info.xsl"/>
     <map:serialize/>
   </map:match>

info.xml contains:
<?xml version="1.0"?>

<page>
<xinclude:include xmlns:xinclude="http://www.w3.org/2001/XInclude"
href="a.xml" parse="xml"/>
</page>

First time accessed "info" outputs fine results.
Next time, Cocoon2 returns 404 code; cocoon.log contains

org.apache.cocoon.ProcessingException: Failed to execute pipeline.:java.lang.NullPointerException
        at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:189)
        
and plenty lines of stack trace.

I don't want to refuse from caching, because result of this xinclude
is going to be compiled as XSP.

what should I do : use map:aggregate instead or fix this somehow ?

/Alexander




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