Pierre Smits created OFBIZ-5655:
-----------------------------------

             Summary: When periodNum is not set an error is thrown
                 Key: OFBIZ-5655
                 URL: https://issues.apache.org/jira/browse/OFBIZ-5655
             Project: OFBiz
          Issue Type: Bug
          Components: accounting
    Affects Versions: SVN trunk
            Reporter: Pierre Smits


When a new custom period is created and the period num is not set, the overview 
of periods in accounting - edit custom time period trows following error per 
time period:

[java] 2014-06-13 09:24:46,719 (http-bio-0.0.0.0-8443-exec-96) [ 
Log4JLoggerFactory.java:96 :ERROR] Template processing error: "Expression 
allCustomTimePeriod.periodNum is undefined on line 262, column 19 in 
component://accounting/webapp/accounting/period/EditCustomTimePeriod.ftl."
     [java] 
     [java] Expression allCustomTimePeriod.periodNum is undefined on line 262, 
column 19 in 
component://accounting/webapp/accounting/period/EditCustomTimePeriod.ftl.
     [java] The problematic instruction:
     [java] ----------
     [java] ==> ${allCustomTimePeriod.periodNum} [on line 262, column 17 in 
component://accounting/webapp/accounting/period/EditCustomTimePeriod.ftl]
     [java] ----------
     [java] 
     [java] Java backtrace for programmers:
     [java] ----------
     [java] freemarker.core.InvalidReferenceException: Expression 
allCustomTimePeriod.periodNum is undefined on line 262, column 19 in 
component://accounting/webapp/accounting/period/EditCustomTimePeriod.ftl.
     [java]     at 
freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:125)
     [java]     at 
freemarker.core.Expression.getStringValue(Expression.java:118)
     [java]     at freemarker.core.Expression.getStringValue(Expression.java:93)
     [java]     at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
     [java]     at freemarker.core.Environment.visit(Environment.java:221)
     [java]     at freemarker.core.MixedContent.accept(MixedContent.java:92)
     [java]     at freemarker.core.Environment.visit(Environment.java:221)
     [java]     at 
freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:167)
     [java]     at freemarker.core.Environment.visit(Environment.java:428)
     [java]     at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
     [java]     at freemarker.core.Environment.visit(Environment.java:221)
     [java]     at freemarker.core.MixedContent.accept(MixedContent.java:92)
     [java]     at freemarker.core.Environment.visit(Environment.java:221)
     [java]     at freemarker.core.IfBlock.accept(IfBlock.java:82)
     [java]     at freemarker.core.Environment.visit(Environment.java:221)
     [java]     at freemarker.core.MixedContent.accept(MixedContent.java:92)
     [java]     at freemarker.core.Environment.visit(Environment.java:221)
     [java]     at freemarker.core.Environment.process(Environment.java:199)
     [java]     at 
org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:251)
     [java]     at 
org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:224)
     [java]     at 
org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:269)
     [java]     at 
org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:129)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:988)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:102)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:696)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:127)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:729)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:102)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:696)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:127)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:729)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:102)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:331)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:102)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:189)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:102)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:331)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:102)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:331)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:102)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:189)
     [java]     at 
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396)
     [java]     at 
org.ofbiz.widget.screen.ScreenFactory.renderReferencedScreen(ScreenFactory.java:216)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:596)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:102)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:189)
     [java]     at 
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396)
     [java]     at 
org.ofbiz.widget.screen.ScreenFactory.renderReferencedScreen(ScreenFactory.java:216)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:596)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:102)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:189)
     [java]     at 
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396)
     [java]     at 
org.ofbiz.widget.screen.ScreenFactory.renderReferencedScreen(ScreenFactory.java:216)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:663)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:102)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:189)
     [java]     at 
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396)
     [java]     at 
org.ofbiz.widget.screen.ScreenFactory.renderReferencedScreen(ScreenFactory.java:216)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:663)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:102)
     [java]     at 
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:189)
     [java]     at 
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396)
     [java]     at 
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:135)
     [java]     at 
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:97)
     [java]     at 
org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:111)
     [java]     at 
org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:987)
     [java]     at 
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:668)
     [java]     at 
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:219)
     [java]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
     [java]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
     [java]     at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
     [java]     at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
     [java]     at 
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:313)
     [java]     at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
     [java]     at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
     [java]     at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
     [java]     at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
     [java]     at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
     [java]     at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
     [java]     at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
     [java]     at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
     [java]     at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
     [java]     at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
     [java]     at 
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
     [java]     at 
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
     [java]     at 
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
     [java]     at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
     [java]     at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
     [java]     at java.lang.Thread.run(Thread.java:744)




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to