[opencms-dev] Null Pointer Exception in CmsXmlPage.convertOldDocument()

Padraic Hannon pih at wasabicowboy.com
Wed Sep 1 22:14:20 CEST 2004


I'm using the latest OpenCms code from cvs and am running into problems 
following Alexander's instructions for creating multiple content bodies. 
I created a default_body with the following xml:

<?xml version="1.0" encoding="ISO-8859-1"?>
<XMLTEMPLATE>
     <TEMPLATE><![CDATA[ ]]></TEMPLATE>
     <edittemplate><![CDATA[ ]]></edittemplate>
     <template name="body"><![CDATA[ ]]></template>
     <edittemplate name="body"><![CDATA[ ]]></edittemplate>
     <template name="body2"><![CDATA[ ]]></template>
     <edittemplate name="body2"><![CDATA[ ]]></edittemplate>
</XMLTEMPLATE>

but keep getting a null pointer exception on line 439:
            for (Iterator i = 
m_document.getRootElement().element(NODE_ELEMENTS).elementIterator(NODE_ELEMENT); 
i.hasNext();) {

since m_document.getRootElement().element(NODE_ELEMENTS) returning null. 
Is there something wrong with my content body xml?

Thanks in advance,
Paddy Hannon











More information about the opencms-dev mailing list