cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stuart Roebuck <stuart.roeb...@adolos.co.uk>
Subject [C2] sitemap_xmap.java bug?
Date Mon, 30 Jul 2001 18:52:43 GMT
Further on my quest to find why processing is taking longer than 
anticipated (but processing time is not being noticed by the Profiler), I 
notice the following lines appearing regularly in my compiled sitemap:

>       if (true)
>         return true;
>
>
>       listOfMaps.remove (listOfMaps.size() - 1);

Clearly the listOfMaps.remove line is never going to be called.  Is this 
intentional?

This may or may not be related to my core problem which appears to amount 
to the fact that some page requests are causing 16 new JaxpParser 
components (TraxTransformers) to be generated in two lots of 8.  This is 
*not* under load - ie. one request at a time!

It appears as though the TraxTransformers are not being reused.  However, 
this doesn't happen all the time, it only appears to happen when the trax 
transformation is part of a cocoon match which is being referenced within 
another match in the sitemap using "cocoon:/"

Here's an example stack dump at the time:

>   [1] org.apache.cocoon.components.parser.JaxpParser.newDocument 
> (JaxpParser.java:79)
>   [2] 
> org.apache.cocoon.components.browser.BrowserImpl.createDocumentForBrowserInfo 
> (BrowserImpl.java:393)
>   [3] org.apache.cocoon.components.browser.BrowserImpl.compose 
> (BrowserImpl.java:281)
>   [4] 
> org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance 
> (DefaultComponentFactory.java:98)
>   [5] org.apache.avalon.excalibur.component.DefaultComponentHandler.get 
> (DefaultComponentHandler.java:92)
>   [6] 
> org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup 
> (ExcaliburComponentManager.java:266)
>   [7] 
> org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup 
> (ExcaliburComponentManager.java:223)
>   [8] org.apache.cocoon.transformation.TraxTransformer.compose 
> (TraxTransformer.java:334)
>   [9] 
> org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance 
> (DefaultComponentFactory.java:98)
>   [10] org.apache.avalon.excalibur.pool.AbstractPool.newPoolable 
> (AbstractPool.java:70)
>   [11] org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow 
> (SoftResourceLimitingPool.java:82)
>   [12] org.apache.avalon.excalibur.pool.DefaultPool.get (DefaultPool.java:
> 125)
>   [13] org.apache.avalon.excalibur.component.PoolableComponentHandler.get 
> (PoolableComponentHandler.java:117)
>   [14] 
> org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select 
> (ExcaliburComponentSelector.java:246)
>   [15] org.apache.cocoon.sitemap.SitemapComponentSelector.select 
> (SitemapComponentSelector.java:49)
>   [16] 
> org.apache.cocoon.components.pipeline.AbstractEventPipeline.addTransformer 
> (AbstractEventPipeline.java:95)
>   [17] 
> org.apache.cocoon.components.pipeline.CachingEventPipeline.addTransformer 
> (CachingEventPipeline.java:93)
>   [18] org.apache.cocoon.www.file_.Users.stuart.Documents.Clients.Adolos.
> Adolos_Website.Development.webapp.sitemap_xmap.wildcardMatchN334 
> (sitemap_xmap.java:3108)
>   [19] org.apache.cocoon.www.file_.Users.stuart.Documents.Clients.Adolos.
> Adolos_Website.Development.webapp.sitemap_xmap.process (sitemap_xmap.java:
> 1467)
>   [20] org.apache.cocoon.www.file_.Users.stuart.Documents.Clients.Adolos.
> Adolos_Website.Development.webapp.sitemap_xmap.process (sitemap_xmap.java:
> 1346)
>   [21] org.apache.cocoon.components.source.SitemapSource.refresh 
> (SitemapSource.java:247)
>   [22] org.apache.cocoon.components.source.SitemapSource.<init> 
> (SitemapSource.java:145)
>   [23] org.apache.cocoon.components.source.CocoonSourceFactory.getSource 
> (CocoonSourceFactory.java:53)
>   [24] org.apache.cocoon.components.source.SourceHandlerImpl.getSource 
> (SourceHandlerImpl.java:132)
>   [25] org.apache.cocoon.environment.AbstractEnvironment.resolve 
> (AbstractEnvironment.java:229)
>   [26] org.apache.cocoon.generation.ServerPagesGenerator.setup 
> (ServerPagesGenerator.java:140)
>   [27] 
> org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline 
> (AbstractEventPipeline.java:146)
>   [28] org.apache.cocoon.components.pipeline.CachingEventPipeline.setup 
> (CachingEventPipeline.java:246)
>   [29] 
> org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey 
> (CachingEventPipeline.java:108)
>   [30] 
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.process 
> (CachingStreamPipeline.java:279)
>   [31] org.apache.cocoon.www.file_.Users.stuart.Documents.Clients.Adolos.
> Adolos_Website.Development.webapp.sitemap_xmap.wildcardMatchN2EE 
> (sitemap_xmap.java:2854)
>   [32] org.apache.cocoon.www.file_.Users.stuart.Documents.Clients.Adolos.
> Adolos_Website.Development.webapp.sitemap_xmap.process (sitemap_xmap.java:
> 1447)
>   [33] org.apache.cocoon.www.file_.Users.stuart.Documents.Clients.Adolos.
> Adolos_Website.Development.webapp.sitemap_xmap.process (sitemap_xmap.java:
> 1330)
>   [34] org.apache.cocoon.sitemap.Handler.process (Handler.java:160)
>   [35] org.apache.cocoon.sitemap.Manager.invoke (Manager.java:103)
>   [36] org.apache.cocoon.Cocoon.process (Cocoon.java:423)
>   [37] org.apache.cocoon.servlet.CocoonServlet.service 
> (CocoonServlet.java:507)
>   [38] javax.servlet.http.HttpServlet.service (HttpServlet.java:853)
>   [39] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter 
> (ApplicationFilterChain.java:247)
>   [40] org.apache.catalina.core.ApplicationFilterChain.doFilter 
> (ApplicationFilterChain.java:193)
>   [41] org.apache.catalina.core.StandardWrapperValve.invoke 
> (StandardWrapperValve.java:243)
>   [42] org.apache.catalina.core.StandardPipeline.invokeNext 
> (StandardPipeline.java:566)
>   [43] org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.
> java:472)
>   [44] org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:
> 943)
>   [45] org.apache.catalina.core.StandardContextValve.invoke 
> (StandardContextValve.java:219)
>   [46] org.apache.catalina.core.StandardPipeline.invokeNext 
> (StandardPipeline.java:566)
>   [47] org.apache.catalina.valves.CertificatesValve.invoke 
> (CertificatesValve.java:246)
>   [48] org.apache.catalina.core.StandardPipeline.invokeNext 
> (StandardPipeline.java:564)
>   [49] org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.
> java:472)
>   [50] org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:
> 943)
>   [51] org.apache.catalina.core.StandardContext.invoke 
> (StandardContext.java:2251)
>   [52] org.apache.catalina.core.StandardHostValve.invoke 
> (StandardHostValve.java:164)
>   [53] org.apache.catalina.core.StandardPipeline.invokeNext 
> (StandardPipeline.java:566)
>   [54] org.apache.catalina.valves.AccessLogValve.invoke 
> (AccessLogValve.java:446)
>   [55] org.apache.catalina.core.StandardPipeline.invokeNext 
> (StandardPipeline.java:564)
>   [56] org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.
> java:472)
>   [57] org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:
> 943)
>   [58] org.apache.catalina.core.StandardEngineValve.invoke 
> (StandardEngineValve.java:163)
>   [59] org.apache.catalina.core.StandardPipeline.invokeNext 
> (StandardPipeline.java:566)
>   [60] org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.
> java:472)
>   [61] org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:
> 943)
>   [62] org.apache.catalina.connector.http.HttpProcessor.process 
> (HttpProcessor.java:984)
>   [63] org.apache.catalina.connector.http.HttpProcessor.run 
> (HttpProcessor.java:1074)
>   [64] java.lang.Thread.run (Thread.java:496)

Responses from folk who know this thing much better than I would be much 
appreciated, I've been at this one for three days now and my previous 
posts don't seem to have generated much interest!  :-(

Stuart.

-------------------------------------------------------------------------
Stuart Roebuck                                  stuart.roebuck@adolos.com
Lead Developer                               Java, XML, MacOS X, XP, etc.
ADOLOS                                           <http://www.adolos.com/>

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


Mime
View raw message