Bug 150899 Cannot bind data values to chart series, which causes chart preview fail.
How to reproduce it? 1. Create a new chart, bind it with valid data set. 2. Assign the valid data values to category series and value series. Current result: 1. There is no chart live preview in chart builder. It still uses the default sample data. 2. Preview, dataset invalid exception is thrown out. Investigation: It is perhaps caused by ResultSetWrapper.java. There is no initializeMeta( ) in the Constructor.
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/internal/datafeed/ResultSetWrapper.java
groupKey
		} ) );
		final int iColumnIndex = groupKey.getKeyIndex( );
		final Iterator it = resultSet.iterator( );
		final ArrayList al = new ArrayList( 8 );
		boolean bFirst = true;
		Object oValue, oPreviousValue = null;
		int iRowIndex = 0;
		while ( it.hasNext( ) )
		{
			oValue = ( (Object[]) it.next( ) )[iColumnIndex];
			iRowIndex++;
			if ( bFirst )
			{
				bFirst = false;
				oPreviousValue = oValue;
				continue;
			}
			if ( compareObjects( oPreviousValue, oValue ) != 0 )
			{
				al.add( new Integer( iRowIndex - 1 ) );
			}
			oPreviousValue = oValue;
		}
		final int[] ia = new int[al.size( )];
		for ( int i = 0; i < al.size( ); i++ )
		{
			ia[i] = ( (Integer) al.get( i ) ).intValue( );
		}
		return ia;