Jacopo, thanks for clarification.
May I have some idea on the following error.
Method public java.lang.String org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException threw an exception when invoked on org.ofbiz.widget.screen.ScreenRenderer@ec7913 The problematic instruction: ---------- ==> ${screens.render(productsummaryScreen)} [on line 58, column 13 in categorydetail.ftl] ---------- Java backtrace for programmers: ---------- freemarker.template.TemplateModelException: Method public java.lang.String org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException threw an exception when invoked on org.ofbiz.widget.screen.ScreenRenderer@ec7913 at freemarker.ext.beans.OverloadedMethodModel.exec(OverloadedMethodModel.java:133) at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.Expression.getStringValue(Expression.java:93) at freemarker.core.DollarVariable.accept(DollarVariable.java:76) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160) at freemarker.core.Environment.visit(Environment.java:351) at freemarker.core.IteratorBlock.accept(IteratorBlock.java:95) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.IfBlock.accept(IfBlock.java:82) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.Environment.process(Environment.java:176) at freemarker.template.Template.process(Template.java:231) at org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplateAtLocation(FreeMarkerWorker.java:176) at org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:86) at org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:114) at org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:73) at org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:802) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:250) at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:103) at org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:401) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:250) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:250) at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:103) at org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:401) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:528) at org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:189) at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:550) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) at org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:306) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) at org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:306) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:250) at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:103) at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:496) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:157) at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:250) at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:103) at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:115) at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:100) at org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:85) at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:589) at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:374) at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:191) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:258) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:534) Caused by: org.ofbiz.base.util.GeneralException: Error rendering screen [productsummary]: org.ofbiz.base.util.GeneralException: Error running BSH script at location [component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh]: org.ofbiz.base.util.GeneralException: Error running BSH script at [component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh], line [75]: Sourced file: component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh : null : at Line: 75 : in file: component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh : product .getRelatedCache ( "ProductReview" , null , UtilMisc .toList ( "-postedDateTime" ) ) Target exception: java.lang.NullPointerException: Null Pointer in Method Invocation (Sourced file: component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh : null) (Error running BSH script at [component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh], line [75]: Sourced file: component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh : null : at Line: 75 : in file: component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh : product .getRelatedCache ( "ProductReview" , null , UtilMisc .toList ( "-postedDateTime" ) ) Target exception: java.lang.NullPointerException: Null Pointer in Method Invocation (Sourced file: component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh : null)) (Error running BSH script at location [component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh]: org.ofbiz.base.util.GeneralException: Error running BSH script at [component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh], line [75]: Sourced file: component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh : null : at Line: 75 : in file: component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh : product .getRelatedCache ( "ProductReview" , null , UtilMisc .toList ( "-postedDateTime" ) ) Target exception: java.lang.NullPointerException: Null Pointer in Method Invocation (Sourced file: component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh : null) (Error running BSH script at [component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh], line [75]: Sourced file: component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh : null : at Line: 75 : in file: component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh : product .getRelatedCache ( "ProductReview" , null , UtilMisc .toList ( "-postedDateTime" ) ) Target exception: java.lang.NullPointerException: Null Pointer in Method Invocation (Sourced file: component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/productsummary.bsh : null))) at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:128) at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:115) at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:100) at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:457) at freemarker.ext.beans.OverloadedMethodModel.exec(OverloadedMethodModel.java:110) ... 75 more
:ERROR MESSAGE:
org.ofbiz.base.util.GeneralException: Error rendering screen [category]: org.ofbiz.base.util.GeneralException: Error rendering screen [main-decorator]: org.ofbiz.base.util.GeneralException: Error rendering screen [category-include]: org.ofbiz.base.util.GeneralException: Error rendering screen [categorydetail]: java.lang.RuntimeException: Error rendering included template at location [component://order/webapp/ordermgr/entry/catalog/categorydetail.ftl]: freemarker.template.TemplateModelException: Method public java.lang.String org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException threw an exception when invoked on org.ofbiz.widget.screen.ScreenRenderer@ec7913 (Error rendering included template at location [component://order/webapp/ordermgr/entry/catalog/categorydetail.ftl]: freemarker.template.TemplateModelException: Method public java.lang.String org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException threw an exception when invoked on org.ofbiz.widget.screen.ScreenRenderer@ec7913) (Error rendering screen [categorydetail]: java.lang.RuntimeException: Error rendering included template at location [component://order/webapp/ordermgr/entry/catalog/categorydetail.ftl]: freemarker.template.TemplateModelException: Method public java.lang.String org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException threw an exception when invoked on org.ofbiz.widget.screen.ScreenRenderer@ec7913 (Error rendering included template at location [component://order/webapp/ordermgr/entry/catalog/categorydetail.ftl]: freemarker.template.TemplateModelException: Method public java.lang.String org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException threw an exception when invoked on org.ofbiz.widget.screen.ScreenRenderer@ec7913)) (Error rendering screen [category-include]: org.ofbiz.base.util.GeneralException: Error rendering screen [categorydetail]: java.lang.RuntimeException: Error rendering included template at location [component://order/webapp/ordermgr/entry/catalog/categorydetail.ftl]: freemarker.template.TemplateModelException: Method public java.lang.String org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException threw an exception when invoked on org.ofbiz.widget.screen.ScreenRenderer@ec7913 (Error rendering included template at location [component://order/webapp/ordermgr/entry/catalog/categorydetail.ftl]: freemarker.template.TemplateModelException: Method public java.lang.String org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException threw an exception when invoked on org.ofbiz.widget.screen.ScreenRenderer@ec7913) (Error rendering screen [categorydetail]: java.lang.RuntimeException: Error rendering included template at location [component://order/webapp/ordermgr/entry/catalog/categorydetail.ftl]: freemarker.template.TemplateModelException: Method public java.lang.String org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException threw an exception when invoked on org.ofbiz.widget.screen.ScreenRenderer@ec7913 (Error rendering included template at location [component://order/webapp/ordermgr/entry/catalog/categorydetail.ftl]: freemarker.template.TemplateModelException: Method public java.lang.String org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException threw an exception when invoked on org.ofbiz.widget.screen.ScreenRenderer@ec7913))) (Error rendering screen [main-decorator]: org.ofbiz.base.util.GeneralException: Error rendering screen [category-include]: org.ofbiz.base.util.GeneralException: Error rendering screen [categorydetail]: java.lang.RuntimeException: Error rendering included template at location [component://order/webapp/ordermgr/entry/catalog/categorydetail.ftl]: freemarker.template.TemplateModelException: Method public java.lang.String org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException threw an exception when invoked on org.ofbiz.widget.screen.ScreenRenderer@ec7913 (Error rendering included template at location [component://order/webapp/ordermgr/entry/catalog/categorydetail.ftl]: freemarker.template.TemplateModelException: Method public java.lang.String org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException threw an exception when invoked on org.ofbiz.widget.screen.ScreenRenderer@ec7913) (Error rendering screen [categorydetail]: java.lang.RuntimeException: Error rendering included template at location [component://order/webapp/ordermgr/entry/catalog/categorydetail.ftl]: freemarker.template.TemplateModelException: Method public java.lang.String org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException threw an exception when invoked on org.ofbiz.widget.screen.ScreenRenderer@ec7913 (Error rendering included template at location [component://order/webapp/ordermgr/entry/catalog/categorydetail.ftl]: freemarker.template.TemplateModelException: Method public java.lang.String org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException threw an exception when invoked on org.ofbiz.widget.screen.ScreenRenderer@ec7913)) (Error rendering screen [category-include]: org.ofbiz.base.util.GeneralException: Error rendering screen [categorydetail]: java.lang.RuntimeException: Error rendering included template at location [component://order/webapp/ordermgr/entry/catalog/categorydetail.ftl]: freemarker.template.TemplateModelException: Method public java.lang.String org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException threw an exception when invoked on org.ofbiz.widget.screen.ScreenRenderer@ec7913 (Error rendering included template at location [component://order/webapp/ordermgr/entry/catalog/categorydetail.ftl]: freemarker.template.TemplateModelException: Method public java.lang.String org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException threw an exception when invoked on org.ofbiz.widget.screen.ScreenRenderer@ec7913) (Error rendering screen [categorydetail]: java.lang.RuntimeException: Error rendering included template at location [component://order/webapp/ordermgr/entry/catalog/categorydetail.ftl]: freemarker.template.TemplateModelException: Method public java.lang.String org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException threw an exception when invoked on org.ofbiz.widget.screen.ScreenRenderer@ec7913 (Error rendering included template at location [component://order/webapp/ordermgr/entry/catalog/categorydetail.ftl]: freemarker.template.TemplateModelException: Method public java.lang.String org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException threw an exception when invoked on org.ofbiz.widget.screen.ScreenRenderer@ec7913))))
Purani
On Mon, 20 Mar 2006 Jacopo Cappellato wrote :
>select * from ProductReview where productId = 'product.productId' order
>by postedDateTime desc
>
>The records are returned in the "reviews" list (and are also cached for
>performance reasons).
>
>Jacopo
>
>
>
>Purani S wrote:
> > can anyone help me in finding what the following line says
> > "reviews = product.getRelatedCache("ProductReview", null,
> > UtilMisc.toList("-postedDateTime"));"
> >
> > Purani
> >
> >
> >
> > <http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/1507191490@Middle5?PARTNER=3>
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> >
> > _______________________________________________
> > Users mailing list
> > [hidden email]
> > http://lists.ofbiz.org/mailman/listinfo/users
>
>
>_______________________________________________
>Users mailing list
>[hidden email]
>http://lists.ofbiz.org/mailman/listinfo/users
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users