Project: talenddataquality
Issue TDQ-6168: Unable to create analysis in TDQ
This is a reasonably fresh Studio installation, and I am trying to create a column analysis on a MySQL database on the local machine. The analysis never opens, I get an error in the editor window with the stack trace below. This happens both when I try to create the DB connection in the Profiling perspective and in the Integration perspective. I tried deleting and re-creating the DB connection in all sorts of ways, to no avail. Stack trace: java.lang.ClassCastException: org.talend.core.model.metadata.builder.connection.impl.ConnectionImpl cannot be cast to org.talend.core.model.metadata.builder.connection.DelimitedFileConnection org.talend.dq.nodes.DFConnectionRepNode.(DFConnectionRepNode.java:56) org.talend.dq.nodes.DFConnectionFolderRepNode.getChildren(DFConnectionFolderRepNode.java:79) org.talend.dq.helper.RepositoryNodeHelper.getModelElementFromFolder(RepositoryNodeHelper.java:1731) org.talend.dq.helper.RepositoryNodeHelper.getConnectionRepositoryNodes(RepositoryNodeHelper.java:1563) org.talend.dataprofiler.core.ui.editor.analysis.AbstractAnalysisMetadataPage.reloadDataproviderAndFillConnCombo(AbstractAnalysisMetadataPage.java:392) org.talend.dataprofiler.core.ui.editor.analysis.AbstractAnalysisMetadataPage.createConnBindWidget(AbstractAnalysisMetadataPage.java:271) org.talend.dataprofiler.core.ui.editor.analysis.ColumnMasterDetailsPage.createAnalysisColumnsSection(ColumnMasterDetailsPage.java:274) org.talend.dataprofiler.core.ui.editor.analysis.ColumnMasterDetailsPage.createFormContent(ColumnMasterDetailsPage.java:234) org.eclipse.ui.forms.editor.FormPage$1.run(FormPage.java:152) org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) org.eclipse.ui.forms.editor.FormPage.createPartControl(FormPage.java:150) org.eclipse.ui.forms.editor.FormEditor.pageChange(FormEditor.java:471) org.talend.dataprofiler.core.ui.editor.CommonFormEditor.pageChange(CommonFormEditor.java:231) org.talend.dataprofiler.core.ui.editor.analysis.AnalysisEditor.pageChange(AnalysisEditor.java:190) org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:1067) org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:603) org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:352) org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670) org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465) org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595) org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289) org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2863) org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768) org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760) org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711) org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707) org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691) org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2674) org.talend.dataprofiler.core.CorePlugin.openEditor(CorePlugin.java:312) org.talend.dataprofiler.core.ui.wizard.analysis.AbstractAnalysisWizard.openEditor(AbstractAnalysisWizard.java:92) org.talend.dataprofiler.core.ui.wizard.analysis.column.ColumnWizard.openEditor(ColumnWizard.java:126) org.talend.dataprofiler.core.ui.wizard.AbstractWizard.performFinish(AbstractWizard.java:70) org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:811) org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:430) org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624) org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3540) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161) org.eclipse.jface.window.Window.runEventLoop(Window.java:825) org.eclipse.jface.window.Window.open(Window.java:801) org.talend.dataprofiler.core.ui.action.actions.CreateNewAnalysisAction.run(CreateNewAnalysisAction.java:112) org.eclipse.jface.action.Action.runWithEvent(Action.java:498) org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501) org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3540) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161) 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:126) 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:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) 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)
Story points: 8