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
return null;
		}
		protected ClassLoader createClassLoaderFromDesign( ClassLoader parent )
		{
			IReportRunnable runnable = context.getRunnable( );
			if ( runnable != null )
			{
				ModuleHandle module = (ModuleHandle) runnable.getDesignHandle( );
				ArrayList urls = new ArrayList( );
				Iterator iter = module.scriptLibsIterator( );
				while ( iter.hasNext( ) )
				{
					ScriptLibHandle lib = (ScriptLibHandle) iter.next( );
					String libPath = lib.getName( );
					URL url = module.findResource( libPath,
							IResourceLocator.LIBRARY );
					if ( url != null )
					{
						urls.add( url );
					}
				}
				if ( urls.size( ) != 0 )
				{
					URL[] jarUrls = (URL[]) urls.toArray( new URL[]{} );
					return new URLClassLoader( jarUrls, parent );
				}
			}
			return parent;
		}
	}