On 03/26/2012 07:09 PM, Lars Huttar wrote:
On 3/26/2012 11:47 AM, Thorsten Scherler wrote:
On 03/26/2012 04:49 PM, Francesco Chicchiriccò wrote:
...
Despite of this, I can assure that my company and at least a couple of
other companies have several production applications based on Cocoon
3.0, so my suggestion would be "keep pushing" ;-)

This said, I should have said much earlier something but the discussion about c3 belongs on the dev list until we have an official release. If you want to keep up with your development I strongly recommend to sync c3 trunk regular.

Ok, thanks for this tip. I will send future questions to the dev list.


...
What does
<map:generate src="generators/languages-in-country.xml" /> gives you if you add it directly?

For that we get a very similar result:

2012-03-26 12:02:32,052 DEBUG 4650852@qtp-775647-0 org.apache.cocoon.servletservice.DispatcherServlet - DispatcherServlet: service servlet=org.apache.cocoon.servlet.XMLSitemapServlet@1e247e2 mountPath= servletPath= pathInfo=/generator/languages-in-country/country_id/77/source 2012-03-26 12:02:32,065 DEBUG 4650852@qtp-775647-0 org.apache.cocoon.servlet.RequestProcessor - Setting the baseURL to file:/C:/Users/HuttarL/Documents/work/c3/theParent/e-17-pub/./src/main/resources/COB-INF/ 2012-03-26 12:02:32,149 INFO 4650852@qtp-775647-0 org.apache.cocoon.servlet.RequestProcessor - Performing GET request at /generator/languages-in-country/country_id/77/source 2012-03-26 12:02:32,149 DEBUG 4650852@qtp-775647-0 org.apache.cocoon.servlet.RequestProcessor - The base URL for this request is file:/C:/Users/HuttarL/Documents/work/c3/theParent/e-17-pub/./src/main/resources/COB-INF/ 2012-03-26 12:02:32,169 DEBUG 4650852@qtp-775647-0 org.apache.cocoon.sitemap.node.AbstractSitemapNode - PipelinesNode.invoke(/generator/languages-in-country/country_id/77/source) 2012-03-26 12:02:32,170 DEBUG 4650852@qtp-775647-0 org.apache.cocoon.sitemap.node.AbstractSitemapNode - PipelineNode(caching).invoke(/generator/languages-in-country/country_id/77/source) 2012-03-26 12:02:32,191 DEBUG 4650852@qtp-775647-0 org.apache.cocoon.sitemap.node.AbstractSitemapNode - MatchNode.invoke(/generator/languages-in-country/country_id/77/source) 2012-03-26 12:02:32,197 DEBUG 4650852@qtp-775647-0 org.apache.cocoon.sitemap.node.MatchNode$MatcherContext - Matching: expression=test.html, testValue=generator/languages-in-country/country_id/77/source, result=null 2012-03-26 12:02:32,197 DEBUG 4650852@qtp-775647-0 org.apache.cocoon.sitemap.node.AbstractSitemapNode - MatchNode.invoke(/generator/languages-in-country/country_id/77/source) 2012-03-26 12:02:32,197 DEBUG 4650852@qtp-775647-0 org.apache.cocoon.sitemap.node.MatchNode$MatcherContext - Matching: expression=generator/languages-in-country/country_id/77/source, testValue=generator/languages-in-country/country_id/77/source, result={0=generator/languages-in-country/country_id/77/source} 2012-03-26 12:02:32,198 DEBUG 4650852@qtp-775647-0 org.apache.cocoon.sitemap.node.AbstractSitemapNode - GenerateNode(src=generators/languages-in-country.xml, type=url).invoke(/generator/languages-in-country/country_id/77/source) 2012-03-26 12:02:32,210 DEBUG 4650852@qtp-775647-0 org.apache.cocoon.pipeline.AbstractPipeline - Adding component XMLGenerator(hashCode=21679729 internalGenerator=URLGenerator(hashCode=7501974 source=file:/C:/Users/HuttarL/Documents/work/c3/theParent/e-17-pub/src/main/resources/COB-INF/generators/languages-in-country.xml)) to pipeline [CachingPipeline(hashCode=3632323 components=[])]. 2012-03-26 12:02:32,210 DEBUG 4650852@qtp-775647-0 org.apache.cocoon.sitemap.node.AbstractSitemapNode - SerializeNode(type=xml).invoke(/generator/languages-in-country/country_id/77/source) 2012-03-26 12:02:32,320 DEBUG 4650852@qtp-775647-0 org.apache.cocoon.pipeline.AbstractPipeline - Adding component XMLSerializer(hashCode=9852500) to pipeline [CachingPipeline(hashCode=3632323 components=[XMLGenerator(hashCode=21679729 internalGenerator=URLGenerator(hashCode=7501974 source=file:/C:/Users/HuttarL/Documents/work/c3/theParent/e-17-pub/src/main/resources/COB-INF/generators/languages-in-country.xml))])]. 2012-03-26 12:02:32,321 INFO 4650852@qtp-775647-0 org.apache.cocoon.servlet.RequestProcessor - Sitemap execution for /generator/languages-in-country/country_id/77/source took 171.6865 ms. 2012-03-26 12:02:32,329 ERROR 4650852@qtp-775647-0 org.apache.cocoon.servlet.XMLSitemapServlet - Cocoon can't process the request.
java.lang.NullPointerException: null
at org.apache.cocoon.servlet.collector.ResponseHeaderCollector.isModifiedResponse(ResponseHeaderCollector.java:176) ~[cocoon-servlet-3.0.0-beta-1-SNAPSHOT.jar:3.0.0-beta-1-SNAPSHOT] at org.apache.cocoon.servlet.RequestProcessor.sendSitemapResponse(RequestProcessor.java:354) ~[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:54) ~[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-20081211.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_14] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_14] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_14]
    at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_14]
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
...
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) [jetty-util-6.1.26.jar:6.1.26]




It is really weird since we are talking about

 public static boolean isModifiedResponse() {
        return (Boolean) collectorDataStore.get(KEY_PIPELINE_EXECUTED);
    }

So either collectorDataStore is null (what should not since it gets instanced on start) or the result of the get which points to that the pipeline-executed infos got lost.

I never saw this behavior before let us see what the direct use test gives.

I need to see this xml to try it on my linux box. I have to admit in my team we are all on linux or mac, so I cannot exclude plain windows woos but trying that file on my box I could say something.

salu2

--
Thorsten Scherler<thorsten.at.apache.org>
codeBusters S.L. - web based systems
<consulting, training and solutions>
http://www.codebusters.es/

Reply via email to