Project: Birt
Bug 121111 Bad event handler class name does not cause an error
Reported: 2005-12-15 15:14:48 | Status: resolved fixed

Open a report design, open any Data Set's Property editor. Type in an invalid Java class name for the "Event Handler Class" property, say "aaa". Preview a report that uses that Data Set. The report executes normally. No error is shown. Event handlers are an integral part of a report design, and if a script handler class is not found, or if the handler throws a runtime exception, Report Engine should either stop the report execution, or show the error message in the generated report. (Tested with the 2005-12-15 nightly build)

Files changed in fix:
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/adapter/ModelDteApiAdapter.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/GetParameterDefinitionTask.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/RenderTask.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/RunTask.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/ScriptedDesignVisitor.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/script/eventadapter/ReportEventAdapter.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/script/eventhandler/IReportEventHandler.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/AbstractDataEngine.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/DteDataEngine.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ExecutionContext.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/i18n/MessageConstants.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/CellScriptExecutor.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/DataItemScriptExecutor.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/DataSetScriptExecutor.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/DataSourceScriptExecutor.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/DtEScriptExecutor.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/DynamicTextScriptExecutor.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/GridScriptExecutor.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/ImageScriptExecutor.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/LabelScriptExecutor.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/ListGroupScriptExecutor.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/ListScriptExecutor.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/ReportScriptExecutor.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/RowScriptExecutor.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/ScriptDataSetScriptExecutor.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/ScriptDataSourceScriptExecutor.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/ScriptExecutor.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/TableGroupScriptExecutor.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/TableScriptExecutor.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/TextItemScriptExecutor.java