cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Spinetti" <m.spine...@pisa.iol.it>
Subject Strange error in pipeline
Date Thu, 05 Jul 2001 12:15:03 GMT
Hi all,
I have an application (evoluzione_meteo) that I 'm trying to call with the url:
http://myserver.com/evoluzione_meteo?param1=x&param2=y
The problem is that cocoon2 gives me an error:

      Error creating the resource 
     Failed to execute pipeline. 
      details 
      from  
      source org.apache.cocoon.ProcessingException 
      description org.apache.cocoon.ProcessingException: Failed to execute pipeline.:org.apache.cocoon.ResourceNotFoundException:java.lang.NullPointerException

      extra info 
     org.apache.cocoon.ResourceNotFoundException:java.lang.NullPointerException
     
     org.apache.cocoon.ResourceNotFoundException:java.lang.NullPointerException
	at org.apache.avalon.framework.CascadingException.<init>(CascadingException.java:40)
	at org.apache.cocoon.ProcessingException.<init>(ProcessingException.java:36)
	at org.apache.cocoon.ResourceNotFoundException.<init>(ResourceNotFoundException.java:31)
	at org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:156)
	at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:164)
	at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:255)
	at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:110)
	at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:273)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:4318)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1406)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:175)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:94)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:293)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:498)
java.lang.NullPointerException
	at org.apache.cocoon.components.language.programming.java.JstyleFormatter.format(JstyleFormatter.java:81)
	at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:237)
	at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:158)
	at org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:153)
	at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:164)
	at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:255)
	at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:110)
	at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:273)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:4318)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1406)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:175)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:94)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:293)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:498)

     
     org.apache.cocoon.ProcessingException: Failed to execute pipeline.:org.apache.cocoon.ResourceNotFoundException:java.lang.NullPointerException
     
     org.apache.cocoon.ProcessingException: Failed to execute pipeline.:org.apache.cocoon.ResourceNotFoundException:java.lang.NullPointerException
	at org.apache.avalon.framework.CascadingException.<init>(CascadingException.java:40)
	at org.apache.cocoon.ProcessingException.<init>(ProcessingException.java:36)
	at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:359)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:4318)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1406)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:175)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:94)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:293)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:498)
org.apache.cocoon.ResourceNotFoundException:java.lang.NullPointerException
	at org.apache.avalon.framework.CascadingException.<init>(CascadingException.java:40)
	at org.apache.cocoon.ProcessingException.<init>(ProcessingException.java:36)
	at org.apache.cocoon.ResourceNotFoundException.<init>(ResourceNotFoundException.java:31)
	at org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:156)
	at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:164)
	at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:255)
	at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:110)
	at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:273)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:4318)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1406)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:175)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:94)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:293)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:498)
java.lang.NullPointerException
	at org.apache.cocoon.components.language.programming.java.JstyleFormatter.format(JstyleFormatter.java:81)
	at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:237)
	at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:158)
	at org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:153)
	at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:164)
	at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:255)
	at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:110)
	at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:273)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:4318)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1406)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:175)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:94)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:293)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:471)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:498)
     


My pipeline in sitemap is:
<map:match pattern="evoluzione_meteo">
    <map:generate type="serverpages" src="meteo/evoluzione_meteo.xsp"/>
     <map:select>
       <map:when test="explorer">
         <map:transform src="stylesheets/meteo/situazione_meteo_strict.xsl"/>
       </map:when>
       <map:when test="mozilla5">
         <map:transform src="stylesheets/meteo/situazione_meteo_strict.xsl"/>
       </map:when>
       <map:when test="wap">
         <map:transform src="stylesheets/meteo/wml/situazione_meteo.xsl"/>
         <map:transform src="stylesheets/meteo/wml/wml.xsl"/>
       </map:when>
       <map:otherwise>
         <map:transform src="stylesheets/meteo/situazione_meteo_strict.xsl"/>
       </map:otherwise>
 </map:select>
 <map:select>
       <map:when test="wap">
         <map:serialize type="wap"/> 
       </map:when>
       <map:otherwise>
         <map:serialize type="html"/> 
       </map:otherwise>
 </map:select>
 </map:match> 

What's the mean of coon2 error? Is my sitemap correct?
Please help me
Thanks all

Marco
 

Mime
View raw message