[opencms-dev] NullPointerException with old templates

Stephan Hartmann hartmann at waehrisch-feykes.de
Thu Aug 9 14:28:27 CEST 2001


Hi,

i have just imported my website from version 4.3.22 into opencms 4.4.0 and 
encountered serious problems viewing the pages.

I get a NullPointerException when i view a page using a template like that:
<?xml ...?>
<XMLTEMPLATE>
<TEMPLATE>
...
<ELEMENT name="body1"/>
...
</TEMPLATE>

<ELEMENTDEF name="body1">
<TEMPLATESELECTOR>body1</TEMPLATESELECTOR>
</ELEMENTDEF>

</XMLTEMPLATE>

other elements which do not use a templateselector but another template work 
fine.

Thanks for quick help.

Stephan


The exact Error is:
2001-08-09 16:14:52 - Ctx( /opencms ): Exception in: R( /opencms + /opencms + 
/wir/test.html) - java.lang.NullPointerException
        at 
com.opencms.template.cache.A_CmsElement.checkProxySettings(A_CmsElement.java:287)
        at 
com.opencms.template.cache.CmsUri.callCanonicalRoot(CmsUri.java:103)
        at 
com.opencms.template.cache.CmsElementCache.callCanonicalRoot(CmsElementCache.java:120)
        at 
com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:209)
        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:402)
        at 
com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:467)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at com.opencms.boot.OpenCmsServlet.service(OpenCmsServlet.java:106)
        at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
        at org.apache.tomcat.core.Handler.service(Handler.java:287)
        at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
        at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
        at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
        at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
        at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
        at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
        at java.lang.Thread.run(Thread.java:484)              



More information about the opencms-dev mailing list