[opencms-dev] NullPointerException with old templates

Thomas Zillinger ThomasZillinger at gmx.at
Thu Aug 9 17:12:18 CEST 2001


Hi

> Hi,
>
> you have switched on the element-cache
>
> (See properties file opencms.properties:
>   # Element cache parameters
>   ######################################
>   elementcache.enabled = true
> )
>
> The element-cache needs complete elementdefinitions with mastetemplate and
> class. You can switch off the element-cache if you need the feature of
short
> element definitions.
>
> In a later distribution of OpenCms the element-cache will handle these
short
> element-definitions.
>
> > <ELEMENTDEF name="body1">
> > <TEMPLATESELECTOR>body1</TEMPLATESELECTOR>
> > </ELEMENTDEF>
>

I have the same problems under 4.4.0. I didn't change the initial
element-cache definition:

# Element cache parameters
######################################
elementcache.enabled = false
elementcache.uri = 10000
elementcache.elements = 50000
elementcache.variants = 100

I wanted to use the proposed example for multiple templates in one XML-file
from the 4.0 Manual (chapter 1.5), but this resulted in a
NullPointerException when using the <TEMPLATESELECTOR>.

regards
Tom




More information about the opencms-dev mailing list