org.eclipse.birt.report.engine.api.EngineException: Data Set script method "Fetch" returned null; expected a Boolean value. (Element ID:1)

eclipse.org | 4 months ago
  1. 0

    Eclipse Community Forums: BIRT » Problem with Script Datasource

    eclipse.org | 4 months ago
    org.eclipse.birt.report.engine.api.EngineException: Data Set script method "Fetch" returned null; expected a Boolean value. (Element ID:1)
  2. 0

    [Mifos-developer] Errors running BIRT reports using scripted data source

    Google Groups | 7 years ago | Rituparna Buragohain
    org.eclipse.birt.report.engine.api.EngineException: Unhandled exception when executing script. at org.eclipse.birt.report.engine.script.internal.ScriptExecutor.addException(ScriptExecutor.java:187)
  3. 0

    not getting data when using scripted dataset in rcp designer

    Stack Overflow | 6 years ago | vikram.fartyal
    org.eclipse.birt.report.engine.api.EngineException: There are errors evaluating script "if(currentrow >= totalrows){ return false; }</p> <p>bean = activities.get(currentrow); cumulativeDistance = cumulativeDistance + bean.getDistance(); dataSetRow["time"] = bean.getTime(); dataSetRow["speed"] = bean.getSpeed(); dataSetRow["latitude"] = bean.getLatitude(); dataSetRow["longitude"] = bean.getLongitude(); dataSetRow["distance"] = bean.getDistance(); dataSetRow["cumulativeDistance"] = cumulativeDistance; dataSetRow["place"] = bean.getPlace(); currentrow = currentrow+1; return true;": {1}.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Scripted Data Source Question - Designing BIRT Reports - BIRT Developer Center

    actuate.com | 4 months ago
    org.eclipse.birt.report.engine.api.EngineException: There are errors evaluating script "if (currentRow < totalRows) { rowData = incentiveTarget[currentRow].split("|"); row["id"] = rowData[0]; row["category"] = rowData[1]; row["startDate"] = rowData[2]; row["endDate"] = rowData[3]; row["minAmt"] = rowData[4]; row["targetAmt"] = rowData[5]; row["maxAmt"] = rowData[6]; currentRow++; return (true); } return (false);": Fail to execute script in function __bm_FETCH(). Source: ------ " + if (currentRow < totalRows) { rowData = incentiveTarget[currentRow].split("|"); row["id"] = rowData[0]; row["category"] = rowData[1]; row["startDate"] = rowData[2]; row["endDate"] = rowData[3]; row["minAmt"] = rowData[4]; row["targetAmt"] = rowData[5]; row["maxAmt"] = rowData[6]; currentRow++; return (true); } return (false); + " ----- A BIRT exception occurred. See next exception for more information. Error evaluating Javascript expression. Script engine error: ReferenceError: "totalRows" is not defined. (/report/data-sets/script-data-set[@id="3412"]/method[@name="fetch"]#1) Script source: /report/data-sets/script-data-set[@id="3412"]/method[@name="fetch"], line: 0, text: __bm_FETCH(). (Element ID:1)
  6. 0

    Eclipse Community Forums: BIRT » Cannot install Birt on Eclipse 4.2.1 Juno

    eclipse.org | 4 months ago
    org.eclipse.birt.report.engine.api.EngineException: There are errors evaluating script "if(count < stock.size()){ row["columnDate"] = stock.get(count).getDate(); row["columnOpen"] = stock.get(count).getOpen(); row["columnHigh"] = stock.get(count).getHigh(); row["columnLow"] = stock.get(count).getLow(); row["columnClose"] = stock.get(count).getClose(); row["columnVolume"] = stock.get(count).getVolume(); count++; return true; } return false; ": Fail to execute script in function __bm_FETCH(). Source: ------ " + if(count < stock.size()){ row["columnDate"] = stock.get(count).getDate(); row["columnOpen"] = stock.get(count).getOpen(); row["columnHigh"] = stock.get(count).getHigh(); row["columnLow"] = stock.get(count).getLow(); row["columnClose"] = stock.get(count).getClose(); row["columnVolume"] = stock.get(count).getVolume(); count++; return true; } return false; + " ----- A BIRT exception occurred. See next exception for more information. Error evaluating Javascript expression. Script engine error: ReferenceError: "stock" is not defined. (/report/data-sets/script-data-set[@id="40"]/method[@name="fetch"]#1) Script source: /report/data-sets/script-data-set[@id="40"]/method[@name="fetch"], line: 0, text: __bm_FETCH(). (Element ID:1)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.eclipse.birt.report.engine.api.EngineException

      Data Set script method "Fetch" returned null; expected a Boolean value. (Element ID:1)

      at org.eclipse.birt.report.engine.script.internal.ScriptExecutor.addException()
    2. org.eclipse.birt
      ScriptDataSetScriptExecutor.handleFetch
      1. org.eclipse.birt.report.engine.script.internal.ScriptExecutor.addException(ScriptExecutor.java:244)
      2. org.eclipse.birt.report.engine.script.internal.ScriptExecutor.addException(ScriptExecutor.java:233)
      3. org.eclipse.birt.report.engine.script.internal.ScriptDataSetScriptExecutor.handleFetch(ScriptDataSetScriptExecutor.java:165)
      3 frames
    3. BIRT Data Engine
      QueryResults.getResultIterator
      1. org.eclipse.birt.data.engine.impl.ScriptDataSetRuntime.fetch(ScriptDataSetRuntime.java:103)
      2. org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$ScriptDSQueryExecutor$CustomDataSet.fetch(PreparedScriptDSQuery.java:260)
      3. org.eclipse.birt.data.engine.executor.cache.OdiAdapter.fetch(OdiAdapter.java:226)
      4. org.eclipse.birt.data.engine.executor.cache.RowResultSet.doNext(RowResultSet.java:113)
      5. org.eclipse.birt.data.engine.executor.cache.RowResultSet.next(RowResultSet.java:91)
      6. org.eclipse.birt.data.engine.executor.cache.ExpandableRowResultSet.next(ExpandableRowResultSet.java:63)
      7. org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper.populateData(SmartCacheHelper.java:316)
      8. org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper.initInstance(SmartCacheHelper.java:285)
      9. org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper.getResultSetCache(SmartCacheHelper.java:246)
      10. org.eclipse.birt.data.engine.executor.cache.SmartCache.<init>(SmartCache.java:73)
      11. org.eclipse.birt.data.engine.executor.transform.pass.PassUtil.populateOdiResultSet(PassUtil.java:110)
      12. org.eclipse.birt.data.engine.executor.transform.pass.PassUtil.pass(PassUtil.java:62)
      13. org.eclipse.birt.data.engine.executor.transform.pass.PassManager.doSinglePass(PassManager.java:170)
      14. org.eclipse.birt.data.engine.executor.transform.pass.PassManager.prepareDataSetResultSet(PassManager.java:94)
      15. org.eclipse.birt.data.engine.executor.transform.pass.PassManager.pass(PassManager.java:134)
      16. org.eclipse.birt.data.engine.executor.transform.pass.PassManager.populateResultSet(PassManager.java:74)
      17. org.eclipse.birt.data.engine.executor.transform.ResultSetPopulator.populateResultSet(ResultSetPopulator.java:198)
      18. org.eclipse.birt.data.engine.executor.transform.CachedResultSet.<init>(CachedResultSet.java:195)
      19. org.eclipse.birt.data.engine.executor.CandidateQuery.execute(CandidateQuery.java:154)
      20. org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$ScriptDSQueryExecutor.executeOdiQuery(PreparedScriptDSQuery.java:226)
      21. org.eclipse.birt.data.engine.impl.QueryExecutor.execute(QueryExecutor.java:1134)
      22. org.eclipse.birt.data.engine.impl.ServiceForQueryResults.executeQuery(ServiceForQueryResults.java:232)
      23. org.eclipse.birt.data.engine.impl.QueryResults.getResultIterator(QueryResults.java:177)
      23 frames
    4. org.eclipse.birt
      BirtDocumentProcessor.handleGetPageAll
      1. org.eclipse.birt.report.engine.data.dte.QueryResultSet.<init>(QueryResultSet.java:98)
      2. org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExecuteQuery(DteDataEngine.java:168)
      3. org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.execute(AbstractDataEngine.java:267)
      4. org.eclipse.birt.report.engine.executor.ExecutionContext.executeQuery(ExecutionContext.java:1939)
      5. org.eclipse.birt.report.engine.executor.QueryItemExecutor.executeQuery(QueryItemExecutor.java:80)
      6. org.eclipse.birt.report.engine.executor.TableItemExecutor.execute(TableItemExecutor.java:62)
      7. org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplicateItemExecutor.execute(SuppressDuplicateItemExecutor.java:43)
      8. org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:46)
      9. org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:34)
      10. org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:65)
      11. org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:92)
      12. org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:100)
      13. org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:180)
      14. org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:77)
      15. org.eclipse.birt.report.service.ReportEngineService.runAndRenderReport(ReportEngineService.java:929)
      16. org.eclipse.birt.report.service.BirtViewerReportService.runAndRenderReport(BirtViewerReportService.java:973)
      17. org.eclipse.birt.report.service.actionhandler.BirtGetPageAllActionHandler.__execute(BirtGetPageAllActionHandler.java:131)
      18. org.eclipse.birt.report.service.actionhandler.AbstractBaseActionHandler.execute(AbstractBaseActionHandler.java:90)
      19. org.eclipse.birt.report.soapengine.processor.AbstractBaseDocumentProcessor.__executeAction(AbstractBaseDocumentProcessor.java:47)
      20. org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.executeAction(AbstractBaseComponentProcessor.java:143)
      21. org.eclipse.birt.report.soapengine.processor.BirtDocumentProcessor.handleGetPageAll(BirtDocumentProcessor.java:183)
      21 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      3. java.lang.reflect.Method.invoke(Unknown Source)
      3 frames
    6. org.eclipse.birt
      BirtSoapBindingImpl.getUpdatedObjects
      1. org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.process(AbstractBaseComponentProcessor.java:112)
      2. org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingImpl.getUpdatedObjects(BirtSoapBindingImpl.java:66)
      2 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      3. java.lang.reflect.Method.invoke(Unknown Source)
      3 frames
    8. Axis Web Services
      AxisServlet.doPost
      1. org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
      2. org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
      3. org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
      4. org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
      5. org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
      6. org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
      7. org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
      8. org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
      9. org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
      9 frames
    9. org.eclipse.birt
      BirtSoapMessageDispatcherServlet.doPost
      1. org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doPost(BirtSoapMessageDispatcherServlet.java:265)
      1 frame
    10. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      1 frame
    11. Axis Web Services
      AxisServletBase.service
      1. org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
      1 frame
    12. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      1 frame
    13. org.eclipse.birt
      BirtSoapMessageDispatcherServlet.service
      1. org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.service(BirtSoapMessageDispatcherServlet.java:122)
      1 frame
    14. org.eclipse.equinox
      ProxyServlet.service
      1. org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)
      2. org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
      3. org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:126)
      4. org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)
      4 frames
    15. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      1 frame
    16. Jetty Http Service
      HttpServerManager$InternalHttpServiceServlet.service
      1. org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManager.java:317)
      1 frame
    17. Jetty Server
      HttpConnection.handle
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
      3. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      4. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      5. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      6. org.mortbay.jetty.Server.handle(Server.java:326)
      7. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
      8. org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:939)
      9. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
      10. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
      11. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      11 frames