You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Deepak Dixit (JIRA)" <ji...@apache.org> on 2015/02/09 07:05:34 UTC

[jira] [Commented] (OFBIZ-6063) Income statement causes exception

    [ https://issues.apache.org/jira/browse/OFBIZ-6063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14311837#comment-14311837 ] 

Deepak Dixit commented on OFBIZ-6063:
-------------------------------------

This is the duplicate isssue of OFBIZ-5952, we can close this issue. An patch already attached on OFBIZ-5952.

> Income statement causes exception
> ---------------------------------
>
>                 Key: OFBIZ-6063
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6063
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>    Affects Versions: Trunk
>            Reporter: Wai
>
> Using demo database.
> When getting Income statement via https://localhost:8443/accounting/control/IncomeStatement?organizationPartyId=Company
> An exception occurs.
> Console output:
> 2015-02-08 13:49:02,193 |http-bio-8443-exec-3 |ScriptUtil                    |W| Error running script at location [component://accounting/webapp/accounting/WEB-INF/actions/reports/IncomeStatement.groovy]: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '[[GenericEntity:GlAccountClass][createdStamp,2015-01-31 18:28:55.0(java.sql.Timestamp)][createdTxStamp,2015-01-31 18:28:54.0(java.sql.Timestamp)][description,Selling, General, and Administrative Expense(java.lang.String)][glAccountClassId,SGA_EXPENSE(java.lang.String)][isAssetClass,null()][lastUpdatedStamp,2015-01-31 18:28:55.0(java.sql.Timestamp)][lastUpdatedTxStamp,2015-01-31 18:28:54.0(java.sql.Timestamp)][parentClassId,CASH_EXPENSE(java.lang.String)]]' with class 'java.util.LinkedList' to class 'org.ofbiz.entity.GenericValue' due to: java.lang.IllegalStateException: [GenericEntity.getModelEntity] could not find modelEntity for entityName null
> org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '[[GenericEntity:GlAccountClass][createdStamp,2015-01-31 18:28:55.0(java.sql.Timestamp)][createdTxStamp,2015-01-31 18:28:54.0(java.sql.Timestamp)][description,Selling, General, and Administrative Expense(java.lang.String)][glAccountClassId,SGA_EXPENSE(java.lang.String)][isAssetClass,null()][lastUpdatedStamp,2015-01-31 18:28:55.0(java.sql.Timestamp)][lastUpdatedTxStamp,2015-01-31 18:28:54.0(java.sql.Timestamp)][parentClassId,CASH_EXPENSE(java.lang.String)]]' with class 'java.util.LinkedList' to class 'org.ofbiz.entity.GenericValue' due to: java.lang.IllegalStateException: [GenericEntity.getModelEntity] could not find modelEntity for entityName null
> 	at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:369) ~[groovy-all-2.2.1.jar:2.2.1]
> 	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.castToType(ScriptBytecodeAdapter.java:599) ~[groovy-all-2.2.1.jar:2.2.1]
> 	at IncomeStatement.run(IncomeStatement.groovy:55) ~[?:?]
> 	at org.ofbiz.base.util.GroovyUtil.runScriptAtLocation(GroovyUtil.java:173) ~[ofbiz-base.jar:?]
> 	at org.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:342) [ofbiz-base.jar:?]
> 	at org.ofbiz.base.util.ScriptUtil.executeScript(ScriptUtil.java:324) [ofbiz-base.jar:?]
> 	at org.ofbiz.widget.model.AbstractModelAction$Script.runAction(AbstractModelAction.java:632) [ofbiz-widget.jar:?]
> 	at org.ofbiz.widget.model.AbstractModelAction.runSubActions(AbstractModelAction.java:141) [ofbiz-widget.jar:?]
> 	at org.ofbiz.widget.model.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:273) [ofbiz-widget.jar:?]
> 	at org.ofbiz.widget.model.ModelScreen.renderScreenString(ModelScreen.java:164) [ofbiz-widget.jar:?]
> 	at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:135) [ofbiz-widget.jar:?]
> 	at org.ofbiz.widget.renderer.ScreenRenderer.render(ScreenRenderer.java:97) [ofbiz-widget.jar:?]
> 	at org.ofbiz.widget.renderer.macro.MacroScreenViewHandler.render(MacroScreenViewHandler.java:151) [ofbiz-widget.jar:?]
> 	at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:989) [ofbiz-webapp.jar:?]
> 	at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:676) [ofbiz-webapp.jar:?]
> 	at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:215) [ofbiz-webapp.jar:?]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)