cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Answer <A.Nuzh...@ftc.ru>
Subject XIncludeTransformer still not working
Date Fri, 28 Sep 2001 06:05:20 GMT
Hello cocoon-dev,

  Inside C2rc1 XIncludeTransformer still not working.
  I do this:

  index.xsp:
<xsp:page
 xmlns:xsp="http://apache.org/xsp"
 xmlns:xinclude="http://www.w3.org/2001/XInclude">
<page>
   <xinclude:include href="menu.xml"/>
</page>
</xsp:page>

sitemap.xmap:
   <map:match pattern="*.xsp">
    <map:generate type="serverpages" src="docs/{1}.xsp"/>
    <map:transform type="xinclude"/>
    <map:transform src="stylesheets/index.xsl"/>
    <map:serialize/>
   </map:match>

   But error occured:
 [
org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.NullPointerException
        at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenerator.java:187)

        at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:214)

        at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:364)

        at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN189(sitemap_xmap.java:1517) 
        at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:841) 
        at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:763) 
        at org.apache.cocoon.sitemap.Handler.process(Handler.java:163) 
        at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:115) 
        at org.apache.cocoon.Cocoon.process(Cocoon.java:446) 
        at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:520) 
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:103) 
        at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:82)

        at com.caucho.server.http.Invocation.service(Invocation.java:277) 
        at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:129) 
        at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:216) 
        at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:158) 
        at com.caucho.server.TcpConnection.run(TcpConnection.java:140) 
        at java.lang.Thread.run(Thread.java:484) 
java.lang.NullPointerException 
        at org.apache.cocoon.transformation.XIncludeTransformer.processXIncludeElement(XIncludeTransformer.java:212)

        at org.apache.cocoon.transformation.XIncludeTransformer.startElement(XIncludeTransformer.java:127)

        at org.apache.cocoon.generation.ServerPagesGenerator.startElement(ServerPagesGenerator.java:316)

        at org.apache.cocoon.www.docs.index2_xsp.generate(index2_xsp.java) 
        at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenerator.java:175)

        at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:214)

        at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:364)

        at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN189(sitemap_xmap.java:1517) 
        at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:841) 
        at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:763) 
        at org.apache.cocoon.sitemap.Handler.process(Handler.java:163) 
        at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:115) 
        at org.apache.cocoon.Cocoon.process(Cocoon.java:446) 
        at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:520) 
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:103) 
        at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:82)

        at com.caucho.server.http.Invocation.service(Invocation.java:277) 
        at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:129) 
        at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:216) 
        at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:158) 
        at com.caucho.server.TcpConnection.run(TcpConnection.java:140) 
        at java.lang.Thread.run(Thread.java:484) 
 ]

Your comments?

Best regards,
  Andrew Answer                  A.Nuzhdov@ftc.ru


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message