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

After creating a new Flexible Birt report, before visualising it you need to do other actions

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: Upcoming Release
    • Component/s: birt
    • Labels:
      None

      Description

      After creating a new Flexible Birt report, before visualising it you need to add the data set fields with the Birt Report Designer and publish the report.

      So the "Send" button of the "Preview" form on the "Edit report" page should be grayed/unavailable before the report has been plublished. If it's then not correctly done that's an user problem.

      This should also be clearly documented, hence related with OFBIZ-9188

        Issue Links

          Activity

          Hide
          jacques.le.roux Jacques Le Roux added a comment -

          We can get also this kind of error when pressing the "Send" button beore having published the report

          org.eclipse.birt.report.engine.api.EngineException: The design file can not be found.

          2017-02-01 08:15:57,255 |http-nio-8443-exec-7 |RequestHandler                |I| Rendering View [ExecuteFlexibleReport].  Hidden sessionId by default.
          2017-02-01 08:15:57,264 |http-nio-8443-exec-7 |ControlServlet                |E| Error in request handler:
          org.eclipse.birt.report.engine.api.EngineException: The design file  can not be found.
           at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java:113) ~[org.eclipse.birt.runtime-4.4.1.jar:?]
              at org.eclipse.birt.report.engine.api.impl.ReportEngine.openReportDesign(ReportEngine.java:310) ~[org.eclipse.birt.runtime-4.4.1.jar:?]
                  at org.apache.ofbiz.birt.webapp.view.BirtViewHandler.render(BirtViewHandler.java:89) ~[ofbiz.jar:?]
              at org.apache.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:985) ~[ofbiz.jar:?]
             at org.apache.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:649) ~[ofbiz.jar:?]
              at org.apache.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210) [ofbiz.jar:?]
           at org.apache.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:85) [ofbiz.jar:?]
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [javax.servlet-api-3.1.0.jar:3.1.0]
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [javax.servlet-api-3.1.0.jar:3.1.0]
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) [tomcat-catalina-8.0.39.jar:8.0.39]
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-catalina-8.0.39.jar:8.0.39]
                 at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat-embed-websocket-8.0.39.jar:8.0.39]
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-catalina-8.0.39.jar:8.0.39]
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-catalina-8.0.39.jar:8.0.39]
                 at org.apache.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:209) [ofbiz.jar:?]
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-catalina-8.0.39.jar:8.0.39]
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-catalina-8.0.39.jar:8.0.39]
                 at org.apache.ofbiz.webapp.control.ControlFilter.doFilter(ControlFilter.java:156) [ofbiz.jar:?]
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-catalina-8.0.39.jar:8.0.39]
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-catalina-8.0.39.jar:8.0.39]
                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) [tomcat-catalina-8.0.39.jar:8.0.39]
               at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [tomcat-catalina-8.0.39.jar:8.0.39]
               at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) [tomcat-catalina-8.0.39.jar:8.0.39]
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) [tomcat-catalina-8.0.39.jar:8.0.39]
             at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [tomcat-catalina-8.0.39.jar:8.0.39]
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [tomcat-catalina-8.0.39.jar:8.0.39]
                  at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) [tomcat-catalina-8.0.39.jar:8.0.39]
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:509) [tomcat-catalina-8.0.39.jar:8.0.39]
               at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1104) [tomcat-coyote-8.0.39.jar:8.0.39]
                 at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684) [tomcat-coyote-8.0.39.jar:8.0.39]
             at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520) [tomcat-coyote-8.0.39.jar:8.0.39]
                 at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476) [tomcat-coyote-8.0.39.jar:8.0.39]
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_112]
                 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_112]
                 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-util-8.0.39.jar:8.0.39]
            at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112]
          
          Show
          jacques.le.roux Jacques Le Roux added a comment - We can get also this kind of error when pressing the "Send" button beore having published the report org.eclipse.birt.report.engine.api.EngineException: The design file can not be found. 2017-02-01 08:15:57,255 |http-nio-8443-exec-7 |RequestHandler |I| Rendering View [ExecuteFlexibleReport]. Hidden sessionId by default . 2017-02-01 08:15:57,264 |http-nio-8443-exec-7 |ControlServlet |E| Error in request handler: org.eclipse.birt.report.engine.api.EngineException: The design file can not be found. at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java:113) ~[org.eclipse.birt.runtime-4.4.1.jar:?] at org.eclipse.birt.report.engine.api.impl.ReportEngine.openReportDesign(ReportEngine.java:310) ~[org.eclipse.birt.runtime-4.4.1.jar:?] at org.apache.ofbiz.birt.webapp.view.BirtViewHandler.render(BirtViewHandler.java:89) ~[ofbiz.jar:?] at org.apache.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:985) ~[ofbiz.jar:?] at org.apache.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:649) ~[ofbiz.jar:?] at org.apache.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210) [ofbiz.jar:?] at org.apache.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:85) [ofbiz.jar:?] at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [javax.servlet-api-3.1.0.jar:3.1.0] at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [javax.servlet-api-3.1.0.jar:3.1.0] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) [tomcat-catalina-8.0.39.jar:8.0.39] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-catalina-8.0.39.jar:8.0.39] at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat-embed-websocket-8.0.39.jar:8.0.39] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-catalina-8.0.39.jar:8.0.39] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-catalina-8.0.39.jar:8.0.39] at org.apache.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:209) [ofbiz.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-catalina-8.0.39.jar:8.0.39] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-catalina-8.0.39.jar:8.0.39] at org.apache.ofbiz.webapp.control.ControlFilter.doFilter(ControlFilter.java:156) [ofbiz.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [tomcat-catalina-8.0.39.jar:8.0.39] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [tomcat-catalina-8.0.39.jar:8.0.39] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) [tomcat-catalina-8.0.39.jar:8.0.39] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) [tomcat-catalina-8.0.39.jar:8.0.39] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) [tomcat-catalina-8.0.39.jar:8.0.39] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) [tomcat-catalina-8.0.39.jar:8.0.39] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) [tomcat-catalina-8.0.39.jar:8.0.39] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) [tomcat-catalina-8.0.39.jar:8.0.39] at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616) [tomcat-catalina-8.0.39.jar:8.0.39] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:509) [tomcat-catalina-8.0.39.jar:8.0.39] at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1104) [tomcat-coyote-8.0.39.jar:8.0.39] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684) [tomcat-coyote-8.0.39.jar:8.0.39] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520) [tomcat-coyote-8.0.39.jar:8.0.39] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476) [tomcat-coyote-8.0.39.jar:8.0.39] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_112] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_112] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-util-8.0.39.jar:8.0.39] at java.lang. Thread .run( Thread .java:745) [?:1.8.0_112]
          Hide
          jacques.le.roux Jacques Le Roux added a comment -

          OK, the initial design of this page (report edition) by Fran├žois has been totally changed by Nicolas and I have to wrap my head around...

          Show
          jacques.le.roux Jacques Le Roux added a comment - OK, the initial design of this page (report edition) by Fran├žois has been totally changed by Nicolas and I have to wrap my head around...
          Hide
          jacques.le.roux Jacques Le Roux added a comment -

          Fixed with revision: 1781218

          Show
          jacques.le.roux Jacques Le Roux added a comment - Fixed with revision: 1781218
          Hide
          jacques.le.roux Jacques Le Roux added a comment -

          This is wrong, reopening

          Show
          jacques.le.roux Jacques Le Roux added a comment - This is wrong, reopening
          Hide
          jacques.le.roux Jacques Le Roux added a comment -

          Fixed in another way at revision: 1781218:

          The solution I provided with revision: 1781218 was wrong. A really satisfying solution would be to gray the "Send" button on the birt/control/CreateFlexibleReport page. But that's not something easy to do because it's generated from a content.

          So I decided to remove the part in the PrepareBirtCall.groovy and add an indication in the BirtErrorNotPublishedReport for users to use their browser back button. Because you catch a ViewHandlerException in RequestHandler.renderView() and there is not much you can do at this stage...

          Show
          jacques.le.roux Jacques Le Roux added a comment - Fixed in another way at revision: 1781218: The solution I provided with revision: 1781218 was wrong. A really satisfying solution would be to gray the "Send" button on the birt/control/CreateFlexibleReport page. But that's not something easy to do because it's generated from a content. So I decided to remove the part in the PrepareBirtCall.groovy and add an indication in the BirtErrorNotPublishedReport for users to use their browser back button. Because you catch a ViewHandlerException in RequestHandler.renderView() and there is not much you can do at this stage...

            People

            • Assignee:
              jacques.le.roux Jacques Le Roux
              Reporter:
              jacques.le.roux Jacques Le Roux
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development