Barry LaFond created TEIIDDES-1231:
--------------------------------------
Summary: IllegalArgumentException on re-import of JDBC tables
Key: TEIIDDES-1231
URL:
https://issues.jboss.org/browse/TEIIDDES-1231
Project: Teiid Designer
Issue Type: Bug
Components: Extension Framework, Import/Export
Affects Versions: 7.6, 7.7
Reporter: Barry LaFond
Assignee: Dan Florian
Priority: Critical
Fix For: 7.7
Received IllegalArgumentException while re-importing JDBC Source tables.
The Compare part of the importer relies on both the existing Model and the Temporary model
which is NOT in the basic workspace model container, so in this case the
EmfModelObjectExtensionAssistant needs to be aware that ModelResource may be NULL at this
point and is OK?
java.lang.IllegalArgumentException: modelResource is null
at com.metamatrix.core.util.CoreArgCheck.isNotNull(CoreArgCheck.java:139)
at
org.teiid.designer.core.extension.EmfModelObjectExtensionAssistant.getModelResource(EmfModelObjectExtensionAssistant.java:62)
at
org.teiid.designer.core.extension.EmfModelObjectExtensionAssistant.getSupportedNamespaces(EmfModelObjectExtensionAssistant.java:233)
at
org.teiid.designer.extension.ModelExtensionAssistantAggregator.getSupportedNamespacePrefixes(ModelExtensionAssistantAggregator.java:102)
at
org.teiid.designer.extension.ModelExtensionAssistantAggregator.getPropertyDefinitions(ModelExtensionAssistantAggregator.java:60)
at
org.teiid.designer.ui.properties.extension.ModelExtensionPropertySource.getPropertyDescriptors(ModelExtensionPropertySource.java:65)
at
com.metamatrix.modeler.internal.ui.properties.ModelObjectPropertySource.getAllDescriptors(ModelObjectPropertySource.java:211)
at
com.metamatrix.modeler.internal.ui.properties.ModelObjectPropertySource.getPropertyDescriptors(ModelObjectPropertySource.java:309)
at
com.metamatrix.modeler.compare.ui.tree.DifferenceDescriptorPanel$TableViewerLabelProvider.getColumnText(DifferenceDescriptorPanel.java:348)
at
org.eclipse.jface.viewers.TableColumnViewerLabelProvider.update(TableColumnViewerLabelProvider.java:70)
at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:152)
at
org.eclipse.jface.viewers.AbstractTableViewer.doUpdateItem(AbstractTableViewer.java:399)
at
org.eclipse.jface.viewers.CheckboxTableViewer.doUpdateItem(CheckboxTableViewer.java:168)
at
org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:485)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:2167)
at
org.eclipse.jface.viewers.AbstractTableViewer.createItem(AbstractTableViewer.java:277)
at
org.eclipse.jface.viewers.AbstractTableViewer.internalRefreshAll(AbstractTableViewer.java:757)
at
org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:649)
at
org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:636)
at org.eclipse.jface.viewers.StructuredViewer$7.run(StructuredViewer.java:1508)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1443)
at
org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1404)
at
org.eclipse.jface.viewers.CheckboxTableViewer.preservingSelection(CheckboxTableViewer.java:348)
at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1506)
at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java:537)
at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1465)
at
com.metamatrix.modeler.compare.ui.tree.DifferenceDescriptorPanel.updateTableRows(DifferenceDescriptorPanel.java:261)
at
com.metamatrix.modeler.compare.ui.tree.DifferenceDescriptorPanel.setDescriptor(DifferenceDescriptorPanel.java:238)
at
com.metamatrix.modeler.compare.ui.tree.DifferenceReportsPanel.updateDescriptorPanel(DifferenceReportsPanel.java:683)
at
com.metamatrix.modeler.compare.ui.tree.DifferenceReportsPanel$1.selectionChanged(DifferenceReportsPanel.java:406)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:164)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:162)
at
org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2188)
at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1725)
at org.eclipse.jface.viewers.TreeViewer.setSelection(TreeViewer.java:1139)
at
com.metamatrix.modeler.compare.ui.tree.CompareTreePanel.doTreeSelection(CompareTreePanel.java:678)
at
com.metamatrix.modeler.compare.ui.tree.CompareTreePanel$6.run(CompareTreePanel.java:650)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira