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
* @param list the XSObjectList which lists all particles.
	 */
	private static void populateTreeNodeWithParticles( ATreeNode node, XSObjectList list )
	{
		for ( int j = 0; j < list.getLength( ); j++ )
		{
			ATreeNode childNode = new ATreeNode( );
			childNode.setValue( ( (XSParticleDecl) list.item( j ) ).getTerm( )
					.getName( ) );
			if ( ( (XSParticleDecl) list.item( j ) ).getTerm( ) instanceof XSElementDecl)
			{
				String dataType = ( (XSElementDecl) ( (XSParticleDecl) list.item( j ) ).getTerm( ) ).getTypeDefinition( ).getName( );
				if ( dataType == null || dataType.length( ) == 0 )
					dataType = childNode.getValue( ).toString( );
				childNode.setDataType( dataType );
				childNode.setType( ATreeNode.ELEMENT_TYPE );
				node.addChild( childNode );
			}
			
			
			else if ( ( (XSParticleDecl) list.item( j ) ).getTerm( ) instanceof XSModelGroupImpl)
			{
				XSModelGroupImpl mGroup = (XSModelGroupImpl)( (XSParticleDecl) list.item( j ) ).getTerm( );
				XSObjectList obs = mGroup.getParticles();
				populateTreeNodeWithParticles( node, obs );
			}
		}
	}
}