Bug 137165 Stream closed exception
My report generates one simple chart. The data to this chart are generated by my servlet as XML. When I launch this report in web-based viewer (/birt/frameset?__report=) report is working, but when I launch it as standalone HTML (/birt/run?__report=) the viewer return exception: java.lang.RuntimeException: Stream closed at org.eclipse.birt.report.data.oda.xml.util.SaxParser.run(SaxParser.java:108) at java.lang.Thread.run(Thread.java:534)
data/org.eclipse.birt.report.data.oda.xml/src/org/eclipse/birt/report/data/oda/xml/util/ui/SchemaPopulationUtil.java
*/
final class XSDFileSchemaTreePopulator
{
	private static boolean includeAttribute = true;
	/**
	 * Populate the whole tree until all the leaves have no child.
	 * 
	 * @param root
	 */
	private static void populateRoot( ATreeNode root )
	{
		Object[] toBeIterated = root.getChildren( );
		for ( int i = 0; i < toBeIterated.length; i++ )
		{
			Object value = ( (ATreeNode) toBeIterated[i] ).getDataType( );
																			
			List container = new ArrayList( );
			findNodeWithValue( root, value.toString( ), container );
			for ( int j = 0; j < container.size( ); j++ )
			{
				if ( ( (ATreeNode) container.get( j ) ).getChildren( ).length == 0 )
				{
					Object[] os = ( (ATreeNode) toBeIterated[i] ).getChildren( );
					for ( int k = 0; k < os.length; k++)
					{
						if( !(((ATreeNode)os[k]).getDataType()!= null && ((ATreeNode)os[k]).getDataType().equals(((ATreeNode) container.get( j )).getDataType())))
							( (ATreeNode) container.get( j ) ).addChild( os[k]);
					}
			
				}