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
*/
	public static ATreeNode getSchemaTree( String fileName, boolean incAttr )
			throws OdaException, MalformedURLException, URISyntaxException
	{
		includeAttribute = incAttr;
		DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance( );
		factory.setNamespaceAware( true );
		URI uri = null;
		File f = new File(fileName);
		if( f.exists( ))
			uri = f.toURI();
		else
		{
			URL url = new URL(fileName);
			uri = new URI(url.getProtocol( ), url.getUserInfo( ), url.getHost( ), url.getPort( ), url.getPath( ), url.getQuery( ), url.getRef( ));
		}
		
		
		if ( uri == null )
		{
			uri = new URI( fileName );
		}
		
		XSLoader xsLoader = new XMLSchemaLoader( );
		XSModel xsModel = xsLoader.loadURI( uri.toString( ) );
		ATreeNode complexTypesRoot = populateComplexTypeTree( xsModel );
		XSNamedMap map = xsModel.getComponents( XSConstants.ELEMENT_DECLARATION );
		ATreeNode root = new ATreeNode( );
		root.setValue( "ROOT" );
		for ( int i = 0; i < map.getLength( ); i++ )