cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject RE: [headsup!] NPE in sitemap reloading (the first time!)
Date Mon, 28 Apr 2003 06:30:04 GMT
I fixed this over the weekend

Carsten

> -----Original Message-----
> From: Stefano Mazzocchi [mailto:stefano@apache.org]
> Sent: Thursday, April 24, 2003 7:04 PM
> To: Apache Cocoon
> Subject: [headsup!] NPE in sitemap reloading (the first time!)
> 
> 
> Running the latest and gretest CVS HEAD today, everytime I modify the
> sitemap and it gets reloaded, I get the following:
> 
> java.lang.NullPointerException
> 	at
> org.apache.cocoon.components.CocoonComponentManager.resolveURI(Coc
oonComponentManager.java:456)
> 	at
> org.apache.cocoon.environment.AbstractEnvironment.resolveURI(Abstr
actEnvironment.java:490)
> 	at
> org.apache.cocoon.environment.AbstractEnvironment.resolveURI(Abstr
actEnvironment.java:480)
> 	at 
> org.apache.cocoon.generation.FileGenerator.setup(FileGenerator.java:104)
> 	at
> org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.s
> etupPipeline(AbstractProcessingPipeline.java:378)
> 	at
> org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessi
> ngPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:651)
> 	at
> org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.p
> reparePipeline(AbstractProcessingPipeline.java:505)
> 	at
> org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.p
> rocess(AbstractProcessingPipeline.java:467)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.i
> nvoke(SerializeNode.java:150)
> 	at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessin
> gNode.invokeNodes(AbstractParentProcessingNode.java:84)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatch
> Node.invoke(PreparableMatchNode.java:164)
> 	at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessin
> gNode.invokeNodes(AbstractParentProcessingNode.java:108)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.in
> voke(PipelineNode.java:162)
> 	at
> org.apache.cocoon.components.treeprocessor.AbstractParentProcessin
> gNode.invokeNodes(AbstractParentProcessingNode.java:108)
> 	at
> org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.i
> nvoke(PipelinesNode.java:162)
> 	at
> org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T
reeProcessor.java:325)
> 	at
> org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T
reeProcessor.java:307)
> 	at org.apache.cocoon.Cocoon.process(Cocoon.java:640)
> 	at 
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1103)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at 
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
> 	at
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplic
ationHandler.java:294)
> 	at 
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
> 	at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
> 	at
> org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicat
ionContext.java:507)
> 	at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
> 	at org.mortbay.http.HttpServer.service(HttpServer.java:863)
> 	at org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
> 	at 
> org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)
> 	at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
> 	at
> org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
> 	at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
> 	at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)
> 
> It seems that the source resolver is set to null when the sitemap is
> cleaned up but its set back only *after* the first request.
> 
> i don't have time to go there and fix it, but it should be pretty
> trivial, yet a pretty serious issue.
> 
> -- 
> Stefano.
> 
> 

Mime
View raw message