Bug 121111 Bad event handler class name does not cause an error
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)
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ExecutionContext.java
import org.eclipse.birt.report.engine.data.IDataEngine;
import org.eclipse.birt.report.engine.i18n.MessageConstants;
import org.eclipse.birt.report.engine.ir.Report;
import org.eclipse.birt.report.engine.ir.ReportItemDesign;
import org.eclipse.birt.report.engine.toc.TOCBuilder;
import org.eclipse.birt.report.model.api.DesignElementHandle;
import org.eclipse.birt.report.model.api.ReportDesignHandle;
import org.eclipse.birt.report.model.script.ModelJavaScriptInitializer;
import org.eclipse.birt.report.model.script.ModelJavaScriptWrapper;
import org.eclipse.birt.report.model.script.ReportDefinition;
import org.mozilla.javascript.Context;
import org.mozilla.javascript.Scriptable;
import org.mozilla.javascript.WrapFactory;
/**
 * Captures the report execution context. This class is needed for accessing
 * global information during execution as well as for for scripting. It
 * implements the <code>report</code> Javascript object, as well as other
 * objects such as <code>report.params</code>,<code>report.config</code>,
 * <code>report.design</code>, etc.
 * 
 * @version $Revision: 1.49 $ $Date: 2005/12/22 06:43:56 $
 */
public class ExecutionContext
{
	
	private static Logger log = Logger.getLogger( ExecutionContext.class
			.getName( ) );
	
	
	private ReportEngine engine;