Project: talenddataquality
Issue TDQ-6455: mssql database compare several times will check failed and cannot do compare anymore
create a mssql database connection, do several times database compare will pop up a dialog says: check connection failure ... and throw this error {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(Unknown Source) org.talend.cwm.compare.ui.actions.PopComparisonUIAction.run(Unknown Source) org.talend.cwm.compare.ui.actions.SubelementCompareAction.openComparisonEditor(Unknown Source) org.talend.cwm.compare.ui.actions.SubelementCompareAction.run(Unknown Source) org.talend.cwm.compare.ui.views.CompareModelContentMergeViewer.performCompareAction(Unknown Source) org.talend.cwm.compare.ui.views.CompareModelContentMergeViewer.access$1(Unknown Source) org.talend.cwm.compare.ui.views.CompareModelContentMergeViewer$CompareMouseListener.mouseDoubleClick(Unknown Source) org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:189) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657) 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.dataprofiler.rcp.intro.Application.start(Unknown Source) 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(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) 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) org.eclipse.equinox.launcher.Main.main(Main.java:1383) Caused by: org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.emf.ecore.xmi.IllegalValueException: Value 'orgomg.cwm.resource.relational.impl.CatalogImpl@4d1d5468 (name: rootdb, visibility: vk_public) (defaultCharacterSetName: null, defaultCollationName: null)' is not legal. (platform:/resource/TOP_DEFAULT_PRJ/metadata/connections/.refreshccccccccccccccccccccccccccccccccccc.comp, -1, -1) org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:315) org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:274) org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:397) org.talend.dq.writer.EMFSharedResources.getResource(Unknown Source) org.talend.cwm.compare.factory.comparisonlevel.TableViewComparisonLevel.createTempConnectionFile(Unknown Source) org.talend.cwm.compare.factory.comparisonlevel.AbstractComparisonLevel.popComparisonUI(Unknown Source) org.talend.cwm.compare.ui.actions.PopComparisonUIAction$1.run(Unknown Source) org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)	... 35 more Caused by: org.eclipse.emf.ecore.xmi.IllegalValueException: Value 'orgomg.cwm.resource.relational.impl.CatalogImpl@4d1d5468 (name: rootdb, visibility: vk_public) (defaultCharacterSetName: null, defaultCollationName: null)' is not legal. (platform:/resource/TOP_DEFAULT_PRJ/metadata/connections/.refreshccccccccccccccccccccccccccccccccccc.comp, -1, -1) org.eclipse.emf.ecore.xmi.impl.XMLHandler.setFeatureValue(XMLHandler.java:2663) org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleForwardReferences(XMLHandler.java:1149) org.eclipse.emf.ecore.xmi.impl.XMLHandler.endDocument(XMLHandler.java:1228) com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endDocument(Unknown Source) com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source) org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:181) org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:180) org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1494) org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1282) org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:255) org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:270)	... 41 more Caused by: java.lang.IndexOutOfBoundsException: targetIndex=1, size=1 org.eclipse.emf.common.util.BasicEList.move(BasicEList.java:664) org.eclipse.emf.common.notify.impl.NotifyingListImpl.doMove(NotifyingListImpl.java:1335) org.eclipse.emf.common.notify.impl.NotifyingListImpl.move(NotifyingListImpl.java:1320) org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.setValue(XMLHelperImpl.java:1195) org.eclipse.emf.ecore.xmi.impl.XMLHandler.setFeatureValue(XMLHandler.java:2658)	... 57 more {code}
Story points: 8