- This topic has 2 replies, 2 voices, and was last updated 14 years, 5 months ago by mongonv.
-
AuthorPosts
-
mongonvParticipantHey All,
I am trying to get a simple report to run from a standalone java application with ME 8.5 and BIRT 2.5.2 and cannot get past the following error when running the report:java.lang.IllegalArgumentException: Cannot find the ODA dataSource extension (com.genuitec.eclipse.reporting.oda). Check the workspace log file for any problems with loading the extension bundle and its dependencies. at org.eclipse.datatools.connectivity.oda.util.manifest.ManifestExplorer.getExtensionManifest(ManifestExplorer.java:200)
I have added the ME Report Web Libraries, put the BIRT Runtime in the path specified in the code, added the oracle driver to the ReportEngine\plugins\org.eclipse.birt.report.data.oda.jdbc_2.5.2.v20100205\drivers as indicated by things I could find on the problem.
The code I am using is as follows:
IReportEngine engine = null; EngineConfig config = null; config = new EngineConfig( ); config.setBIRTHome("E:/Development/birt-runtime-2_5_2/ReportEngine"); config.setLogConfig("E:/temp", java.util.logging.Level.FINEST); Platform.startup( config ); IReportEngineFactory factory = (IReportEngineFactory) Platform .createFactoryObject( IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY ); engine = factory.createReportEngine( config ); IReportRunnable design = null; design = engine.openReportDesign("E:/temp/user_obj.rptdesign"); IRunAndRenderTask task = engine.createRunAndRenderTask(design); PDFRenderOption options = new PDFRenderOption(); options.setOutputFileName("E:/temp/user_obj.pdf"); options.setOutputFormat("pdf"); task.setRenderOption(options); task.run(); task.close(); engine.destroy();
The report does output the headers of the design to the PDF, but the error stops any data.
My real need is to be able to save a report problematically to a PDF file on disk from a Tomcat web application, but can’t find any examples on how to do that so starting with just a simple java app, but not getting anywhere.
Any help would be greatly appreciated,
Ed
support-chakriMemberHi Ed,
1) Can you send me the error you are getting and if possible a screen shot of the error. You can PM the SS file which is available at the bottom of this post.
2) Can you copy and paste the error log file? Log file is available at “~\[your workspace dir]\.metadata\.log”. I want error log at that particular time of error. No need to send all error log content.Thanks,
Chakri Vedula.
mongonvParticipantHey Chakri,
Thanks for the reply, I was able to find an example of how to get it to work as a servlet, which was my ultimate goal. Not sure why the java app does not work, but getting the web app to work is what I really needed.The address of the sample I found is at, in case anyone else needs it:
http://wiki.eclipse.org/Servlet_Example_%28BIRT%29_2.1Thanks again for your willingness to help, we need people like you in all the communities.
Ed -
AuthorPosts