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/adapter/ModelDteApiAdapter.java
.getQualifiedName( ) );
		IScriptDataSetEventHandler eventHandler = new ScriptDataSetScriptExecutor(
				modelDataSet, reportContext );
		dteDataSet.setEventHandler( eventHandler );
		
		adaptBaseDataSet( modelDataSet, dteDataSet );
		
		dteDataSet.setOpenScript( modelDataSet.getOpen( ) );
		dteDataSet.setFetchScript( modelDataSet.getFetch( ) );
		dteDataSet.setCloseScript( modelDataSet.getClose( ) );
		dteDataSet.setDescribeScript( modelDataSet.getDescribe( ) );
		return dteDataSet;
	}
	void adaptBaseDataSet( DataSetHandle modelDataSet,
			BaseDataSetDesign dteDataSet ) throws BirtException
	{
		if ( modelDataSet.getDataSource( ) == null )
			throw new EngineException(
					"The data source of this data set can not be null." );
		dteDataSet.setDataSource( modelDataSet.getDataSource( )
				.getQualifiedName( ) );
		dteDataSet.setBeforeOpenScript( modelDataSet.getBeforeOpen( ) );
		dteDataSet.setAfterOpenScript( modelDataSet.getAfterOpen( ) );
		dteDataSet.setOnFetchScript( modelDataSet.getOnFetch( ) );
		dteDataSet.setBeforeCloseScript( modelDataSet.getBeforeClose( ) );
		dteDataSet.setAfterCloseScript( modelDataSet.getAfterClose( ) );
		
		dteDataSet.setCacheRowCount( modelDataSet.getCachedRowCount( ) );
		
		HashMap paramBindingCandidates = new HashMap( );