Project: talenddataquality
Issue TDQ-10275: run column analysis focus on "Analysis Result" page  get many errors in error log--for some frequency indicators(analysis can run successfully)
1. create a column analysis, set sql engine, add int, date, varchar columns 2. add all available System indicators for the three columns. 3. run the analysis when focus on "Analysis Settings" page, successfully 4. turn to "Analysis Results" page. re-run it by click "Run" icon. Expected Result: analysis run without error. Actual Result: analysis can run successfully(check by Execution Status, and Last Successful Execution), but get errors in error log. {code} org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.ClassCastException: org.jfree.data.category.DefaultCategoryDataset cannot be cast to org.talend.dataprofiler.common.ui.editor.preview.ICustomerDataset) org.eclipse.swt.SWT.error(SWT.java:4441) org.eclipse.swt.SWT.error(SWT.java:4356) org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:139) org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4147) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3764) org.eclipse.jface.window.Window.runEventLoop(Window.java:832) org.eclipse.jface.window.Window.open(Window.java:808) org.eclipse.ui.internal.views.log.EventDetailsDialog.open(EventDetailsDialog.java:181) org.eclipse.ui.internal.views.log.EventDetailsDialogAction.run(EventDetailsDialogAction.java:98) org.eclipse.ui.internal.views.log.LogView$15.doubleClick(LogView.java:537) org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:831) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50) org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:178) org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:828) org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(AbstractTreeViewer.java:1472) org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1237) org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:252) org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:249) org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:311) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151) org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032) org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148) org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636) org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579) org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) org.talend.rcp.intro.Application.start(Application.java:197) org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:483) org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648) org.eclipse.equinox.launcher.Main.basicRun(Main.java:603) org.eclipse.equinox.launcher.Main.run(Main.java:1465) Caused by: java.lang.ClassCastException: org.jfree.data.category.DefaultCategoryDataset cannot be cast to org.talend.dataprofiler.common.ui.editor.preview.ICustomerDataset org.talend.dataprofiler.core.ui.events.FrequencyDynamicChartEventReceiver.handle(FrequencyDynamicChartEventReceiver.java:57) org.talend.dataprofiler.core.ui.events.EventManager.publish(EventManager.java:123) org.talend.dataprofiler.core.service.TOPRepositoryService.publishDynamicEvent(TOPRepositoryService.java:656) org.talend.dq.analysis.ColumnAnalysisSqlExecutor$1.run(ColumnAnalysisSqlExecutor.java:1383) org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)	... 43 more {code}
Story points: 1