cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Vernichon <...@free.fr>
Subject [C2] Stream Generator
Date Tue, 14 Aug 2001 17:36:02 GMT
I've found something about the Stream Generator in the Cocoon documentation.

I've made the following modifications to the file sitemap.xmap :
<map:generators default="file">
...
<map:generator  name="stream"      
src="org.apache.cocoon.generation.StreamGenerator"/>
</map:generators>

<!-- ========================== Stream ================================= -->
   <map:match pattern="request1">
     <map:generate type="stream">
       <!-- <map:parameter name="form-name" value="Foo"/> -->
       <map:parameter name="FORM1" value="Foo"/>
     </map:generate>
     <map:serialize type="xml"/>
   </map:match>

   <map:match pattern="Order">
     <map:generate src="docs/samples/stream/OrderPage.xml"/>
     <map:transform src="stylesheets/dynamic-page2html.xsl"/>
     <map:serialize type="html"/>
   </map:match>

But I got this error :

Error creating the resource 
 Exception in StreamGenerator.generate() 
details 
from  
source org.apache.cocoon.ProcessingException 
description org.apache.cocoon.ProcessingException: Exception in 
StreamGenerator.generate():java.lang.NullPointerException 
extra info 
 java.lang.NullPointerException
	at java.util.Hashtable.get(Hashtable.java, Compiled Code)
	at org.apache.tomcat.core.RequestImpl.getParameterValues
(RequestImpl.java, Compiled Code)
	at org.apache.tomcat.core.RequestImpl.getParameter(RequestImpl.java, 
Compiled Code)
	at org.apache.tomcat.facade.HttpServletRequestFacade.getParameter
(HttpServletRequestFacade.java, Compiled Code)
	at org.apache.cocoon.environment.http.HttpRequest.getParameter
(HttpRequest.java, Compiled Code)
	at org.apache.cocoon.generation.StreamGenerator.generate
(StreamGenerator.java, Compiled Code)
	at org.apache.cocoon.components.pipeline.AbstractEventPipeline.process
(AbstractEventPipeline.java, Compiled Code)
	at org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process
(AbstractStreamPipeline.java, Compiled Code)
	at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN409
(sitemap_xmap.java, Compiled Code)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java, 
Compiled Code)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java, 
Compiled Code)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java, Compiled 
Code)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java, Compiled Code)
	at org.apache.cocoon.Cocoon.process(Cocoon.java, Compiled Code)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java, 
Compiled Code)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java, 
Compiled Code)
	at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, 
Compiled Code)
	at org.apache.tomcat.core.ContextManager.internalService
(ContextManager.java, Compiled Code)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java, 
Compiled Code)
	at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection
(HttpConnectionHandler.java, Compiled Code)
	at org.apache.tomcat.service.TcpWorkerThread.runIt
(PoolTcpEndpoint.java, Compiled Code)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run
(ThreadPool.java, Compiled Code)
	at java.lang.Thread.run(Thread.java, Compiled Code)

 
 java.lang.NullPointerException
 
 org.apache.cocoon.ProcessingException: Exception in StreamGenerator.generate
():java.lang.NullPointerException
	at org.apache.cocoon.generation.StreamGenerator.generate
(StreamGenerator.java, Compiled Code)
	at org.apache.cocoon.components.pipeline.AbstractEventPipeline.process
(AbstractEventPipeline.java, Compiled Code)
	at org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process
(AbstractStreamPipeline.java, Compiled Code)
	at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN409
(sitemap_xmap.java, Compiled Code)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java, 
Compiled Code)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java, 
Compiled Code)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java, Compiled 
Code)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java, Compiled Code)
	at org.apache.cocoon.Cocoon.process(Cocoon.java, Compiled Code)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java, 
Compiled Code)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java, 
Compiled Code)
	at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, 
Compiled Code)
	at org.apache.tomcat.core.ContextManager.internalService
(ContextManager.java, Compiled Code)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java, 
Compiled Code)
	at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection
(HttpConnectionHandler.java, Compiled Code)
	at org.apache.tomcat.service.TcpWorkerThread.runIt
(PoolTcpEndpoint.java, Compiled Code)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run
(ThreadPool.java, Compiled Code)
	at java.lang.Thread.run(Thread.java, Compiled Code)
java.lang.NullPointerException
	at java.util.Hashtable.get(Hashtable.java, Compiled Code)
	at org.apache.tomcat.core.RequestImpl.getParameterValues
(RequestImpl.java, Compiled Code)
	at org.apache.tomcat.core.RequestImpl.getParameter(RequestImpl.java, 
Compiled Code)
	at org.apache.tomcat.facade.HttpServletRequestFacade.getParameter
(HttpServletRequestFacade.java, Compiled Code)
	at org.apache.cocoon.environment.http.HttpRequest.getParameter
(HttpRequest.java, Compiled Code)
	at org.apache.cocoon.generation.StreamGenerator.generate
(StreamGenerator.java, Compiled Code)
	at org.apache.cocoon.components.pipeline.AbstractEventPipeline.process
(AbstractEventPipeline.java, Compiled Code)
	at org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process
(AbstractStreamPipeline.java, Compiled Code)
	at org.apache.cocoon.www.sitemap_xmap.wildcardMatchN409
(sitemap_xmap.java, Compiled Code)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java, 
Compiled Code)
	at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java, 
Compiled Code)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java, Compiled 
Code)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java, Compiled Code)
	at org.apache.cocoon.Cocoon.process(Cocoon.java, Compiled Code)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java, 
Compiled Code)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java, 
Compiled Code)
	at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, 
Compiled Code)
	at org.apache.tomcat.core.ContextManager.internalService
(ContextManager.java, Compiled Code)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java, 
Compiled Code)
	at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection
(HttpConnectionHandler.java, Compiled Code)
	at org.apache.tomcat.service.TcpWorkerThread.runIt
(PoolTcpEndpoint.java, Compiled Code)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run
(ThreadPool.java, Compiled Code)
	at java.lang.Thread.run(Thread.java, Compiled Code)

 
 org.apache.cocoon.ProcessingException: Exception in StreamGenerator.generate
():java.lang.NullPointerException
 

Have anyone made the Request Generator work ?
I need to get xml passing by a request.

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