Project: talenddataquality
Issue TDQ-9272: "Phone Number Statistics" indicator can not get result show.
1. create a column analysis. add two columns (one int, one varchar) 2. set java engine, add "Phone Number Statistics" 3. run the analysis. Expected Result: analysis run success. and show result pic correctly. Actual Result: on top can show result for varchar type but can not for int type on tdq can not show any result. {code} java.lang.reflect.InvocationTargetException org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:477) org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372) org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507) org.talend.dataprofiler.core.ui.progress.ProgressUI.popProgressDialog(ProgressUI.java:54) org.talend.dataprofiler.core.ui.utils.pagination.PaginationInfo.renderContents(PaginationInfo.java:67) org.talend.dataprofiler.core.ui.utils.pagination.UIPagination.refresh(UIPagination.java:121) org.talend.dataprofiler.core.ui.utils.pagination.UIPagination.init(UIPagination.java:103) org.talend.dataprofiler.core.ui.editor.analysis.ColumnMasterDetailsPage.createPreviewCharts(ColumnMasterDetailsPage.java:423) org.talend.dataprofiler.core.ui.editor.analysis.ColumnMasterDetailsPage.refresh(ColumnMasterDetailsPage.java:448) org.talend.dataprofiler.core.ui.editor.analysis.ColumnAnalysisResultPage.refresh(ColumnAnalysisResultPage.java:180) org.talend.dataprofiler.core.ui.editor.analysis.AbstractAnalysisResultPage.fireRuningItemChanged(AbstractAnalysisResultPage.java:204) org.talend.dataprofiler.core.ui.action.actions.RunAnalysisAction$1$2.run(RunAnalysisAction.java:252) org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:164) org.eclipse.ui.internal.UISynchronizer$3.run(UISynchronizer.java:158) org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134) org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660) org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640) org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604) org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438) org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671) org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664) org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) org.talend.rcp.intro.Application.start(Application.java:155) org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:606) org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619) org.eclipse.equinox.launcher.Main.basicRun(Main.java:574) org.eclipse.equinox.launcher.Main.run(Main.java:1407) Caused by: java.lang.ClassCastException: org.jfree.chart.plot.PiePlot cannot be cast to org.jfree.chart.plot.CategoryPlot org.jfree.chart.JFreeChart.getCategoryPlot(JFreeChart.java:830) org.talend.dataprofiler.core.ui.utils.AnalysisUtils.createDynamicModel(AnalysisUtils.java:267) org.talend.dataprofiler.core.ui.editor.analysis.MasterPaginationInfo.createChart(MasterPaginationInfo.java:159) org.talend.dataprofiler.core.ui.editor.analysis.MasterPaginationInfo.render(MasterPaginationInfo.java:113) org.talend.dataprofiler.core.ui.utils.pagination.PaginationInfo$1.run(PaginationInfo.java:59) org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)	... 37 more {code}
Story points: 3