Error on Financial Account Transactions screen

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Error on Financial Account Transactions screen

Sharan-F
Hi

I've just come across this long error message (see below) on the demo.ofbiz.org online trunk version  820206. This message is appearing in the Find Financial Account Transactions screen (FindFinAccountTrans).

Steps to duplicate are as follows:

1. Enter a Sales Order for DemoCustomer using product FA-001 (Account Activation)
2. Create the Sales order
3. In Order Manager 'Receive Payment' for the order (I used cash)
4. A Financial Account of type 'Customer Balance Account' will be created for DemoCustomer under the Accounting/Financial Accounts/Find Financial Accounts tab.
5. Navigate to the Accounting/Financial Accounts/Find Financial Accounts tab
6. Select the newly created Financial Account for DemoCustomer from the list
7. Select the 'Transactions' tab
8. Press the 'Search' button and the error message is displayed.

Note that this error message is not displayed if the Financial Account Type is a one of the demo bank accounts so I think this has something to do with the newly implemented functionality for bank accounts that uses financial accounts.

I've done this test using the online demo 9.04 version 819460 and this error message doesnt appear at all. The new bank account functionality that uses financial accounts is not implemented in 9.04.

I'll create a Jira with all this information.

Thanks
Sharan  

Expression finAccount.postToGlAccountId is undefined on line 98, column 93 in component://accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl. The problematic instruction: ---------- ==> assignment: glReconciliations=delegator.findByAnd("GlReconciliation", {"glAccountId" : finAccount.postToGlAccountId, "statusId" : "GLREC_CREATED"}, Static["org.ofbiz.base.util.UtilMisc"].toList("reconciledDate DESC")) [on line 98, column 7 in component://accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl] ---------- Java backtrace for programmers: ---------- freemarker.core.InvalidReferenceException: Expression finAccount.postToGlAccountId is undefined on line 98, column 93 in component://accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl. at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124) at freemarker.core.HashLiteral$SequenceHash.(HashLiteral.java:132) at freemarker.core.HashLiteral._getAsTemplateModel(HashLiteral.java:72) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.ListLiteral.getModelList(ListLiteral.java:125) at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:89) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.Assignment.accept(Assignment.java:90) at freemarker.core.Environment.visit(Environment.java:209) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:209) at freemarker.core.IfBlock.accept(IfBlock.java:82) at freemarker.core.Environment.visit(Environment.java:209) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:209) at freemarker.core.Environment.process(Environment.java:189) at org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:205) at org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:205) at org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:250) at org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:110) at org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1043) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:180) at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:733) at org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:210) at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:765) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:180) at org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:339) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:180) at org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:339) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:180) at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:271) at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:701) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:180) at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:733) at org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:210) at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:765) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:180) at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:733) at org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:210) at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:765) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:180) at org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:339) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:180) at org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:339) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:180) at org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:339) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:180) at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:271) at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) at org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:605) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:180) at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:271) at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) at org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:605) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:180) at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:271) at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:701) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:180) at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:271) at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:701) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:180) at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:271) at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132) at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:95) at org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:114) at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:808) at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:550) at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:214) at org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:80) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:264) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) at org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:62) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:595) Error rendering included template at location [component://accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl]: freemarker.core.InvalidReferenceException: Expression finAccount.postToGlAccountId is undefined on line 98, column 93 in component://accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl.
Reply | Threaded
Open this post in threaded view
|

Re: Error on Financial Account Transactions screen

Anil Patel-3
Sharan,
I have fixed this issue in r820509. Please test and let us know if  
problem persists.

Regards
Anil Patel

On Sep 30, 2009, at 9:13 PM, Sharan-F wrote:

>
> Hi
>
> I've just come across this long error message (see below) on the
> demo.ofbiz.org online trunk version  820206. This message is  
> appearing in
> the Find Financial Account Transactions screen (FindFinAccountTrans).
>
> Steps to duplicate are as follows:
>
> 1. Enter a Sales Order for DemoCustomer using product FA-001 (Account
> Activation)
> 2. Create the Sales order
> 3. In Order Manager 'Receive Payment' for the order (I used cash)
> 4. A Financial Account of type 'Customer Balance Account' will be  
> created
> for DemoCustomer under the Accounting/Financial Accounts/Find  
> Financial
> Accounts tab.
> 5. Navigate to the Accounting/Financial Accounts/Find Financial  
> Accounts tab
> 6. Select the newly created Financial Account for DemoCustomer from  
> the list
> 7. Select the 'Transactions' tab
> 8. Press the 'Search' button and the error message is displayed.
>
> Note that this error message is not displayed if the Financial  
> Account Type
> is a one of the demo bank accounts so I think this has something to  
> do with
> the newly implemented functionality for bank accounts that uses  
> financial
> accounts.
>
> I've done this test using the online demo 9.04 version 819460 and  
> this error
> message doesnt appear at all. The new bank account functionality  
> that uses
> financial accounts is not implemented in 9.04.
>
> I'll create a Jira with all this information.
>
> Thanks
> Sharan
>
> Expression finAccount.postToGlAccountId is undefined on line 98,  
> column 93
> in
> component://accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl
> .
> The problematic instruction: ---------- ==> assignment:
> glReconciliations=delegator.findByAnd("GlReconciliation",  
> {"glAccountId" :
> finAccount.postToGlAccountId, "statusId" : "GLREC_CREATED"},
> Static["org.ofbiz.base.util.UtilMisc"].toList("reconciledDate  
> DESC")) [on
> line 98, column 7 in
> component://accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl]
> ---------- Java backtrace for programmers: ----------
> freemarker.core.InvalidReferenceException: Expression
> finAccount.postToGlAccountId is undefined on line 98, column 93 in
> component://accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl
> .
> at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:
> 124) at
> freemarker.core.HashLiteral$SequenceHash.(HashLiteral.java:132) at
> freemarker.core.HashLiteral._getAsTemplateModel(HashLiteral.java:72)  
> at
> freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at
> freemarker.core.ListLiteral.getModelList(ListLiteral.java:125) at
> freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:89) at
> freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at
> freemarker.core.Assignment.accept(Assignment.java:90) at
> freemarker.core.Environment.visit(Environment.java:209) at
> freemarker.core.MixedContent.accept(MixedContent.java:92) at
> freemarker.core.Environment.visit(Environment.java:209) at
> freemarker.core.IfBlock.accept(IfBlock.java:82) at
> freemarker.core.Environment.visit(Environment.java:209) at
> freemarker.core.MixedContent.accept(MixedContent.java:92) at
> freemarker.core.Environment.visit(Environment.java:209) at
> freemarker.core.Environment.process(Environment.java:189) at
> org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate
> (FreeMarkerWorker.java:205)
> at
> org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate
> (HtmlWidget.java:205)
> at
> org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString
> (HtmlWidget.java:250)
> at
> org.ofbiz.widget.screen.HtmlWidget.renderWidgetString
> (HtmlWidget.java:110)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1043)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $DecoratorSection.renderWidgetString(ModelScreenWidget.java:733)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render
> (ModelScreenWidget.java:210)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:
> 765)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $Container.renderWidgetString(ModelScreenWidget.java:339)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $Container.renderWidgetString(ModelScreenWidget.java:339)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString
> (ModelScreenWidget.java:271)
> at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString
> (ModelScreen.java:393)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $DecoratorScreen.renderWidgetString(ModelScreenWidget.java:701)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $DecoratorSection.renderWidgetString(ModelScreenWidget.java:733)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render
> (ModelScreenWidget.java:210)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:
> 765)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $DecoratorSection.renderWidgetString(ModelScreenWidget.java:733)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render
> (ModelScreenWidget.java:210)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:
> 765)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $Container.renderWidgetString(ModelScreenWidget.java:339)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $Container.renderWidgetString(ModelScreenWidget.java:339)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $Container.renderWidgetString(ModelScreenWidget.java:339)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString
> (ModelScreenWidget.java:271)
> at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString
> (ModelScreen.java:393)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $IncludeScreen.renderWidgetString(ModelScreenWidget.java:605)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString
> (ModelScreenWidget.java:271)
> at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString
> (ModelScreen.java:393)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $IncludeScreen.renderWidgetString(ModelScreenWidget.java:605)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString
> (ModelScreenWidget.java:271)
> at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString
> (ModelScreen.java:393)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $DecoratorScreen.renderWidgetString(ModelScreenWidget.java:701)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString
> (ModelScreenWidget.java:271)
> at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString
> (ModelScreen.java:393)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $DecoratorScreen.renderWidgetString(ModelScreenWidget.java:701)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString
> (ModelScreenWidget.java:271)
> at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString
> (ModelScreen.java:393)
> at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:
> 132) at
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:
> 95) at
> org.ofbiz.widget.screen.MacroScreenViewHandler.render
> (MacroScreenViewHandler.java:114)
> at
> org.ofbiz.webapp.control.RequestHandler.renderView
> (RequestHandler.java:808)
> at
> org.ofbiz.webapp.control.RequestHandler.doRequest
> (RequestHandler.java:550)
> at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
> 214) at
> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:
> 80) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> (ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter
> (ApplicationFilterChain.java:206)
> at org.ofbiz.webapp.control.ContextFilter.doFilter
> (ContextFilter.java:264)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> (ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter
> (ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke
> (StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke
> (StandardContextValve.java:175)
> at
> org.apache.catalina.core.StandardHostValve.invoke
> (StandardHostValve.java:128)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke
> (ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke
> (StandardEngineValve.java:109)
> at org.apache.catalina.valves.AccessLogValve.invoke
> (AccessLogValve.java:568)
> at
> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke
> (CrossSubdomainSessionValve.java:62)
> at
> org.apache.catalina.connector.CoyoteAdapter.service
> (CoyoteAdapter.java:286)
> at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:
> 190) at
> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at
> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767) at
> org.apache.jk.common.ChannelSocket.processConnection
> (ChannelSocket.java:697)
> at
> org.apache.jk.common.ChannelSocket$SocketConnection.runIt
> (ChannelSocket.java:889)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
> (ThreadPool.java:690)
> at java.lang.Thread.run(Thread.java:595) Error rendering included  
> template
> at location
> [component://accounting/webapp/accounting/finaccounttrans/
> FinAccountTrans.ftl]:
> freemarker.core.InvalidReferenceException: Expression
> finAccount.postToGlAccountId is undefined on line 98, column 93 in
> component://accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl
> .
> --
> View this message in context: http://www.nabble.com/Error-on-Financial-Account-Transactions-screen-tp25691787p25691787.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>

Reply | Threaded
Open this post in threaded view
|

Re: Error on Financial Account Transactions screen

Sharan-F
Hi Anil

I've now re-tested this on the latest trunk with your fix in place and it works well.

Thanks for your quick action in resolving this.
Sharan

Anil Patel-3 wrote
Sharan,
I have fixed this issue in r820509. Please test and let us know if  
problem persists.

Regards
Anil Patel

On Sep 30, 2009, at 9:13 PM, Sharan-F wrote:

>
> Hi
>
> I've just come across this long error message (see below) on the
> demo.ofbiz.org online trunk version  820206. This message is  
> appearing in
> the Find Financial Account Transactions screen (FindFinAccountTrans).
>
> Steps to duplicate are as follows:
>
> 1. Enter a Sales Order for DemoCustomer using product FA-001 (Account
> Activation)
> 2. Create the Sales order
> 3. In Order Manager 'Receive Payment' for the order (I used cash)
> 4. A Financial Account of type 'Customer Balance Account' will be  
> created
> for DemoCustomer under the Accounting/Financial Accounts/Find  
> Financial
> Accounts tab.
> 5. Navigate to the Accounting/Financial Accounts/Find Financial  
> Accounts tab
> 6. Select the newly created Financial Account for DemoCustomer from  
> the list
> 7. Select the 'Transactions' tab
> 8. Press the 'Search' button and the error message is displayed.
>
> Note that this error message is not displayed if the Financial  
> Account Type
> is a one of the demo bank accounts so I think this has something to  
> do with
> the newly implemented functionality for bank accounts that uses  
> financial
> accounts.
>
> I've done this test using the online demo 9.04 version 819460 and  
> this error
> message doesnt appear at all. The new bank account functionality  
> that uses
> financial accounts is not implemented in 9.04.
>
> I'll create a Jira with all this information.
>
> Thanks
> Sharan
>
> Expression finAccount.postToGlAccountId is undefined on line 98,  
> column 93
> in
> component://accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl
> .
> The problematic instruction: ---------- ==> assignment:
> glReconciliations=delegator.findByAnd("GlReconciliation",  
> {"glAccountId" :
> finAccount.postToGlAccountId, "statusId" : "GLREC_CREATED"},
> Static["org.ofbiz.base.util.UtilMisc"].toList("reconciledDate  
> DESC")) [on
> line 98, column 7 in
> component://accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl]
> ---------- Java backtrace for programmers: ----------
> freemarker.core.InvalidReferenceException: Expression
> finAccount.postToGlAccountId is undefined on line 98, column 93 in
> component://accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl
> .
> at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:
> 124) at
> freemarker.core.HashLiteral$SequenceHash.(HashLiteral.java:132) at
> freemarker.core.HashLiteral._getAsTemplateModel(HashLiteral.java:72)  
> at
> freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at
> freemarker.core.ListLiteral.getModelList(ListLiteral.java:125) at
> freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:89) at
> freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at
> freemarker.core.Assignment.accept(Assignment.java:90) at
> freemarker.core.Environment.visit(Environment.java:209) at
> freemarker.core.MixedContent.accept(MixedContent.java:92) at
> freemarker.core.Environment.visit(Environment.java:209) at
> freemarker.core.IfBlock.accept(IfBlock.java:82) at
> freemarker.core.Environment.visit(Environment.java:209) at
> freemarker.core.MixedContent.accept(MixedContent.java:92) at
> freemarker.core.Environment.visit(Environment.java:209) at
> freemarker.core.Environment.process(Environment.java:189) at
> org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate
> (FreeMarkerWorker.java:205)
> at
> org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate
> (HtmlWidget.java:205)
> at
> org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString
> (HtmlWidget.java:250)
> at
> org.ofbiz.widget.screen.HtmlWidget.renderWidgetString
> (HtmlWidget.java:110)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1043)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $DecoratorSection.renderWidgetString(ModelScreenWidget.java:733)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render
> (ModelScreenWidget.java:210)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:
> 765)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $Container.renderWidgetString(ModelScreenWidget.java:339)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $Container.renderWidgetString(ModelScreenWidget.java:339)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString
> (ModelScreenWidget.java:271)
> at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString
> (ModelScreen.java:393)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $DecoratorScreen.renderWidgetString(ModelScreenWidget.java:701)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $DecoratorSection.renderWidgetString(ModelScreenWidget.java:733)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render
> (ModelScreenWidget.java:210)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:
> 765)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $DecoratorSection.renderWidgetString(ModelScreenWidget.java:733)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render
> (ModelScreenWidget.java:210)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:
> 765)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $Container.renderWidgetString(ModelScreenWidget.java:339)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $Container.renderWidgetString(ModelScreenWidget.java:339)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $Container.renderWidgetString(ModelScreenWidget.java:339)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString
> (ModelScreenWidget.java:271)
> at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString
> (ModelScreen.java:393)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $IncludeScreen.renderWidgetString(ModelScreenWidget.java:605)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString
> (ModelScreenWidget.java:271)
> at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString
> (ModelScreen.java:393)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $IncludeScreen.renderWidgetString(ModelScreenWidget.java:605)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString
> (ModelScreenWidget.java:271)
> at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString
> (ModelScreen.java:393)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $DecoratorScreen.renderWidgetString(ModelScreenWidget.java:701)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString
> (ModelScreenWidget.java:271)
> at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString
> (ModelScreen.java:393)
> at
> org.ofbiz.widget.screen.ModelScreenWidget
> $DecoratorScreen.renderWidgetString(ModelScreenWidget.java:701)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString
> (ModelScreenWidget.java:180)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString
> (ModelScreenWidget.java:271)
> at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString
> (ModelScreen.java:393)
> at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:
> 132) at
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:
> 95) at
> org.ofbiz.widget.screen.MacroScreenViewHandler.render
> (MacroScreenViewHandler.java:114)
> at
> org.ofbiz.webapp.control.RequestHandler.renderView
> (RequestHandler.java:808)
> at
> org.ofbiz.webapp.control.RequestHandler.doRequest
> (RequestHandler.java:550)
> at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:
> 214) at
> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:
> 80) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> (ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter
> (ApplicationFilterChain.java:206)
> at org.ofbiz.webapp.control.ContextFilter.doFilter
> (ContextFilter.java:264)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> (ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter
> (ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke
> (StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke
> (StandardContextValve.java:175)
> at
> org.apache.catalina.core.StandardHostValve.invoke
> (StandardHostValve.java:128)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke
> (ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke
> (StandardEngineValve.java:109)
> at org.apache.catalina.valves.AccessLogValve.invoke
> (AccessLogValve.java:568)
> at
> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke
> (CrossSubdomainSessionValve.java:62)
> at
> org.apache.catalina.connector.CoyoteAdapter.service
> (CoyoteAdapter.java:286)
> at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:
> 190) at
> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at
> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767) at
> org.apache.jk.common.ChannelSocket.processConnection
> (ChannelSocket.java:697)
> at
> org.apache.jk.common.ChannelSocket$SocketConnection.runIt
> (ChannelSocket.java:889)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
> (ThreadPool.java:690)
> at java.lang.Thread.run(Thread.java:595) Error rendering included  
> template
> at location
> [component://accounting/webapp/accounting/finaccounttrans/
> FinAccountTrans.ftl]:
> freemarker.core.InvalidReferenceException: Expression
> finAccount.postToGlAccountId is undefined on line 98, column 93 in
> component://accounting/webapp/accounting/finaccounttrans/FinAccountTrans.ftl
> .
> --
> View this message in context: http://www.nabble.com/Error-on-Financial-Account-Transactions-screen-tp25691787p25691787.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>