I’m new to BIRT. I ran a report engine sample and got a java.lang.AssertionError with no log output. Any ideas on fixing my configuration?
public static void runReportApp() {
IReportEngine engineInstance = null;
EngineConfig engineConfig = null;
try {
engineConfig = new EngineConfig();
engineConfig.setBIRTHome("D:/new_birt_runtime");
engineConfig.setLogConfig("C:/logs", java.util.logging.Level.FINER);
Platform.startup(engineConfig);
IReportEngineFactory reportFactory = (IReportEngineFactory) Platform.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);
engineInstance = reportFactory.createReportEngine(engineConfig);
IReportRunnable reportDesign = engineInstance.openReportDesign("D:/new_birt_runtime/samples/example_report.rptdesign");
IRunAndRenderTask renderTask = engineInstance.createRunAndRenderTask(reportDesign);
HTMLRenderOption renderOptions = new HTMLRenderOption();
renderOptions.setOutputFileName("results/new_report.html");
renderOptions.setOutputFormat("html");
renderTask.setRenderOption(renderOptions);
renderTask.run();
renderTask.close();
engineInstance.destroy();
} catch (Exception ex) {
ex.printStackTrace();
} finally {
Platform.shutdown();
}
}