Hi,
I've got warning (see below) during rendering freemarker template. Is some fix or workaround for this? I have OFBiz 9.04.776656 Thanks ya --------------------------------------------------------- 2009-05-25 10:22:38,352 (http-0.0.0.0-8443-6) [ RequestHandler.java:692:INFO ] Rendering View [LookupColor], sessionId=FE31EC78119BDB44B233EE88065FC279.jvm1 2009-05-25 10:22:44,043 (http-0.0.0.0-8443-6) [ EntityListIterator.java:239:WARN ] ---- exception report ---------------------------------------------------------- WARNING: For performance reasons do not use the EntityListIterator.hasNext() method, just call next() until it returns null; see JavaDoc comments in the EntityListIterator class for details and an example Exception: java.lang.Exception Message: null ---- stack trace --------------------------------------------------------------- java.lang.Exception org.ofbiz.entity.util.EntityListIterator.hasNext(EntityListIterator.java:238) freemarker.ext.beans.IteratorModel.hasNext(IteratorModel.java:122) freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:162) freemarker.core.Environment.visit(Environment.java:416) freemarker.core.IteratorBlock.accept(IteratorBlock.java:102) freemarker.core.Environment.visit(Environment.java:209) freemarker.core.MixedContent.accept(MixedContent.java:92) freemarker.core.Environment.visit(Environment.java:209) freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) freemarker.core.Environment.visit(Environment.java:209) freemarker.core.MixedContent.accept(MixedContent.java:92) freemarker.core.Environment.visit(Environment.java:209) freemarker.core.Environment.process(Environment.java:189) org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:205) org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:201) org.ofbiz.widget.screen.HtmlWidget $HtmlTemplate.renderWidgetString(HtmlWidget.java:245) org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:107) org.ofbiz.widget.screen.ModelScreenWidget $PlatformSpecific.renderWidgetString(ModelScreenWidget.java:976) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) org.ofbiz.widget.screen.ModelScreenWidget $DecoratorSection.renderWidgetString(ModelScreenWidget.java:676) org.ofbiz.widget.screen.ModelScreenWidget $SectionsRenderer.render(ModelScreenWidget.java:167) org.ofbiz.widget.screen.ModelScreenWidget $DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:706) org.ofbiz.widget.html.HtmlScreenRenderer.renderScreenletSubWidget(HtmlScreenRenderer.java:402) org.ofbiz.widget.screen.ModelScreenWidget $Screenlet.renderWidgetString(ModelScreenWidget.java:398) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) org.ofbiz.widget.screen.ModelScreenWidget $Section.renderWidgetString(ModelScreenWidget.java:241) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) org.ofbiz.widget.screen.ModelScreenWidget $Section.renderWidgetString(ModelScreenWidget.java:227) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) org.ofbiz.widget.screen.ModelScreenWidget $DecoratorScreen.renderWidgetString(ModelScreenWidget.java:646) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) org.ofbiz.widget.screen.ModelScreenWidget $Section.renderWidgetString(ModelScreenWidget.java:227) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:129) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:92) org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:98) org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:781) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:533) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201) org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:77) (....) |
Administrator
|
Is this from custom code ?
Jacques From: "Ján Valkovic" <[hidden email]> > Hi, > I've got warning (see below) during rendering freemarker template. Is > some fix or workaround for this? > I have OFBiz 9.04.776656 > > Thanks > > ya > > --------------------------------------------------------- > 2009-05-25 10:22:38,352 (http-0.0.0.0-8443-6) [ > RequestHandler.java:692:INFO ] Rendering View [LookupColor], > sessionId=FE31EC78119BDB44B233EE88065FC279.jvm1 > 2009-05-25 10:22:44,043 (http-0.0.0.0-8443-6) > [ EntityListIterator.java:239:WARN ] > ---- exception report > ---------------------------------------------------------- > WARNING: For performance reasons do not use the > EntityListIterator.hasNext() method, just call next() until it returns > null; see JavaDoc comments in the EntityListIterator class for details > and an example > Exception: java.lang.Exception > Message: null > ---- stack trace > --------------------------------------------------------------- > java.lang.Exception > org.ofbiz.entity.util.EntityListIterator.hasNext(EntityListIterator.java:238) > freemarker.ext.beans.IteratorModel.hasNext(IteratorModel.java:122) > freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:162) > freemarker.core.Environment.visit(Environment.java:416) > freemarker.core.IteratorBlock.accept(IteratorBlock.java:102) > freemarker.core.Environment.visit(Environment.java:209) > freemarker.core.MixedContent.accept(MixedContent.java:92) > freemarker.core.Environment.visit(Environment.java:209) > freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) > freemarker.core.Environment.visit(Environment.java:209) > freemarker.core.MixedContent.accept(MixedContent.java:92) > freemarker.core.Environment.visit(Environment.java:209) > freemarker.core.Environment.process(Environment.java:189) > org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:205) > org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:201) > org.ofbiz.widget.screen.HtmlWidget > $HtmlTemplate.renderWidgetString(HtmlWidget.java:245) > org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:107) > org.ofbiz.widget.screen.ModelScreenWidget > $PlatformSpecific.renderWidgetString(ModelScreenWidget.java:976) > org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) > org.ofbiz.widget.screen.ModelScreenWidget > $DecoratorSection.renderWidgetString(ModelScreenWidget.java:676) > org.ofbiz.widget.screen.ModelScreenWidget > $SectionsRenderer.render(ModelScreenWidget.java:167) > org.ofbiz.widget.screen.ModelScreenWidget > $DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:706) > org.ofbiz.widget.html.HtmlScreenRenderer.renderScreenletSubWidget(HtmlScreenRenderer.java:402) > org.ofbiz.widget.screen.ModelScreenWidget > $Screenlet.renderWidgetString(ModelScreenWidget.java:398) > org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) > org.ofbiz.widget.screen.ModelScreenWidget > $Section.renderWidgetString(ModelScreenWidget.java:241) > org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) > org.ofbiz.widget.screen.ModelScreenWidget > $Section.renderWidgetString(ModelScreenWidget.java:227) > org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) > org.ofbiz.widget.screen.ModelScreenWidget > $DecoratorScreen.renderWidgetString(ModelScreenWidget.java:646) > org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) > org.ofbiz.widget.screen.ModelScreenWidget > $Section.renderWidgetString(ModelScreenWidget.java:227) > org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:129) > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:92) > org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:98) > org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:781) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:533) > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201) > org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:77) > (....) > > |
Yes, it is from custom lookup form and it's occured after click on
Search button. That warning is caused by this code: <#list embroideryColors as color> <#assign colorTableName = delegator.findByPrimaryKey("AdColorTable",Static["org.ofbiz.base.util.UtilMisc"].toMap("colorTableId",color.colorTableId))> <tr <#if oddRow=-1>class="alternate-row"</#if> > <td class="button-col"><a href="javascript:set_value('${color.colorId}')">${color.colorId}</a></td> <td>${colorTableName.get("colorTableName",locale)}</td> <td width="20" align="left" valign="top" style="background-color:# ${color.rgb}"></td> <td>${color.colorName}</td> <td>${color.rgb}</td> <td>${color.columnNr!""}</td> <td>${color.colorNumber!""}</td> <td>${color.description!""}</td> </tr> <#assign oddRow = oddRow*(-1)> </#list> "colorTableName" is EntityListIterator returned by service "performFind" It's standard usage of <#list>, i think. Similar code used in non-lookup form works great, without warning. ya Dňa Po, 2009-05-25 o 15:57 +0200, Jacques Le Roux napísal: > Is this from custom code ? > > Jacques > > From: "Ján Valkovic" <[hidden email]> > > Hi, > > I've got warning (see below) during rendering freemarker template. Is > > some fix or workaround for this? > > I have OFBiz 9.04.776656 > > > > Thanks > > > > ya > > > > --------------------------------------------------------- > > 2009-05-25 10:22:38,352 (http-0.0.0.0-8443-6) [ > > RequestHandler.java:692:INFO ] Rendering View [LookupColor], > > sessionId=FE31EC78119BDB44B233EE88065FC279.jvm1 > > 2009-05-25 10:22:44,043 (http-0.0.0.0-8443-6) > > [ EntityListIterator.java:239:WARN ] > > ---- exception report > > ---------------------------------------------------------- > > WARNING: For performance reasons do not use the > > EntityListIterator.hasNext() method, just call next() until it returns > > null; see JavaDoc comments in the EntityListIterator class for details > > and an example > > Exception: java.lang.Exception > > Message: null > > ---- stack trace > > --------------------------------------------------------------- > > java.lang.Exception > > org.ofbiz.entity.util.EntityListIterator.hasNext(EntityListIterator.java:238) > > freemarker.ext.beans.IteratorModel.hasNext(IteratorModel.java:122) > > freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:162) > > freemarker.core.Environment.visit(Environment.java:416) > > freemarker.core.IteratorBlock.accept(IteratorBlock.java:102) > > freemarker.core.Environment.visit(Environment.java:209) > > freemarker.core.MixedContent.accept(MixedContent.java:92) > > freemarker.core.Environment.visit(Environment.java:209) > > freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79) > > freemarker.core.Environment.visit(Environment.java:209) > > freemarker.core.MixedContent.accept(MixedContent.java:92) > > freemarker.core.Environment.visit(Environment.java:209) > > freemarker.core.Environment.process(Environment.java:189) > > org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:205) > > org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:201) > > org.ofbiz.widget.screen.HtmlWidget > > $HtmlTemplate.renderWidgetString(HtmlWidget.java:245) > > org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:107) > > org.ofbiz.widget.screen.ModelScreenWidget > > $PlatformSpecific.renderWidgetString(ModelScreenWidget.java:976) > > org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) > > org.ofbiz.widget.screen.ModelScreenWidget > > $DecoratorSection.renderWidgetString(ModelScreenWidget.java:676) > > org.ofbiz.widget.screen.ModelScreenWidget > > $SectionsRenderer.render(ModelScreenWidget.java:167) > > org.ofbiz.widget.screen.ModelScreenWidget > > $DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:706) > > org.ofbiz.widget.html.HtmlScreenRenderer.renderScreenletSubWidget(HtmlScreenRenderer.java:402) > > org.ofbiz.widget.screen.ModelScreenWidget > > $Screenlet.renderWidgetString(ModelScreenWidget.java:398) > > org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) > > org.ofbiz.widget.screen.ModelScreenWidget > > $Section.renderWidgetString(ModelScreenWidget.java:241) > > org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) > > org.ofbiz.widget.screen.ModelScreenWidget > > $Section.renderWidgetString(ModelScreenWidget.java:227) > > org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) > > org.ofbiz.widget.screen.ModelScreenWidget > > $DecoratorScreen.renderWidgetString(ModelScreenWidget.java:646) > > org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) > > org.ofbiz.widget.screen.ModelScreenWidget > > $Section.renderWidgetString(ModelScreenWidget.java:227) > > org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) > > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:129) > > org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:92) > > org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:98) > > org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:781) > > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:533) > > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:201) > > org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:77) > > (....) > > > > > > |
Free forum by Nabble | Edit this page |