How to automate BIRT report generation
I am using BIRT 2.6.2 version in RTC 4.0.4 for report generation. Now I am looking for option to schedule the report generation. I tried using BIRT runtime genReport option. I am able to run sample report, but if I run real report which needs to be connected to Oracle database is throwing error.
Apr 01, 2015 4:55:28 PM org.eclipse.birt.report.engine.api.ReportRunner execute
SEVERE: exception in parsing the paramters
java.lang.NullPointerException
at org.eclipse.birt.report.engine.api.ReportRunner.execute(ReportRunner.
java:145)
at org.eclipse.birt.report.engine.api.ReportRunner.main(ReportRunner.jav
a:122)
Need guidance to resolve the issue.
Also, tried running report on tomcat server, that too failed.
Appreciate help on running BIRT outside RTC environment.
One answer
Hello,
I have encountered the same problem and finally, I have used a java program which calls report url with REST API.
Then you execute this java program with a script in a scheduler (crontab or windows tasks).
Regards
Mathieu
I have encountered the same problem and finally, I have used a java program which calls report url with REST API.
Then you execute this java program with a script in a scheduler (crontab or windows tasks).
Regards
Mathieu
Comments
Hi Mathieu,
Thanks for the input. I am not good in Java, can you provide more details on this or shall the Java program?
Regards,
Tojan.
Tojan,
You must use for example the library "httpclient" from apache to send data to RTC with some urls.
Then, read this article (http://www.ibm.com/developerworks/rational/library/rational-team-concert-oslc/ ) to construct your java program.
Last step, you must retrieve the report url with a right click in the web site
Regards,
Mathieu
Hi Mathieu,
Could you please help to understand how to use REST API to call report url.
If you have any sample code/application then can you please share with me.
I am new for REST API.
Thanks
Monali