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
* Add the particles and attributes that defined in an implicitly defined ComplexType to the node.
	 * 
	 * @param node
	 * @param complexType
	 */
	private static void addParticleAndAttributeInfo( ATreeNode node,
			XSComplexTypeDecl complexType, ATreeNode complexTypesRoot  )
	{
		XSParticle particle = complexType.getParticle( );
		if ( particle != null )
		{
			XSObjectList list = ( (XSModelGroupImpl) particle.getTerm( ) ).getParticles( );
			for ( int j = 0; j < list.getLength( ); j++ )
			{
				ATreeNode childNode = new ATreeNode( );
				childNode.setValue( ( (XSParticleDecl) list.item( j ) ).getTerm( )
						.getName( ) );
				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 );
				
				if ((!dataType.equals("anyType"))
						&& ((XSElementDecl) ((XSParticleDecl) list.item(j))
								.getTerm()).getTypeDefinition() instanceof XSComplexTypeDecl)
				{	ATreeNode n = findComplexElement(complexTypesRoot,dataType);
					if( n!= null )
					{