Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-6063

Income statement causes exception

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • Trunk
    • None
    • accounting
    • None

    Description

      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:?]

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            toashishvijay Ashish Vijaywargiya
            wt Wai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment