Bug 167051 Error when run a report contain toc[0600]
Description: Error when run a report contain toc[0600] Step: Run the test case on org.eclipse.birt.report.tests.engine.api.RenderTaskTest.java testRenderReportlet_toc() Actual result: Model have been change the expression toc to structure toc. And engine can't get the toc tree junit.framework.AssertionFailedError: Render reportlet toc_chartfromreportlet_bookmark_toc failed. null at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.assertTrue(Assert.java:20) at org.eclipse.birt.report.tests.engine.api.RenderTaskTest.renderReportlet(RenderTaskTest.java:539) at org.eclipse.birt.report.tests.engine.api.RenderTaskTest.testRenderReportlet_toc(RenderTaskTest.java:279) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:58) at org.eclipse.pde.internal.junit.runtime.CoreTestApplication.run(CoreTestApplication.java:24) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952)
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/APICompatibleTest.java
textData.setValueExpr( "row[\"textData1ValueExpr\"]" ); 
		GridHandle grid = designHandle.getElementFactory( ).newGridItem(
				"grid1", 2, 2 ); 
		grid.getCell( 2, 2 ).getContent( ).add( textData );
		table.getCell( TableHandle.FOOTER_SLOT, -1, 1, 1 ).getContent( ).add(
				grid );
		table.getCell( TableHandle.FOOTER_SLOT, -1, 1, 1 ).setOnCreate(
				"row[\"onCreateValueExpr\"] + 1" );
		ListHandle list = designHandle.getElementFactory( ).newList( "list1" ); 
		FilterCondition filter = new FilterCondition( );
		filter.setExpr( "row[\"filter1ValueExpr\"]" ); 
		filter.setValue1( "row[\"filter1Value1\"]" ); 
		filter.setValue2( "row[\"filter1Value2\"]" ); 
		list.getPropertyHandle( ListHandle.FILTER_PROP ).addItem( filter );
		SortKey sort = new SortKey( );
		sort.setKey( "row[\"sort1Key\"]" ); 
		list.getPropertyHandle( ListHandle.SORT_PROP ).addItem( sort );
		designHandle.getBody( ).add( list );
		ScalarParameterHandle param = designHandle.getElementFactory( )
				.newScalarParameter( "param1" ); 
		param.setValueExpr( "row[\"param1ValueExpr\"]" ); 
		param.setLabelExpr( "row[\"param1LabelExpr\"]" ); 
		designHandle.getParameters( ).add( param );
		param = designHandle.getElementFactory( ).newScalarParameter( "param2" ); 
		param.setValueExpr( "param2ValueExpr" ); 
		param.setLabelExpr( "param2LabelExpr" ); 
		designHandle.getParameters( ).add( param );
		textData = designHandle.getElementFactory( ).newTextData( "textData2" ); 
		designHandle.getBody( ).add( textData );
		ComputedColumn boundColumn = new ComputedColumn( );