Project: talenddataquality
Issue TDQ-11082: re-created semantic analysis can not open if  create one and add all indicators for all columns first.
1. create a mysql connection about tbi database. 2. right click on table "employee"-->Semantic Discovery 3. on the first page for employee_id column set "Address" as category, goes to second page, Person concept selected as default. and for "employee_id" semantics set "Address", go to third page, click "Finish" analysis create successfully. 4. in the created analysis make sure employee_id column set "Datamining Type" as "Interval" , add all available indicators for the columns. run the analysis. 5. re-do step 2 and step3. analysis created but can not open correctly. {code} java.lang.NullPointerException org.talend.dataprofiler.core.ui.editor.analysis.AnalysisEditor.dispose(AnalysisEditor.java:567) org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:147) org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:99) org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:327) sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:483) org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55) org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:888) org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:869) org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:120) org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:337) org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:258) org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162) org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:104) org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:73) org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:55) org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:127) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:983) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:662) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:766) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:737) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:731) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:715) org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1250) org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:68) org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:40) org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:187) org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:156) org.eclipse.swt.widgets.Display.syncExec(Display.java:4734) org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:218) org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:36) org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197) org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197) org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1) org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135) org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78) org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39) org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:81) org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:59) org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374) org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171) org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:488) org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:454) org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:694) org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:387) org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1134) org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3210) org.eclipse.ui.internal.WorkbenchPage.access$23(WorkbenchPage.java:3125) org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:3107) org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3102) org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3066) org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3047) org.talend.dataprofiler.core.CorePlugin.openEditor(CorePlugin.java:245) org.talend.dataquality.ontology.ui.wizard.SemanticDiscoveryWizard.openEditor(SemanticDiscoveryWizard.java:243) org.talend.dataquality.ontology.ui.wizard.SemanticDiscoveryWizard.performFinish(SemanticDiscoveryWizard.java:218) org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:853) org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:438) org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:619) org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248) 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.jface.window.Window.runEventLoop(Window.java:832) org.eclipse.jface.window.Window.open(Window.java:808) org.talend.dataquality.ontology.service.SemanticStudioServiceImpl.openSemanticDiscoveryWizard(SemanticStudioServiceImpl.java:43) org.talend.dataprofiler.core.ui.action.actions.predefined.SemanticDiscoveryAction.run(SemanticDiscoveryAction.java:54) org.eclipse.jface.action.Action.runWithEvent(Action.java:519) org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595) org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511) org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420) 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:183) 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) java.lang.NullPointerException org.talend.dataprofiler.core.model.impl.ModelElementIndicatorImpl.fillCategoryIndicators(ModelElementIndicatorImpl.java:381) org.talend.dataprofiler.core.model.impl.ModelElementIndicatorImpl.fillCategoryIndicators(ModelElementIndicatorImpl.java:362) org.talend.dataprofiler.core.model.impl.ModelElementIndicatorImpl.setIndicators(ModelElementIndicatorImpl.java:244) org.talend.dataprofiler.core.ui.editor.analysis.ColumnAnalysisDetailsPage.recomputeIndicators(ColumnAnalysisDetailsPage.java:208) org.talend.dataprofiler.core.ui.editor.analysis.ColumnAnalysisDetailsPage.initialize(ColumnAnalysisDetailsPage.java:171) org.eclipse.ui.forms.editor.FormPage.(FormPage.java:67) org.talend.dataprofiler.core.ui.editor.AbstractFormPage.(AbstractFormPage.java:52) org.talend.dataprofiler.core.ui.editor.AbstractMetadataFormPage.(AbstractMetadataFormPage.java:145) org.talend.dataprofiler.core.ui.editor.analysis.AbstractAnalysisMetadataPage.(AbstractAnalysisMetadataPage.java:141) org.talend.dataprofiler.core.ui.editor.analysis.DynamicAnalysisMasterPage.(DynamicAnalysisMasterPage.java:82) org.talend.dataprofiler.core.ui.editor.analysis.ColumnAnalysisDetailsPage.(ColumnAnalysisDetailsPage.java:164) org.talend.dataprofiler.core.ui.editor.analysis.AnalysisEditor.addPages(AnalysisEditor.java:134) org.talend.dataprofiler.core.ui.editor.CommonFormEditor.createPages(CommonFormEditor.java:125) org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:362) org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:141) org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:99) org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:327) sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:483) org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55) org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:888) org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:869) org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:120) org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:337) org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:258) org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162) org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:104) org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:73) org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:55) org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:127) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:983) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:662) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:766) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:737) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:731) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:715) org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1250) org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:68) org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:40) org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:187) org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:156) org.eclipse.swt.widgets.Display.syncExec(Display.java:4734) org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:218) org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:36) org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197) org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197) org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1) org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135) org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78) org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39) org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:81) org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:59) org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374) org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171) org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:488) org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:454) org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:694) org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:387) org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1134) org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3210) org.eclipse.ui.internal.WorkbenchPage.access$23(WorkbenchPage.java:3125) org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:3107) org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3102) org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3066) org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3047) org.talend.dataprofiler.core.CorePlugin.openEditor(CorePlugin.java:245) org.talend.dataquality.ontology.ui.wizard.SemanticDiscoveryWizard.openEditor(SemanticDiscoveryWizard.java:243) org.talend.dataquality.ontology.ui.wizard.SemanticDiscoveryWizard.performFinish(SemanticDiscoveryWizard.java:218) org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:853) org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:438) org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:619) org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248) 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.jface.window.Window.runEventLoop(Window.java:832) org.eclipse.jface.window.Window.open(Window.java:808) org.talend.dataquality.ontology.service.SemanticStudioServiceImpl.openSemanticDiscoveryWizard(SemanticStudioServiceImpl.java:43) org.talend.dataprofiler.core.ui.action.actions.predefined.SemanticDiscoveryAction.run(SemanticDiscoveryAction.java:54) org.eclipse.jface.action.Action.runWithEvent(Action.java:519) org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595) org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511) org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420) 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:183) 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) {code}
Story points: 3