cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mansour Al Akeel <mansour.alak...@gmail.com>
Subject Re: XInclude in sitemap.xmap
Date Mon, 12 Nov 2012 06:59:46 GMT
Here's what I am doing:

     <map:match pattern="article/{id}">
		<map:generate src="{global:base.repo.path}/articles/{map:id}/index.xml" />
		<map:transform type="xinclude" />
		<map:serialize type="xhtml"  />

and this is error:

06:49:07.958 [btpool0-1] DEBUG o.a.c.jci.stores.MemoryResourceStore -
reading resource org/apache/cocoon/sitemap/InvocationImpl.class
06:49:07.959 [btpool0-1] ERROR o.a.cocoon.servlet.XMLSitemapServlet -
Cocoon can't process the request.
org.apache.cocoon.sitemap.InvocationException:
java.lang.NullPointerException
        at org.apache.cocoon.sitemap.util.ExceptionHandler.getInvocationException(ExceptionHandler.java:39)
~[cocoon-sitemap-3.0.0-beta-1-SNAPSHOT.jar:3.0.0-beta-1-SNAPSHOT]
        at org.apache.cocoon.sitemap.node.PipelineNode.handleException(PipelineNode.java:103)
~[cocoon-sitemap-3.0.0-beta-1-SNAPSHOT.jar:3.0.0-beta-1-SNAPSHOT]
        at org.apache.cocoon.sitemap.node.PipelineNode.invoke(PipelineNode.java:73)
~[cocoon-sitemap-3.0.0-beta-1-SNAPSHOT.jar:3.0.0-beta-1-SNAPSHOT]
        at org.apache.cocoon.sitemap.node.AbstractSitemapNode.invoke(AbstractSitemapNode.java:100)
~[cocoon-sitemap-3.0.0-beta-1-SNAPSHOT.jar:3.0.0-beta-1-SNAPSHOT]
        at org.apache.cocoon.sitemap.node.PipelinesNode.invoke(PipelinesNode.java:49)
~[cocoon-sitemap-3.0.0-beta-1-SNAPSHOT.jar:3.0.0-beta-1-SNAPSHOT]
        at org.apache.cocoon.sitemap.node.AbstractSitemapNode.invoke(AbstractSitemapNode.java:100)
~[cocoon-sitemap-3.0.0-beta-1-SNAPSHOT.jar:3.0.0-beta-1-SNAPSHOT]
        at org.apache.cocoon.sitemap.node.Sitemap.invoke(Sitemap.java:42)
~[cocoon-sitemap-3.0.0-beta-1-SNAPSHOT.jar:3.0.0-beta-1-SNAPSHOT]
        at org.apache.cocoon.servlet.RequestProcessor.invoke(RequestProcessor.java:245)
~[cocoon-servlet-3.0.0-beta-1-SNAPSHOT.jar:3.0.0-beta-1-SNAPSHOT]
        at org.apache.cocoon.servlet.RequestProcessor.sendSitemapResponse(RequestProcessor.java:313)
~[cocoon-servlet-3.0.0-beta-1-SNAPSHOT.jar:3.0.0-beta-1-SNAPSHOT]
        at org.apache.cocoon.servlet.RequestProcessor.service(RequestProcessor.java:92)
~[cocoon-servlet-3.0.0-beta-1-SNAPSHOT.jar:3.0.0-beta-1-SNAPSHOT]
        at org.apache.cocoon.servlet.XMLSitemapServlet.service(XMLSitemapServlet.java:49)
~[cocoon-servlet-3.0.0-beta-1-SNAPSHOT.jar:3.0.0-beta-1-SNAPSHOT]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
[servlet-api-2.5-6.1.7.jar:6.1.7]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[na:1.7.0]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
~[na:1.7.0]

....................

Caused by: java.lang.NullPointerException: null
        at org.apache.cocoon.pipeline.caching.ObjectCacheKey.hashCode(ObjectCacheKey.java:53)
~[cocoon-pipeline-3.0.0-beta-1-SNAPSHOT.jar:3.0.0-beta-1-SNAPSHOT]
        at java.util.WeakHashMap.get(WeakHashMap.java:374) ~[na:1.7.0]
        at org.apache.cocoon.pipeline.caching.SimpleCache.retrieve(SimpleCache.java:57)
~[cocoon-pipeline-3.0.0-beta-1-SNAPSHOT.jar:3.0.0-beta-1-SNAPSHOT]
        at org.apache.cocoon.pipeline.caching.AbstractCache.get(AbstractCache.java:46)
~[cocoon-pipeline-3.0.0-beta-1-SNAPSHOT.jar:3.0.0-beta-1-SNAPSHOT]
        at org.apache.cocoon.pipeline.caching.CachedCacheKey.setKey(CachedCacheKey.java:73)
~[cocoon-pipeline-3.0.0-beta-1-SNAPSHOT.jar:3.0.0-beta-1-SNAPSHOT]
        at org.apache.cocoon.sax.component.XIncludeTransformer.constructCacheKey(XIncludeTransformer.java:664)
~[cocoon-sax-3.0.0-beta-1-SNAPSHOT.jar:3.0.0-beta-1-SNAPSHOT]
        at org.apache.cocoon.pipeline.CachingPipeline.constructCacheKey(CachingPipeline.java:79)
~[cocoon-pipeline-3.0.0-beta-1-SNAPSHOT.jar:3.0.0-beta-1-SNAPSHOT]
        at org.apache.cocoon.pipeline.CachingPipeline.setup(CachingPipeline.java:203)
~[cocoon-pipeline-3.0.0-beta-1-SNAPSHOT.jar:3.0.0-beta-1-SNAPSHOT]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[na:1.7.0]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
~[na:1.7.0]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[na:1.7.0]
        at java.lang.reflect.Method.invoke(Method.java:601)
~[na:1.7.0]
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
[spring-aop-3.0.5.RELEASE.jar:3.0.5.RELEASE]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183


The samples has:

359      <map:match equals="aggregation/xinclude-transformer">
360         <map:generate src="aggregation/xinclude.xml" />
361         <map:transform type="xinclude" />
362         <map:serialize type="xml" />
363       </map:match>

The file aggregation/xinclude.xml doesn't even exist, so I can not
test if this is working and compare it to mine.

Am I missing something ??


On Sun, Nov 11, 2012 at 10:21 PM, Mansour Al Akeel
<mansour.alakeel@gmail.com> wrote:
> Is there a way to use xinclude from sitemap ??

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


Mime
View raw message