Hi
I found a way to work around that problem - it's basically the same
method used for the title:
another <map:act type="language-exists"> block with a xslt inserting
the metadata dependent stuff.
I think with the current implementation of the 404 Page handling the
sitemap lost some flexibility (it's not possible to insert the
metadata parameter at the obvious place without breaking the 404-page).
Jürgen
Am 03.01.2008 um 10:44 schrieb Jürgen Ragaller:
Hi
In a publication with metadata parameter a problem occurs when a not
existing page is requested:
Possible reproduction:
<map:transform src="cocoon:/getDoctypeXSLT/{4}">
...
<map:parameter name="title" value="{dublincore:title}"/>
</map:transform>
>> request a not exsiting page.
The error is obviously related to the fact that for a 404-page there
is no document and no metadata.
Is there a method to insert metadata parameter without affecting the
404-page or do you consider this a bug?
Does the sitemap need some rearranging?
The error message:
<!--There is no document for this page envelope!
org.apache.cocoon.ProcessingException: Could not read resource
cocoon://default/lenyabody-view/default/authoring//oijsd%20foisdj%20f
at <map:serialize type="xhtml"> -
file:///Users/ragaller/apache/lenya/lenya_trunk/build/lenya/webapp/lenya/pubs/default/sitemap.xmap:424:56
at <map:transform type="proxy"> -
file:///Users/ragaller/apache/lenya/lenya_trunk/build/lenya/webapp/lenya/pubs/default/sitemap.xmap:423:38
at <map:transform> -
file:///Users/ragaller/apache/lenya/lenya_trunk/build/lenya/webapp/lenya/pubs/default/sitemap.xmap:422:79
at <map:transform> -
file:///Users/ragaller/apache/lenya/lenya_trunk/build/lenya/webapp/lenya/pubs/default/sitemap.xmap:419:132
at <map:generate> -
file:///Users/ragaller/apache/lenya/lenya_trunk/build/lenya/webapp/lenya/pubs/default/sitemap.xmap:414:164
at <map:mount> -
file:///Users/ragaller/apache/lenya/lenya_trunk/build/lenya/webapp/global-sitemap.xmap:418:116
at <map:mount> - file:///Users/ragaller/apache/lenya/lenya_trunk/build/lenya/webapp/sitemap.xmap:6868:106org.apache.avalon.framework.configuration.ConfigurationException
: There is no document for this page envelope!full exception chain
stacktraceorg.apache.cocoon.ProcessingException: Could not read
resource cocoon://default/lenyabody-view/default/authoring//oijsd
%20foisdj%20f
at <map:serialize type="xhtml"> -
file:///Users/ragaller/apache/lenya/lenya_trunk/build/lenya/webapp/lenya/pubs/default/sitemap.xmap:424:56
at <map:transform type="proxy"> -
file:///Users/ragaller/apache/lenya/lenya_trunk/build/lenya/webapp/lenya/pubs/default/sitemap.xmap:423:38
at <map:transform> -
file:///Users/ragaller/apache/lenya/lenya_trunk/build/lenya/webapp/lenya/pubs/default/sitemap.xmap:422:79
at <map:transform> -
file:///Users/ragaller/apache/lenya/lenya_trunk/build/lenya/webapp/lenya/pubs/default/sitemap.xmap:419:132
at <map:generate> -
file:///Users/ragaller/apache/lenya/lenya_trunk/build/lenya/webapp/lenya/pubs/default/sitemap.xmap:414:164
at <map:mount> -
file:///Users/ragaller/apache/lenya/lenya_trunk/build/lenya/webapp/global-sitemap.xmap:418:116
at <map:mount> -
file:///Users/ragaller/apache/lenya/lenya_trunk/build/lenya/webapp/sitemap.xmap:6868:106
at
org
.apache
.cocoon
.components.source.SourceUtil.handleSAXException(SourceUtil.java:502)
at
org
.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:
118)
at
org
.apache
.cocoon
.components
.pipeline
.AbstractProcessingPipeline
.processXMLPipeline(AbstractProcessingPipeline.java:579)
at
org
.apache
.cocoon
.components
.pipeline
.impl
.AbstractCachingProcessingPipeline
.processXMLPipeline(AbstractCachingProcessingPipeline.java:280)
at
org
.apache
.cocoon
.components
.pipeline
.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:
481)
at
org
.apache
.cocoon
.components
.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:144)
at
org
.apache
.cocoon
.components
.treeprocessor
.AbstractParentProcessingNode
.invokeNodes(AbstractParentProcessingNode.java:47)
at
org
.apache
.cocoon
.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
at
org
.apache
.cocoon
.components
.treeprocessor
.AbstractParentProcessingNode
.invokeNodes(AbstractParentProcessingNode.java:69)
at
org
.apache
.cocoon
.components
.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
at
org
.apache
.cocoon
.components
.treeprocessor
.AbstractParentProcessingNode
.invokeNodes(AbstractParentProcessingNode.java:69)
at
org
.apache
.cocoon
.components
.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
at
org
.apache
.cocoon
.components
.treeprocessor
.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
at
org
.apache
.cocoon
.components
.treeprocessor
.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
at
org
.apache
.cocoon
.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:
254)
at
org
.apache
.cocoon
.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
at
org
.apache
.cocoon
.components
.treeprocessor
.AbstractParentProcessingNode
.invokeNodes(AbstractParentProcessingNode.java:69)
at
org
.apache
.cocoon
.components.treeprocessor.sitemap.SelectNode.invoke(SelectNode.java:
103)
at
org
.apache
.cocoon
.components
.treeprocessor
.AbstractParentProcessingNode
.invokeNodes(AbstractParentProcessingNode.java:47)
at
org
.apache
.cocoon
.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
at
org
.apache
.cocoon
.components
.treeprocessor
.AbstractParentProcessingNode
.invokeNodes(AbstractParentProcessingNode.java:69)
at
org
.apache
.cocoon
.components
.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
at
org
.apache
.cocoon
.components
.treeprocessor
.AbstractParentProcessingNode
.invokeNodes(AbstractParentProcessingNode.java:69)
at
org
.apache
.cocoon
.components
.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
at
org
.apache
.cocoon
.components
.treeprocessor
.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
at
org
.apache
.cocoon
.components
.treeprocessor
.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
at
org
.apache
.cocoon
.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:
254)
at
org
.apache
.cocoon
.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
at
org
.apache
.cocoon
.components
.treeprocessor
.AbstractParentProcessingNode
.invokeNodes(AbstractParentProcessingNode.java:47)
at
org
.apache
.cocoon
.components
.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:139)
at
org
.apache
.cocoon
.components
.treeprocessor
.AbstractParentProcessingNode
.invokeNodes(AbstractParentProcessingNode.java:47)
at
org
.apache
.cocoon
.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
at
org
.apache
.cocoon
.components
.treeprocessor
.AbstractParentProcessingNode
.invokeNodes(AbstractParentProcessingNode.java:69)
at
org
.apache
.cocoon
.components
.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
at
org
.apache
.cocoon
.components
.treeprocessor
.AbstractParentProcessingNode
.invokeNodes(AbstractParentProcessingNode.java:69)
at
org
.apache
.cocoon
.components
.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
at
org
.apache
.cocoon
.components
.treeprocessor
.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
at
org
.apache
.cocoon
.components
.treeprocessor
.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
at
org
.apache
.cocoon
.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:
254)
at org.apache.cocoon.Cocoon.process(Cocoon.java:699)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:
1154)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427)
at
org
.mortbay
.jetty
.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:
475)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
567)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
at
org
.mortbay
.jetty
.servlet.WebApplicationContext.handle(WebApplicationContext.java:635)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
at
org
.mortbay.jetty.plus.PlusWebAppContext.handle(PlusWebAppContext.java:
158)
at org.mortbay.http.HttpServer.service(HttpServer.java:954)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:814)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:
981)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)
at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
Caused by: org.apache.cocoon.sitemap.PatternException: Cannot get
variable 'title' in expression '{dublincore:title}'
Thanks for help
Jürgen
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
null-oder-eins GmbH
web & graphic design
Anna Heerstrasse 14
8057 Zürich
www.null-oder-eins.ch
Tel +41 44 350 56 26
Fax +41 44 350 56 27
Jürgen Ragaller
[EMAIL PROTECTED]
Skype: callto://ragaller
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]