<div dir="ltr"><div><span style="font-size:12.8px">Try this:</span></div><div><span style="font-size:12.8px"><br></span></div><span style="font-size:12.8px">while (ic.hasNext()) { ic.next(); }</span><br><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Stephan</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-11-26 22:34 GMT+01:00 Lorenz Lammersdorf <span dir="ltr"><<a href="mailto:lorenz.lammersdorf@kernbrand.ch" target="_blank">lorenz.lammersdorf@kernbrand.ch</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi list,<br>
<br>
i have 3 categories in a folder called "blog" in<br>
/sites/blubb/.categories/. i try to read them<br>
<br>
CmsJspActionElement cms = new CmsJspActionElement(pageContext,<br>
request, response);<br>
CmsObject cmsObject = cms.getCmsObject();<br>
CmsCategoryService cs = CmsCategoryService.getInstance();<br>
List cats = cs.readCategories(cmsObject, "blog/", false,<br>
cs.getRepositoryBaseFolderName(cmsObject));<br>
Iterator ic = cats.iterator();<br>
<br>
while (ic.hasNext()) { //do nothing! }<br>
<br>
<br>
this ends up with java.lang.OutOfMemoryError: Requested array size<br>
exceeds VM limit.<br>
<br>
what am i doing wrong?<br>
<br>
thanks<br>
lorenz<br>
_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" rel="noreferrer" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
</blockquote></div><br></div>