Bug 139343 [regression]Can not use __document to preview report document when deploy birt.
Summary: [regression]Can not use __document to preview report document when deploy birt. Steps to reproduce: 1. Deploy birt 2. Render a report document 3. Preview the report document by using __document Result: The design file C:\apps\jakarta-tomcat-5.5.7\webapps\birt060428\ has error and can not be run.
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/BirtViewerReportService.java
catch ( EngineException e )
		{
			throw new ReportServiceException( e.getLocalizedMessage( ) );
		}
		for ( Iterator iter = parameterList.iterator( ); iter.hasNext( ); )
		{
			IScalarParameterDefn parameterObj = (IScalarParameterDefn) iter
					.next( );
			String paramValue = null;
			Object paramValueObj = null;
			ScalarParameterHandle paramHandle = (ScalarParameterHandle) parameterObj
					.getHandle( );
			String paramName = paramHandle.getName( );
			String format = paramHandle.getPattern( );
			ReportParameterConverter converter = new ReportParameterConverter(
					format, locale );
			Set paramNames = null;
			if ( parameters != null )
			{
				paramNames = parameters.keySet( );
			}
			if ( parameters != null && paramName != null )
			{
				boolean found = false;
				for ( Iterator it = paramNames.iterator( ); it.hasNext( ); )
				{
					String name = (String) it.next( );
					if ( paramName.equals( name ) )
					{
						if ( parameters.get( name ) != null )