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
/*******************************************************************************
 * Copyright (c) 2004 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/
package org.eclipse.birt.data.engine.impl.document;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Set;
import org.eclipse.birt.data.engine.api.DataEngineContext;
import org.eclipse.birt.data.engine.api.IBaseQueryDefinition;
import org.eclipse.birt.data.engine.api.querydefn.QueryDefinition;
import org.eclipse.birt.data.engine.core.DataException;
import org.eclipse.birt.data.engine.i18n.ResourceConstants;
import org.eclipse.birt.data.engine.impl.document.viewing.ExprMetaUtil;
import org.eclipse.birt.data.engine.odi.IResultIterator;
/**
 * Help to save information to report document.
 */
class RDSaveUtil
{
	private int mode;
	private IBaseQueryDefinition queryDefn;