Encountering AssertionError in BIRT Report Engine Setup

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();
    }
}

hey neo_movies, i had a simlar problem once, check if your birt home path is correct and permissions set right. sometimes running as adim fixes it. good luck!

The device I took was to check for mismatched version dependencies. I once encountered a similar assertion when my version of Java wasn’t compatible with the BIRT runtime libraries. Verifying the classpath and ensuring the correct version of the runtime was used resolved it for me. I also noticed that some configuration files needed to be in specific directories relative to the birt home. This troubleshooting helped me identify the configuration misalignment and the necessity for proper library integration.