cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Hertz <...@danhertz.com>
Subject Cinclude file not found - why?
Date Sun, 03 Dec 2006 23:29:36 GMT
I'm running cocoon with apache/mod_jk for some php stuff.

If I type this in my browser:

http://mytestweb.com/getname.php?name=john

cocoon passes it off to apache (I have a pipeline reader), and returns 
the following XML:

<?xml version="1.0" encoding="ISO-8859-1"?>
<result>smith</result>

But if I put that url in a cinclude:

<php-text-here>
    <cinclude:include src="http://mytestweb.com/getname.php?name=john"/>
</php-text-here>

I get this error. Why do I get the file not found error, instead of 
<result>smith</result> inserted into the <php-text-here> element?

I'm scratching my head on this one... Thanks!

== error from log file ==

ERROR (2006-12-03) 18:02.47:533 [sitemap.handled-errors] (/php/getname) 
TP-Processor8/ErrorHandlerHelper: Failed to process pipeline
java.io.FileNotFoundException: http://mytestweb.com/getname.php?name=john
    at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1147)
    at 
sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1866)
    at 
java.net.HttpURLConnection.getHeaderFieldDate(HttpURLConnection.java:438)
    at java.net.URLConnection.getLastModified(URLConnection.java:526)
    at 
org.apache.excalibur.source.impl.URLSource.getInfos(URLSource.java:164)
    at 
org.apache.excalibur.source.impl.AbstractSource.checkInfos(AbstractSource.java:62)
    at 
org.apache.excalibur.source.impl.URLSource.getInputStream(URLSource.java:227)
    at 
org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:190)
    at 
org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:158)
    at 
org.apache.cocoon.transformation.CIncludeTransformer.processCIncludeElement(CIncludeTransformer.java:556)
    at 
org.apache.cocoon.transformation.CIncludeTransformer.startTransformingElement(CIncludeTransformer.java:263)
    at 
org.apache.cocoon.transformation.AbstractSAXTransformer.startElement(AbstractSAXTransformer.java:457)
    at 
org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:94)
    at 
org.apache.cocoon.transformation.AbstractSAXTransformer.startElement(AbstractSAXTransformer.java:465)
    at 
org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:94)
    at 
org.apache.cocoon.transformation.AbstractSAXTransformer.startElement(AbstractSAXTransformer.java:465)
    at 
org.apache.cocoon.webapps.session.transformation.SessionPreTransformer.startElement(SessionPreTransformer.java:119)
    at 
net.sf.saxon.event.ContentHandlerProxy.startContent(ContentHandlerProxy.java:290)
    at net.sf.saxon.event.ProxyReceiver.startContent(ProxyReceiver.java:166)
    at 
net.sf.saxon.event.NamespaceReducer.startContent(NamespaceReducer.java:168)
    at 
net.sf.saxon.event.ComplexContentOutputter.startContent(ComplexContentOutputter.java:492)
    at 
net.sf.saxon.event.ComplexContentOutputter.endElement(ComplexContentOutputter.java:373)
    at 
net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:167)
    at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:336)
    at net.sf.saxon.instruct.Instruction.process(Instruction.java:91)
    at 
net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:164)
    at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:336)
    at net.sf.saxon.instruct.Instruction.process(Instruction.java:91)
    at 
net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:164)
    at net.sf.saxon.instruct.Template.expand(Template.java:108)
    at net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:92)
    at 
net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:319)
    at net.sf.saxon.Controller.transformDocument(Controller.java:1561)
    at 
net.sf.saxon.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:133)
    at 
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
    at 
org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:585)
    at 
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
    at 
org.apache.cocoon.transformation.AbstractSAXTransformer.endDocument(AbstractSAXTransformer.java:380)
    at 
net.sf.saxon.event.ContentHandlerProxy.close(ContentHandlerProxy.java:203)
    at net.sf.saxon.event.ProxyReceiver.close(ProxyReceiver.java:90)
    at 
net.sf.saxon.event.ComplexContentOutputter.close(ComplexContentOutputter.java:448)
    at net.sf.saxon.Controller.transformDocument(Controller.java:1587)
    at 
net.sf.saxon.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:133)
    at 
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
    at 
org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:585)
    at 
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
    at 
org.apache.cocoon.transformation.AbstractSAXTransformer.endDocument(AbstractSAXTransformer.java:380)
    at 
net.sf.saxon.event.ContentHandlerProxy.close(ContentHandlerProxy.java:203)
    at net.sf.saxon.event.ProxyReceiver.close(ProxyReceiver.java:90)
    at 
net.sf.saxon.event.ComplexContentOutputter.close(ComplexContentOutputter.java:448)
    at net.sf.saxon.Controller.transformDocument(Controller.java:1587)
    at 
net.sf.saxon.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:133)
    at 
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
    at 
org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:585)
    at 
net.sf.saxon.event.ContentHandlerProxy.close(ContentHandlerProxy.java:203)
    at net.sf.saxon.event.ProxyReceiver.close(ProxyReceiver.java:90)
    at 
net.sf.saxon.event.ComplexContentOutputter.close(ComplexContentOutputter.java:448)
    at net.sf.saxon.Controller.transformDocument(Controller.java:1587)
    at 
net.sf.saxon.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:133)
    at 
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
    at 
org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:585)
    at 
net.sf.saxon.event.ContentHandlerProxy.close(ContentHandlerProxy.java:203)
    at net.sf.saxon.event.ProxyReceiver.close(ProxyReceiver.java:90)
    at 
net.sf.saxon.event.ComplexContentOutputter.close(ComplexContentOutputter.java:448)
    at net.sf.saxon.Controller.transformDocument(Controller.java:1587)
    at 
net.sf.saxon.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:133)
    at 
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
    at 
org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:585)
    at 
org.apache.cocoon.generation.RequestGenerator.generate(RequestGenerator.java:197)
    at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:578)
    at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:281)
    at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:480)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:120)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.SelectNode.invoke(SelectNode.java:97)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:142)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:92)
    at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:234)
    at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:176)
    at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:252)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:117)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:138)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:142)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:92)
    at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:234)
    at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.handleCocoonRedirect(ConcreteTreeProcessor.java:298)
    at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.access$000(ConcreteTreeProcessor.java:47)
    at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor$TreeProcessorRedirector.cocoonRedirect(ConcreteTreeProcessor.java:339)
    at 
org.apache.cocoon.environment.ForwardRedirector.redirect(ForwardRedirector.java:59)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.RedirectToURINode.invoke(RedirectToURINode.java:69)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:142)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:92)
    at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:234)
    at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:176)
    at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:252)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:117)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:142)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:92)
    at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:234)
    at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:176)
    at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:252)
    at org.apache.cocoon.Cocoon.process(Cocoon.java:686)
    at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1153)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at 
org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:275)
    at 
org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:80)
    at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
    at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
    at 
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
    at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:595)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message