Project: Birt
Bug 281865 Failed to restart standalone BIRT engine
Reported: 2009-06-29 11:29:38 | Status: verified fixed

Build ID: M20090211-1700 Steps To Reproduce: { EngineConfig config = new EngineConfig(); config.setEngineHome(BIRT_ENGINE_HOME); Platform.startup(config); IReportEngineFactory factory = (IReportEngineFactory) Platform .createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY); IReportEngine engine = factory.createReportEngine(config); // ... engine.destroy(); Platform.shutdown(); } { EngineConfig config = new EngineConfig(); config.setEngineHome(BIRT_ENGINE_HOME); Platform.startup(config); IReportEngineFactory factory = (IReportEngineFactory) Platform .createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY); IReportEngine engine = factory.createReportEngine(config); // ... engine.destroy(); Platform.shutdown(); } More information:

Files changed in fix:
core/org.eclipse.birt.core/src/org/eclipse/birt/core/framework/Platform.java data/org.eclipse.birt.report.engine.script.javascript/src/org/eclipse/birt/report/engine/javascript/JavascriptEngineFactory.java data/org.eclipse.birt.report.engine.script.javascript/src/org/eclipse/birt/report/engine/javascript/plugin/JavaScriptPlugin.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/ReportEngine.java