Bug 153856 Viewing a quite big report causes a exception thrown
I built a report, which uses 4 flat file data sources(.csv file) and contains lots of query in the expression of data item. Then when viewing this report causes a exception thrown: "java.lang.ClassException:java.lang.OutOfMemoryError" And the xml of report is attahed. Thanks.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/document/RDSaveUtil.java
/**
	 * @param exprNameSet
	 * @throws DataException
	 */
	void saveExprMetadata( Set exprNameSet ) throws DataException
	{
		OutputStream outputStream = streamManager.getOutStream( DataEngineContext.EXPR_META_STREAM,
				StreamManager.ROOT_STREAM,
				StreamManager.SELF_SCOPE );
		ExprMetaUtil.saveExprMetaInfo( queryDefn, exprNameSet, outputStream );
		try
		{
			outputStream.close( );
		}
		catch ( IOException e )
		{
			throw new DataException( ResourceConstants.RD_SAVE_ERROR, e );
		}
	}
	
	/**
	 * @throws DataException
	 */
	void saveQueryDefn( ) throws DataException
	{
		OutputStream outputStream;
		if ( queryDefn instanceof QueryDefinition
				&& ( (QueryDefinition) queryDefn ).getQueryResultsID( ) == null )
		{
			outputStream = streamManager.getOutStream( DataEngineContext.ORIGINAL_QUERY_DEFN_STREAM,