[
https://jira.jboss.org/jira/browse/TEIID-344?page=com.atlassian.jira.plug...
]
Steve Jacobs moved FEDDES-35 to TEIID-344:
------------------------------------------
Project: Teiid (was: Federate Designer)
Key: TEIID-344 (was: FEDDES-35)
Component/s: (was: Transformations)
Fix Version/s: (was: 6.0)
Affects Version/s: (was: 6.0)
Lower-level mapping class transformations (like Authors) do not
validate properly
---------------------------------------------------------------------------------
Key: TEIID-344
URL:
https://jira.jboss.org/jira/browse/TEIID-344
Project: Teiid
Issue Type: Bug
Environment: fedora 10
Reporter: Paul Nittel
Assignee: Barry LaFond
Priority: Blocker
You can quickly get a sense of this by importing the Books example project; neither of
the authors mapping class transformations validate. If you create your own model you
should find the text of the transformation does not display without additional work on
your part. Even if you can get it to display it doesn't validate.
I thought I'd already entered this, but cannot find it, so...
Here's an exception from the Eclipse console:
!ENTRY com.metamatrix.query.ui 4 0 2008-12-17 12:07:12.546
!MESSAGE
java.lang.IllegalArgumentException:com.metamatrix.query.ui.sqleditor.SqlEditorPanel.setTextInTransaction()
!STACK 0
java.lang.IllegalArgumentException: Expected argument to be an instance of
com.metamatrix.modeler.core.metadata.runtime.MetadataRecord; was instance of
com.metamatrix.query.sql.symbol.ElementSymbol
at com.metamatrix.core.util.ArgCheck.isInstanceOf(ArgCheck.java:355)
at com.metamatrix.core.util.ArgCheck.isInstanceOf(ArgCheck.java:339)
at
com.metamatrix.modeler.transformation.metadata.TransformationMetadata.getFullName(TransformationMetadata.java:200)
at
com.metamatrix.query.metadata.TempMetadataAdapter.getFullName(TempMetadataAdapter.java:149)
at
com.metamatrix.query.sql.util.ElementSymbolOptimizer.mapShortNamesToGroups(ElementSymbolOptimizer.java:241)
at
com.metamatrix.query.sql.util.ElementSymbolOptimizer.optimizeCommand(ElementSymbolOptimizer.java:206)
at
com.metamatrix.query.sql.util.ElementSymbolOptimizer.optimizeElements(ElementSymbolOptimizer.java:177)
at
com.metamatrix.query.sql.util.ElementSymbolOptimizer.optimizeElements(ElementSymbolOptimizer.java:130)
at
com.metamatrix.query.internal.ui.sqleditor.component.QueryDisplayComponent.optimize(QueryDisplayComponent.java:1159)
at
com.metamatrix.query.internal.ui.sqleditor.component.QueryDisplayComponent.setText(QueryDisplayComponent.java:196)
at
com.metamatrix.query.ui.sqleditor.SqlEditorPanel.setTextInTransaction(SqlEditorPanel.java:428)
at com.metamatrix.query.ui.sqleditor.SqlEditorPanel.setText(SqlEditorPanel.java:485)
at
com.metamatrix.modeler.transformation.ui.editors.TransformationObjectEditorPage.setEditorContent(TransformationObjectEditorPage.java:1148)
at
com.metamatrix.modeler.transformation.ui.editors.TransformationObjectEditorPage.handleTransformationStatusChangeEvent(TransformationObjectEditorPage.java:1591)
at
com.metamatrix.modeler.transformation.ui.editors.TransformationObjectEditorPage.processEvent(TransformationObjectEditorPage.java:2672)
at
com.metamatrix.modeler.internal.transformation.util.SqlMappingRootCache.notifyEventListeners(SqlMappingRootCache.java:1164)
at
com.metamatrix.modeler.internal.transformation.util.SqlMappingRootCache.invalidateStatus(SqlMappingRootCache.java:531)
at
com.metamatrix.modeler.internal.transformation.util.SqlMappingRootCache.invalidateSelectStatus(SqlMappingRootCache.java:102)
at
com.metamatrix.modeler.internal.transformation.util.SqlMappingRootCache.invalidateSelectStatus(SqlMappingRootCache.java:94)
at
com.metamatrix.modeler.internal.transformation.util.TransformationHelper.setSqlString(TransformationHelper.java:548)
at
com.metamatrix.modeler.internal.transformation.util.TransformationHelper.setSelectSqlString(TransformationHelper.java:485)
at
com.metamatrix.modeler.internal.transformation.util.TransformationSqlHelper.addSqlAliasGroupsToSelectStatement(TransformationSqlHelper.java:479)
at
com.metamatrix.modeler.internal.transformation.util.TransformationSqlHelper.updateSelectSqlOnSqlAliasGroupsAdded(TransformationSqlHelper.java:283)
at
com.metamatrix.modeler.internal.transformation.util.TransformationSqlHelper.updateAllSqlOnSqlAliasGroupsAdded(TransformationSqlHelper.java:187)
at
com.metamatrix.modeler.transformation.ui.util.TransformationNotificationListener.handleSqlAliasAddNotifications(TransformationNotificationListener.java:997)
at
com.metamatrix.modeler.transformation.ui.util.TransformationNotificationListener.handleNotifications(TransformationNotificationListener.java:227)
at
com.metamatrix.modeler.transformation.ui.util.TransformationNotificationListener.notifyChanged(TransformationNotificationListener.java:174)
at
com.metamatrix.modeler.internal.ui.viewsupport.ModelUtilities$ContainerNotificationManager.fireNotification(ModelUtilities.java:1799)
at
com.metamatrix.modeler.internal.ui.viewsupport.ModelUtilities$ContainerNotificationManager.notifyChanged(ModelUtilities.java:1743)
at
org.eclipse.emf.edit.provider.ChangeNotifier.fireNotifyChanged(ChangeNotifier.java:51)
at
com.metamatrix.modeler.internal.core.transaction.UnitOfWorkImpl.commit(UnitOfWorkImpl.java:260)
at com.metamatrix.modeler.core.ModelerCore.commitTxn(ModelerCore.java:1603)
at
com.metamatrix.modeler.transformation.ui.actions.AddTransformationSourceAction.doRun(AddTransformationSourceAction.java:162)
at com.metamatrix.ui.actions.AbstractAction$1.run(AbstractAction.java:563)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at com.metamatrix.ui.actions.AbstractAction.run(AbstractAction.java:566)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
at
org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1158)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3401)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3033)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira