AW: [opencms-dev] element cache & multiple bodies -> NullPointerE xception

Michael Dernen Michael.Dernen at
Thu Sep 6 14:32:51 CEST 2001

the solution to your problem is probably to add a 
class information to the elementdef of the second body
like this:

<ELEMENTDEF name="body2">

It's a known bug that the "fallback" to the class of the 
body element isn't working in the current opencms release 4.4


-----Ursprüngliche Nachricht-----
Von: O_Faulhaber at
[mailto:O_Faulhaber at]
Gesendet: Donnerstag, 6. September 2001 14:02
An: opencms-dev at
Betreff: [opencms-dev] element cache & multiple bodies ->

Hi OpenCms-Developers

I need urgent assistance: when i request a page which contains two bodies
(defined in the master template) and the element cache is enabled (in then a NullpointerException will be thrown (take look at
stacktrace.txt). The Exception only occures, when the templateselector-tag
is used in the elementdef section.

i am really helpless, what am i doing wrong?

------master template------

<?xml version="1.0"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<title>]]><method name="getTitle"/><![CDATA[</title>
	<ELEMENT name="body"/>
	<ELEMENT name="body2"/>
<ELEMENTDEF name="body2">

Dipl.-Inform./Medien (FH)       Oliver Faulhaber
Push Interactive GmbH           Fon: +49/202/2427-346
VillaMedia, Viehhofstrasse 125  Fax: +49/202/2427-310
D-42117 Wuppertal               URL:

More information about the opencms-dev mailing list