Bug 45265 - NPE in console when importing the example content (of the default publication)
Summary: NPE in console when importing the example content (of the default publication)
Status: NEW
Alias: None
Product: Lenya
Classification: Unclassified
Component: Miscellaneous (show other bugs)
Version: Trunk
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Lenya Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-24 02:26 UTC by Juergen Ragaller
Modified: 2008-07-15 05:17 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Ragaller 2008-06-24 02:26:00 UTC
When the content of the default publication is imported, null pointer exceptions are displayed in the console window; everything else seems to work as expected.

Stacktrace fragment:


java.lang.NullPointerException
	at org.apache.cocoon.environment.AbstractEnvironment.release(AbstractEnvironment.java:563)
	at org.apache.cocoon.environment.wrapper.MutableEnvironmentFacade.release(MutableEnvironmentFacade.java:314)
	at org.apache.cocoon.generation.FileGenerator.recycle(FileGenerator.java:64)
	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:301)
	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.recycle(AbstractProcessingPipeline.java:723)
	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:301)
	at org.apache.cocoon.components.EnvironmentDescription.release(CocoonComponentManager.java:695)
	at org.apache.cocoon.components.CocoonComponentManager.endProcessing(CocoonComponentManager.java:262)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:739)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427)
	at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:475)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
	at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:635)
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
	at org.mortbay.jetty.plus.PlusWebAppContext.handle(PlusWebAppContext.java:158)
	at org.mortbay.http.HttpServer.service(HttpServer.java:954)
	at org.mortbay.http.HttpConnection.service(HttpConnection.java:814)
	at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)
	at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)
	at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
	at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
	at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
java.lang.NullPointerException
	at org.apache.cocoon.environment.AbstractEnvironment.release(AbstractEnvironment.java:563)
	at org.apache.cocoon.environment.wrapper.MutableEnvironmentFacade.release(MutableEnvironmentFacade.java:314)
	at org.apache.cocoon.transformation.TraxTransformer.recycle(TraxTransformer.java:549)
	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:301)
	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.recycle(AbstractProcessingPipeline.java:735)
	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:301)
	at org.apache.cocoon.components.EnvironmentDescription.release(CocoonComponentManager.java:695)
	at org.apache.cocoon.components.CocoonComponentManager.endProcessing(CocoonComponentManager.java:262)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:739)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427)
	at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:475)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
	at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:635)
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
	at org.mortbay.jetty.plus.PlusWebAppContext.handle(PlusWebAppContext.java:158)
	at org.mortbay.http.HttpServer.service(HttpServer.java:954)
	at org.mortbay.http.HttpConnection.service(HttpConnection.java:814)
	at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)
	at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)
	at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
	at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
	at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
Comment 1 Andreas Hartmann 2008-07-15 05:14:07 UTC
The NPEs occur when the homepage is requested. They seem to be related to the news inclusion; after commenting out the news include statements they don't occur anymore.
Comment 2 Andreas Hartmann 2008-07-15 05:15:55 UTC
The news overview page or single news items don't trigger the NPEs.
Comment 3 Juergen Ragaller 2008-07-15 05:17:48 UTC
(In reply to comment #1)
> The NPEs occur when the homepage is requested. They seem to be related to the
> news inclusion; after commenting out the news include statements they don't
> occur anymore.
> 

I was just digging as well and found that spot too - the error occurs as well when the include transformer is used (instead of the cinclude transformer).