cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Answer <creat...@mail.ru>
Subject XInclude bugs
Date Fri, 31 Aug 2001 14:24:01 GMT
Hello cocoon-users,

  I'm download last dev shapshot from C2 site
  (xml-cocoon2_20010831101539.tar.gz) and install it on my system
  (Resin-2.0.1/jdk1.3/Win98). And I copy my site into new version,
  change sitemap to mount my site, and do other changes.
  When I try to processing XML file with XInclude expressions, i get
  next errors:
[
org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.NullPointerException
        at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:186)

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

        at org.apache.cocoon.www.mysite.sitemap_xmap.wildcardMatchN9A(sitemap_xmap.java:887)

        at org.apache.cocoon.www.mysite.sitemap_xmap.process(sitemap_xmap.java:404) 
        at org.apache.cocoon.www.mysite.sitemap_xmap.process(sitemap_xmap.java:336) 
        at org.apache.cocoon.sitemap.Handler.process(Handler.java:163) 
        at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:115) 
        at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN21A(sitemap_xmap.java:2897) 
        at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2263) 
        at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2198) 
        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:272) 
        at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:128) 
        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:207)

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

        at org.apache.cocoon.components.sax.XMLByteStreamInterpreter.parse(XMLByteStreamInterpreter.java:82)

        at org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserialize(XMLByteStreamInterpreter.java:58)

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

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

        at org.apache.cocoon.www.mysite.sitemap_xmap.wildcardMatchN9A(sitemap_xmap.java:887)

        at org.apache.cocoon.www.mysite.sitemap_xmap.process(sitemap_xmap.java:404) 
        at org.apache.cocoon.www.mysite.sitemap_xmap.process(sitemap_xmap.java:336) 
        at org.apache.cocoon.sitemap.Handler.process(Handler.java:163) 
        at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:115) 
        at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN21A(sitemap_xmap.java:2897) 
        at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2263) 
        at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2198) 
        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:272) 
        at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:128) 
        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) 
]

./docs/index.xml file is simple:
<?xml version="1.0" encoding="UTF-8"?>
<page xmlns:xinclude="http://www.w3.org/2001/XInclude">
 <xinclude:include href="blocks/menu.xml"/>
</page>

./blocks/menu.xml:
<?xml version="1.0" encoding="UTF-8"?>
<page>
</page>

./stylesheets/index.xsl:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
</xsl:stylesheet>

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

  This error don't appear at first time, ONLY EVERY SECOND TIME. I.e.
  when i refresh my page, odd attempts bring to what page-processing is perfect, and even
  attempts always generate error as above.
  What is this? May be it's Resin caching error? Anyone can help me?

-- 
Best regards,
 Andrew                          mailto:creator0@mail.ru



---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message