Project: Birt
Bug 311507 InvocationTargetException when switching to Preview Results
Reported: 2010-05-04 06:11:15 | Status: verified fixed

Build Identifier: 20100218-1602 InvocationTargetException occurs when editing a DataSet (to which the DataSource has property binding) and switching to Preview Results. The real exception is SWTException(Invalid thread access) in ReportPropertySheetPage (elementChanged function). Possible resolution (asynchExec): public void elementChanged( DesignElementHandle focus, NotificationEvent ev ) { if ( !viewer.getTree( ).isDisposed( ) ) { PlatformUI.getWorkbench().getDisplay().asynchExec(){new Runnable() { public void run() { refresh( ); } }); } Reproducible: Always Steps to Reproduce: 1. Create a new Report Design 2. Create a new XML Data Source (e.g. based on library.xml) 3. Create a new ReportParameter (name: XMLfile, type: String) 4. Bind this XMLfile ReportParameter to "XML Data Source File" property in the DataSource Editor 5. Create a new XMLDataSet 6. Open Properties View 7. Edit the DataSet 8. Open the DataSet (double click on it in Data Explorer) 9. Switch to Preview Results => Exception

Files changed in fix:
UI/org.eclipse.birt.report.designer.ui.data/src/org/eclipse/birt/report/designer/data/ui/dataset/ResultSetPreviewPage.java