error on BIRT report analytics: IBM Worklight

家住魔仙堡 提交于 2019-12-11 19:17:50

问题


I am trying to generate BIRT report on IBM Worklight for an Android device. For this I am following instructions given in the following article:
Worklight: Generate analytics data and view BIRT reports

The steps I've taken are:

  1. Installed BIRT in Eclipse from the Juno repository: Juno - http://download.eclipse.org/releases/juno

  2. Created a Worklight project with and edited worklight.properties (please find code below)

  3. Already being installed SQL server with databases: "worklight" and "wl_report"

  4. Added the Android environment, Built and Deploy the application and ran the Android application on device. Then I checked the database, it has all tables but there is no data in "app_activity_report" table

  5. Download "module_44_0_DeviceAnalytics" from the Getting Started page, import it into Eclipse, click on the Report design and edit it with the database connection.

No Graph is being generated.

worklight.properties:

wl.db.type=MYSQL
wl.db.url=jdbc:mysql://*.0.0.1:****/worklight
wl.db.username=root
wl.db.password=root

reports.exportRawData=true

wl.reports.db.type=MYSQL
wl.reports.db.url=jdbc:mysql://*.0.0.1:****/wl_report
wl.reports.db.username=root
wl.reports.db.password=root

any help would be highly appreciated.


回答1:


Have you made sure to also update initOptions.js (in yourProject\apps\yourApp\common\js folder) and change connectOnStartup from "false" to "true"?

Otherwise, the application will not connect to the Worklight Server and no logging to the database (to the app_activity_report table) will take place.



来源:https://stackoverflow.com/questions/16730220/error-on-birt-report-analytics-ibm-worklight

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!