Bug 207897 [Automation][Regression]A DataException is thrown out when preview reportdesign
Description: A DataException is thrown out when preview reportdesign Test Date: 20071030 Test Build: BIRT2.2.2 v20071029 Step to reproduce: 1. Use the reportdesign attached 2. Preview it Expect result: Report can be previewed without any exception. Actual result: A DataException is thrown out.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ExecutionContext.java
catch ( Throwable throwable )
		{
		}
		context.setLocale( locale );
		initailizeScriptContext( context, scriptContext
				.getRootScope( ) );
		
		
		scriptContext.registerBean( "report", new ReportObject( ) );
		scriptContext
				.registerBean(
						"params", new ScriptableParameters( params, scriptContext.getScope( ) ) ); 
		scriptContext.registerBean( "config", configs ); 
		scriptContext.registerBean( "currentPage", new Long( pageNumber ) );
		scriptContext.registerBean( "totalPage", new Long( totalPage ) );
		scriptContext.registerBean( "_jsContext", this );
		scriptContext
				.eval( "function registerGlobal( name, value) { _jsContext.registerGlobalBean(name, value); }" );
		scriptContext
				.eval( "function unregisterGlobal(name) { _jsContext.unregisterGlobalBean(name); }" );
		
		applicationClassLoader = new ApplicationClassLoader( this );
		context.setApplicationClassLoader(
				applicationClassLoader );
		
	}
	protected void initailizeScriptContext( Context cx, Scriptable scope )
	{
		scriptContext.getContext( ).setWrapFactory( new WrapFactory( ) {
			protected IJavascriptWrapper coreWrapper = new CoreJavaScriptWrapper( );