[opencms-dev] readCategories

Lorenz Lammersdorf lorenz.lammersdorf at kernbrand.ch
Thu Nov 26 22:34:35 CET 2015


hi list,

i have 3 categories in a folder called "blog" in
/sites/blubb/.categories/. i try to read them

CmsJspActionElement cms = new CmsJspActionElement(pageContext,
request, response);
CmsObject cmsObject = cms.getCmsObject();
CmsCategoryService cs = CmsCategoryService.getInstance();
List cats = cs.readCategories(cmsObject, "blog/", false,
cs.getRepositoryBaseFolderName(cmsObject));
Iterator ic = cats.iterator();

while (ic.hasNext()) { //do nothing! }


this ends up with  java.lang.OutOfMemoryError: Requested array size
exceeds VM limit.

what am i doing wrong?

thanks
lorenz



More information about the opencms-dev mailing list