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/script/internal/DtEScriptExecutor.java
}
	protected JSMethodRunner getRunner( Scriptable scope, String type,
			String name )
	{
		String scopeName = type + "[" + name + "]";
		runner = new JSMethodRunner( scope, scopeName );
		return runner;
	}
	protected JSScriptStatus handleJS( Scriptable scope, String type,
			String name, String method, String script )
	{
		if ( script == null || type == null || name == null || method == null )
			return JSScriptStatus.NO_RUN;
		if ( !( DATA_SET.equals( type ) || DATA_SOURCE.equals( type ) ) )
			return JSScriptStatus.NO_RUN;
		Object result = null;
		try
		{
			JSMethodRunner jsr = getRunner( scope, type, name );
			result = jsr.runScript( method, script );
		} catch ( Exception e )
		{
			e.printStackTrace( );
		}
		return new JSScriptStatus( true, result );
	}
	protected abstract JSScriptStatus handleJS( Scriptable scope, String name,
			String method, String script );
}