Hi everyone! I started coding for a new project and decided to go ahead with Cocoon 3 (i'm pretty much sticking to the trunk) and i like what i see. Alot actually! Really looks like the next step forward for XML based webapp frameworks.
I'm not really sure this is the right mailling list, but then again i didnt see alot of questions for cocoon 3 in the user lists ;) Down to business, I have this error when i try to use a pipeline which has two transformations back to back, an include and an xslt. My various attempts at getting this to work told a couple of things -The pipeline works when one of the transformer is there, not when both are. -I tried taking the IncludeTransfo output to a new xml file and when feeding it to the XSLT transformer by FileGenerator, it works. -I have tried with other XML and XSLT files (taken from the working cocoon-sample) and it doesnt work either. -When the Include transformer doesnt have any work to do (no i: element to include in the source xml) the pipeline works with both transformer. Anyway, the bottom line is i'm pretty sure its not the XML or XSLT files that are faulty here. Is is something else i did wrong? Any thoughts? Some details: REVEISION alpha-2, 754707 PIPELINE that fails. It is called by a controller and it's the last pipeline before returning a response to the client. <map:match pattern="data/done"> <map:generate src="xml/responses/BasicOperationResponse.xml" /> <map:transform type="include" /> <map:transform src="xslt/views/referenceNodeCRUD.xslt" /> <map:serialize type="xml" /> </map:match> SOURCE XML <?xml version="1.0" encoding="UTF-8"?> <response xmlns:i="http://apache.org/cocoon/3.0/include"> <i:include src="servlet:/gen/UserInfos"/> <i:include src="servlet:/gen/SimpleOperation"/> <i:include src="servlet:/gen/BetwixtControllerModel"/> </response> ERROR STs 17:49:37,235 ERROR [org.apache.cocoon.servlet.XMLSitemapServlet] An exception occurred while executing the sitemap. org.apache.cocoon.sitemap.InvocationException: org.apache.cocoon.pipeline.ProcessingException: Can't parse url connection blockcontext:/Core/xml/responses/BasicOperationResponse.xml at org.apache.cocoon.sitemap.util.ExceptionHandler.getInvocationException(ExceptionHandler.java:39) at org.apache.cocoon.sitemap.node.PipelineNode.handleException(PipelineNode.java:91) at org.apache.cocoon.sitemap.node.PipelineNode.invoke(PipelineNode.java:61) at org.apache.cocoon.sitemap.node.AbstractSitemapNode.invoke(AbstractSitemapNode.java:97) at org.apache.cocoon.sitemap.node.PipelinesNode.invoke(PipelinesNode.java:40) at org.apache.cocoon.sitemap.node.AbstractSitemapNode.invoke(AbstractSitemapNode.java:97) at org.apache.cocoon.sitemap.node.Sitemap.invoke(Sitemap.java:33) at org.apache.cocoon.servlet.XMLSitemapServlet.invoke(XMLSitemapServlet.java:82) at org.apache.cocoon.servlet.XMLSitemapServlet.service(XMLSitemapServlet.java:113) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:77) at org.apache.cocoon.jnet.URLHandlerFactoryCollector.installURLHandlers(URLHandlerFactoryCollector.java:46) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) Caused by: org.apache.cocoon.pipeline.ProcessingException: Can't parse url connection blockcontext:/Core/xml/responses/BasicOperationResponse.xml at org.apache.cocoon.sax.util.XMLUtils.toSax(XMLUtils.java:117) at org.apache.cocoon.sax.component.FileGenerator.execute(FileGenerator.java:81) at org.apache.cocoon.pipeline.AbstractPipeline.invokeStarter(AbstractPipeline.java:147) at org.apache.cocoon.pipeline.CachingPipeline.execute(CachingPipeline.java:124) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) Caused by: java.lang.RuntimeException at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3418) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:389) at org.apache.cocoon.xml.sax.AbstractSAXPipe.endDocument(AbstractSAXPipe.java:58) at org.apache.cocoon.sax.AbstractSAXTransformer.endDocument(AbstractSAXTransformer.java:47) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:737) Thanks, Yoann
