[opencms-dev] java.lang.NullPointerException after disabling Element-Cache (Op enCMS 4.4.6)

"Bührle, Martin, FCI1" martin.buehrle at lfk.eads.net
Wed May 8 20:14:52 CEST 2002


Hi everybody,


we are using OpenCMS 4.4.6.
Becaus of some update-problems when we change the content within the CMS I
switched off the 
ElementCache in opencms.properties.
Since that I always get the following error-message, when I try to publish a
changed page from OpenCMS-Content directly (Direkt veroeffentlichen).
When I turn the ElementCache on (true), as it was before, everything is o.k.

Does anybody know what to do?
I have to turn the ElementCache off, because of our update-problems when we
are changing the content.


We have Apache1.3/Tomcat 4.0.1 and Warp-Connector installed on LINUX 2.4.18

Thanks for help!


MARTIN



ERROR - Message when we use "direct publishing" (Direkt veroeffentlichen) of
a page, that was changed with ElementCache switched off (false) in
opencms.properties.

============================================================================
=======
[CmsException]: 28 Error while launching template class. Detailed Error:
Received error while calling canonical root for requested file
publish_resource. . Caught Exception: >java.lang.NullPointerException<
	at
com.opencms.launcher.A_CmsLauncher.handleException(A_CmsLauncher.java:217)
	at
com.opencms.launcher.A_CmsLauncher.callCanonicalRoot(A_CmsLauncher.java:99)
	at
com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:223)
	at
com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:264)
	at
com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:272)
	at com.opencms.core.OpenCms.showResource(OpenCms.java:403)
	at
com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:476)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled
Code))
	at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled
Code))
	at com.opencms.boot.OpenCmsServlet.service(OpenCmsServlet.java:117)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java(Compiled Code))
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java(Compiled Code))
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va(Compiled Code))
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(C
ompiled Code))
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compi
led Code))
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java(Compiled
Code))
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va(Compiled Code))
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(C
ompiled Code))
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compi
led Code))
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java(Compile
d Code))
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java(Compile
d Code))
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java(Com
piled Code))
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(C
ompiled Code))
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java(Compiled Code))
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java(Com
piled Code))
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java(Com
piled Code))
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(C
ompiled Code))
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compi
led Code))
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java(Compiled
Code))
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
(Compiled Code))
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(C
ompiled Code))
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compi
led Code))
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java(Compiled
Code))
	at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
ler.java:215)
	at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
4)
	at java.lang.Thread.run(Thread.java:498)
>java.lang.NullPointerException
>	at com.opencms.file.CmsObject.publishProject(CmsObject.java:2350)
>	at com.opencms.file.CmsObject.publishResource(CmsObject.java:2397)
>	at
com.opencms.workplace.CmsPublishResource.getContent(CmsPublishResource.java:
123)
>	at
com.opencms.template.CmsXmlTemplate.getContent(CmsXmlTemplate.java:122)
>	at
com.opencms.template.CmsRootTemplate.getMasterTemplate(CmsRootTemplate.java:
123)
>	at
com.opencms.launcher.A_CmsLauncher.callCanonicalRoot(A_CmsLauncher.java:94)
>	at
com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:223)
>	at
com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:264)
>	at
com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:272)
>	at com.opencms.core.OpenCms.showResource(OpenCms.java:403)
>	at
com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:476)
>	at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled
Code))
>	at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled
Code))
>	at com.opencms.boot.OpenCmsServlet.service(OpenCmsServlet.java:117)
>	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java(Compiled Code))
>	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java(Compiled Code))
>	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va(Compiled Code))
>	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(C
ompiled Code))
>	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compi
led Code))
>	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java(Compiled
Code))
>	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va(Compiled Code))
>	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(C
ompiled Code))
>	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compi
led Code))
>	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java(Compile
d Code))
>	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java(Compile
d Code))
>	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java(Com
piled Code))
>	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(C
ompiled Code))
>	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java(Compiled Code))
>	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java(Com
piled Code))
>	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java(Com
piled Code))
>	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(C
ompiled Code))
>	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compi
led Code))
>	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java(Compiled
Code))
>	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
(Compiled Code))
>	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(C
ompiled Code))
>	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compi
led Code))
>	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java(Compiled
Code))
>	at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
ler.java:215)
>	at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
4)
>	at java.lang.Thread.run(Thread.java:498)

java.lang.NullPointerException
	at com.opencms.file.CmsObject.publishProject(CmsObject.java:2350)
	at com.opencms.file.CmsObject.publishResource(CmsObject.java:2397)
	at
com.opencms.workplace.CmsPublishResource.getContent(CmsPublishResource.java:
123)
	at
com.opencms.template.CmsXmlTemplate.getContent(CmsXmlTemplate.java:122)
	at
com.opencms.template.CmsRootTemplate.getMasterTemplate(CmsRootTemplate.java:
123)
	at
com.opencms.launcher.A_CmsLauncher.callCanonicalRoot(A_CmsLauncher.java:94)
	at
com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:223)
	at
com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:264)
	at
com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:272)
	at com.opencms.core.OpenCms.showResource(OpenCms.java:403)
	at
com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:476)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled
Code))
	at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled
Code))
	at com.opencms.boot.OpenCmsServlet.service(OpenCmsServlet.java:117)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java(Compiled Code))
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java(Compiled Code))
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va(Compiled Code))
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(C
ompiled Code))
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compi
led Code))
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java(Compiled
Code))
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va(Compiled Code))
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(C
ompiled Code))
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compi
led Code))
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java(Compile
d Code))
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java(Compile
d Code))
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java(Com
piled Code))
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(C
ompiled Code))
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java(Compiled Code))
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java(Com
piled Code))
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java(Com
piled Code))
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(C
ompiled Code))
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compi
led Code))
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java(Compiled
Code))
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
(Compiled Code))
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(C
ompiled Code))
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compi
led Code))
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java(Compiled
Code))
	at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
ler.java:215)
	at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
4)
	at java.lang.Thread.run(Thread.java:498)
============================================================================
========0






More information about the opencms-dev mailing list