FreeMarker template error: Java method "org.ofbiz.widget.renderer.ScreenRenderer.render(String)" threw an exception when invoked on org.ofbiz.widget.renderer.ScreenRenderer object "org.ofbiz.widget.renderer.ScreenRenderer@42d85c7"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: ${screens.render("component://rugsusa... [in template "component://rugsusa/webapp/rugsusa/search/search-rugs.ftl" at line 2, column 1] ---- Java stack trace (for programmers): ---- freemarker.core._TemplateModelException: [... Exception message was already printed; see it above ...] at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:311) at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:284) at freemarker.ext.beans.OverloadedMethodsModel.exec(OverloadedMethodsModel.java:68) at freemarker.core.MethodCall._eval(MethodCall.java:62) at freemarker.core.Expression.eval(Expression.java:78) at freemarker.core.Expression.evalAndCoerceToString(Expression.java:82) at freemarker.core.DollarVariable.accept(DollarVariable.java:40) at freemarker.core.Environment.visit(Environment.java:312) at freemarker.core.MixedContent.accept(MixedContent.java:62) at freemarker.core.Environment.visit(Environment.java:312) at freemarker.core.Environment.process(Environment.java:290) at org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257) at org.ofbiz.widget.model.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:167) at org.ofbiz.widget.model.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:216) at org.ofbiz.widget.model.HtmlWidget.renderWidgetString(HtmlWidget.java:140) at org.ofbiz.widget.model.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1319) at org.ofbiz.widget.model.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:98) at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:280) at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:136) at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:98) at org.ofbiz.widget.renderer.macro.MacroScreenViewHandler.render(MacroScreenViewHandler.java:157) at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:991) at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:675) at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:213) at javax.servlet.http.HttpServlet.service(HttpServlet.java:620) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:324) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) Caused by: org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://rugsusa/widget/SearchScreens.xml#newsearch-updated]: java.lang.IllegalArgumentException: Error running script at location [component://rugsusa/webapp/rugsusa/WEB-INF/actions/search/newsearch.groovy]: java.lang.ClassCastException (Error running script at location [component://rugsusa/webapp/rugsusa/WEB-INF/actions/search/newsearch.groovy]: java.lang.ClassCastException) at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:179) at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:136) at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:98) at sun.reflect.GeneratedMethodAccessor130.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:1458) at freemarker.ext.beans.ReflectionCallableMemberDescriptor.invokeMethod(ReflectionCallableMemberDescriptor.java:52) at freemarker.ext.beans.MemberAndArguments.invokeMethod(MemberAndArguments.java:48) at freemarker.ext.beans.OverloadedMethodsModel.exec(OverloadedMethodsModel.java:62) ... 44 more Caused by: java.lang.IllegalArgumentException: Error running script at location [component://rugsusa/webapp/rugsusa/WEB-INF/actions/search/newsearch.groovy]: java.lang.ClassCastException at org.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:350) at org.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:324) at org.ofbiz.widget.model.AbstractModelAction$Script.runAction(AbstractModelAction.java:632) at org.ofbiz.widget.model.AbstractModelAction.runSubActions(AbstractModelAction.java:141) at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:273) at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) ... 53 more Caused by: java.lang.ClassCastException Open For Business Message

:ERROR MESSAGE:
org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://rugsusa/widget/SearchScreens.xml#search-rugs]: org.ofbiz.entity.transaction.GenericTransactionException: Roll back error, could not commit transaction, was rolled back instead because of: Error rendering screen [component://rugsusa/widget/SearchScreens.xml#newsearch-updated]: java.lang.IllegalArgumentException: Error running script at location [component://rugsusa/webapp/rugsusa/WEB-INF/actions/search/newsearch.groovy]: java.lang.ClassCastExceptionjava.lang.IllegalArgumentException: Error running script at location [component://rugsusa/webapp/rugsusa/WEB-INF/actions/search/newsearch.groovy]: java.lang.ClassCastException (Error running script at location [component://rugsusa/webapp/rugsusa/WEB-INF/actions/search/newsearch.groovy]: java.lang.ClassCastException) (Roll back error, could not commit transaction, was rolled back instead because of: Error rendering screen [component://rugsusa/widget/SearchScreens.xml#newsearch-updated]: java.lang.IllegalArgumentException: Error running script at location [component://rugsusa/webapp/rugsusa/WEB-INF/actions/search/newsearch.groovy]: java.lang.ClassCastExceptionjava.lang.IllegalArgumentException: Error running script at location [component://rugsusa/webapp/rugsusa/WEB-INF/actions/search/newsearch.groovy]: java.lang.ClassCastException (Error running script at location [component://rugsusa/webapp/rugsusa/WEB-INF/actions/search/newsearch.groovy]: java.lang.ClassCastException))