You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andrew Answer <cr...@mail.ru> on 2001/08/31 16:24:01 UTC

XInclude bugs

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


AW: XInclude bugs

Posted by Jorn Heid <he...@fh-heilbronn.de>.
I posted nearly the same bug to this list more than one time.
I didn't get an answer to that.
Try to disable the resin caching.
If this does not help you, I can give you a modified version of the
XIncludeTranformer which works for me - just email me.

-----Ursprungliche Nachricht-----
Von: Andrew Answer [mailto:creator0@mail.ru]
Gesendet: Freitag, 31. August 2001 16:24
An: cocoon-users@xml.apache.org
Betreff: XInclude bugs


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(CachingEv
entPipeline.java:186)
        at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.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:8
2)
        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(XIncludeTr
ansformer.java:127)
        at
org.apache.cocoon.components.sax.XMLByteStreamInterpreter.parse(XMLByteStrea
mInterpreter.java:82)
        at
org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserialize(XMLByt
eStreamInterpreter.java:58)
        at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:182)
        at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.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:8
2)
        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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


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