cocoon-users-fr mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frédéric Glorieux <frederic.glori...@ajlsm.com>
Subject copy-source génère une NPE dans AbstractEnvironment.release ?
Date Tue, 14 Feb 2006 15:33:30 GMT

Je tente de migrer une application Cocoon 2.1.5 vers Cocoon 2.1.8.

Dans un morceau de Sitemap j'ai ceci

<map:match pattern="resource.copy">
   <map:act type="copy-source" src="cocoon:/resource.xml">
     <map:parameter name="dest" value="context://stockage/resource.xml"/>
   </map:act>
   <map:generate src="context://stockage/resource.xml"/>
   <map:serialize type="debug"/>
</map:match>

<map:act/> placé avant (ou bien incluant le générateur)
l'action se fait
mais une exception est générée dans la console à chaque fois. [1]

Quand l'action est après, elle n'est pas exécutée, pas d'exception.

Est-ce grave ?

[1] =================

java.lang.NullPointerException
         at
org.apache.cocoon.environment.AbstractEnvironment.release(AbstractEnvironment.j
ava:565)
         at
org.apache.cocoon.environment.wrapper.MutableEnvironmentFacade.release(MutableE
nvironmentFacade.java:308)
         at
org.apache.cocoon.generation.FileGenerator.recycle(FileGenerator.java:63)
         at
org.apache.avalon.excalibur.pool.InstrumentedResourceLimitingPool.put(Instrumen
tedResourceLimitingPool.java:407)
         at
org.apache.avalon.excalibur.component.PoolableComponentHandler.doPut(PoolableCo
mponentHandler.java:212)
         at
org.apache.avalon.excalibur.component.ComponentHandler.put(ComponentHandler.jav
a:425)
         at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.release(Excali
burComponentSelector.java:307)
         at
org.apache.cocoon.components.ExtendedComponentSelector.release(ExtendedComponen
tSelector.java:300)
         at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.recycle(Abstra
ctProcessingPipeline.java:720)
         at
org.apache.cocoon.components.pipeline.impl.BaseCachingProcessingPipeline.recycl
e(BaseCachingProcessingPipeline.java:77)
         at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.re
cycle(AbstractCachingProcessingPipeline.java:993)
         at
org.apache.avalon.excalibur.pool.InstrumentedResourceLimitingPool.put(Instrumen
tedResourceLimitingPool.java:407)
         at
org.apache.avalon.excalibur.component.PoolableComponentHandler.doPut(PoolableCo
mponentHandler.java:212)
         at
org.apache.avalon.excalibur.component.ComponentHandler.put(ComponentHandler.jav
a:425)
         at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.release(Excali
burComponentSelector.java:307)
         at
org.apache.cocoon.components.ExtendedComponentSelector.release(ExtendedComponen
tSelector.java:300)
         at
org.apache.cocoon.components.EnvironmentDescription.release(CocoonComponentMana
ger.java:678)
         at
org.apache.cocoon.components.CocoonComponentManager.endProcessing(CocoonCompone
ntManager.java:243)
         at org.apache.cocoon.Cocoon.process(Cocoon.java:719)
         at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil
terChain.java:237)
         at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain
.java:157)
         at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
214)
         at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.j
ava:104)
         at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextVal
ve.java:198)
         at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
152)
         at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.j
ava:104)
         at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.j
ava:104)
         at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.j
ava:102)
         at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:10
9)
         at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.j
ava:104)
         at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnecti
on(Http11Protocol.java:705)
         at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:6
83)
         at java.lang.Thread.run(Thread.java:534)

[2] ================

ERROR   (2006-02-11) 09:47.58:481   [sitemap]
(/Ceddre/0000021/cforms/sdx)
http-8080-Processor25/AbstractProcessingPipeline: Unable to release self
from automatic release.
org.apache.cocoon.ProcessingException: Unable to remove component from
automatic release: no environment available.
	at
org.apache.cocoon.components.CocoonComponentManager.removeFromAutomaticRelease(CocoonComponentManager.java:489)
	at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.release(AbstractProcessingPipeline.java:184)
	at
org.apache.cocoon.components.source.impl.SitemapSource.reset(SitemapSource.java:433)
	at
org.apache.cocoon.components.source.impl.SitemapSource.recycle(SitemapSource.java:460)
	at
org.apache.cocoon.components.source.impl.SitemapSourceFactory.release(SitemapSourceFactory.java:78)
	at
org.apache.excalibur.source.impl.SourceResolverImpl.release(SourceResolverImpl.java:269)
	at
org.apache.cocoon.components.CocoonComponentManager.release(CocoonComponentManager.java:548)
	at
org.apache.cocoon.components.CocoonComponentManager.release(CocoonComponentManager.java:548)
	at
org.apache.cocoon.components.CocoonComponentManager.release(CocoonComponentManager.java:548)
	at
org.apache.cocoon.components.CocoonComponentManager.release(CocoonComponentManager.java:548)
	at
org.apache.cocoon.components.CocoonComponentManager.release(CocoonComponentManager.java:548)
	at
org.apache.cocoon.environment.AbstractEnvironment.release(AbstractEnvironment.java:565)
	at
org.apache.cocoon.environment.wrapper.MutableEnvironmentFacade.release(MutableEnvironmentFacade.java:308)
	at
org.apache.cocoon.generation.FileGenerator.recycle(FileGenerator.java:63)
	at
org.apache.avalon.excalibur.pool.InstrumentedResourceLimitingPool.put(InstrumentedResourceLimitingPool.java:407)
	at
org.apache.avalon.excalibur.component.PoolableComponentHandler.doPut(PoolableComponentHandler.java:212)
	at
org.apache.avalon.excalibur.component.ComponentHandler.put(ComponentHandler.java:425)
	at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.release(ExcaliburComponentSelector.java:307)
	at
org.apache.cocoon.components.ExtendedComponentSelector.release(ExtendedComponentSelector.java:300)
	at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.recycle(AbstractProcessingPipeline.java:720)
	at
org.apache.cocoon.components.pipeline.impl.BaseCachingProcessingPipeline.recycle(BaseCachingProcessingPipeline.java:77)
	at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.recycle(AbstractCachingProcessingPipeline.java:993)
	at
org.apache.avalon.excalibur.pool.InstrumentedResourceLimitingPool.put(InstrumentedResourceLimitingPool.java:407)
	at
org.apache.avalon.excalibur.component.PoolableComponentHandler.doPut(PoolableComponentHandler.java:212)
	at
org.apache.avalon.excalibur.component.ComponentHandler.put(ComponentHandler.java:425)
	at
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.release(ExcaliburComponentSelector.java:307)
	at
org.apache.cocoon.components.ExtendedComponentSelector.release(ExtendedComponentSelector.java:300)
	at
org.apache.cocoon.components.EnvironmentDescription.release(CocoonComponentManager.java:678)
	at
org.apache.cocoon.components.CocoonComponentManager.endProcessing(CocoonComponentManager.java:243)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:719)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
	at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
	at java.lang.Thread.run(Thread.java:534)


-- 
Frédéric Glorieux (AJLSM, http://ajlsm.com)


---------------------------------------------------------------------
Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/
Pour vous desinscrire : mailto:users-fr-unsubscribe@cocoon.apache.org
Autres commandes : mailto:users-fr-help@cocoon.apache.org


Mime
View raw message