I'm having trouble combining two Cocoon samples into the same mapping. I setup this simple mapping using the Stream and POI examples in Cocoon 2.0.4:
<map:match pattern="convert"> <map:generate type="stream"/> <map:serialize type="xls"/> </map:match> When I fill the Stream example's form (OrderPage.xml modified to action=convert), with the content from the POI's sample (hypothetical-sales.xml) and POST it, I get: type fatal message Exception in StreamGenerator.generate() description org.apache.cocoon.ProcessingException: Exception in StreamGenerator.generate(): java.lang.NullPointerException sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.apache.cocoon.ProcessingException: Exception in StreamGenerator.generate(): java.lang.NullPointerException at org.apache.cocoon.generation.StreamGenerator.generate(StreamGenerator.java:1 64) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv entPipeline.java:250) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:395) I was of course hoping that the POSTed XML from hypothetical-sales.xml would be serialized into XLS and fed back to me as the response. Can anyone explain why I receive the NullPointer, and/or help me achieve my desired result? Thanks, -Eric Simmerman --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>