Uploaded image for project: 'Teiid Designer'
  1. Teiid Designer
  2. TEIIDDES-146

ClassCastException (String to EObject) when adding attributes to transformation using reconciler

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.0.0
    • 6.0.0
    • Modeling
    • None

      I followed the Procedural-Relational Mapping test script, but didn't quite get the results I expected, so I modified the transformation by removing two attributes (EmployeeFullNameID and EmployeeAddressID). After realizing that was a dumb move, I set about to add them back into the transformation.

      I started the reconciler, clicked the Add button, and added both EmployeeID and EmployeeID1 as new attributes. I then renamed them to EmployeeFullNameID and EmployeeAddressID. I clicked OK to close the Reconciler. The transformation did not have the new attributes and the model wasn't marked "dirty". I found exceptions in the Message Log like this one:

      Error 2009-04-15 08:23:57.961 Unhandled event loop exception
      java.lang.ClassCastException: java.lang.String cannot be cast to org.eclipse.emf.ecore.EObject
      at com.metamatrix.modeler.transformation.ui.reconciler.Binding.applyAttrNameModification(Binding.java:314)
      at com.metamatrix.modeler.transformation.ui.reconciler.ReconcilerObject.applyTargetAttributeRenames(ReconcilerObject.java:683)
      at com.metamatrix.modeler.transformation.ui.reconciler.QueryReconcilerHelper.applyPreModifications(QueryReconcilerHelper.java:189)
      at com.metamatrix.modeler.transformation.ui.reconciler.ReconcilerPanel.applyPreModifications(ReconcilerPanel.java:555)
      at com.metamatrix.modeler.transformation.ui.reconciler.ReconcilerDialog.applyPreModifications(ReconcilerDialog.java:110)
      at com.metamatrix.modeler.transformation.ui.actions.ReconcileTransformationAction$1.run(ReconcileTransformationAction.java:253)
      at com.metamatrix.ui.internal.viewsupport.UiBusyIndicator.showWhile(UiBusyIndicator.java:80)
      at com.metamatrix.modeler.transformation.ui.actions.ReconcileTransformationAction.doRun(ReconcileTransformationAction.java:247)
      at com.metamatrix.ui.actions.AbstractAction$1.run(AbstractAction.java:554)
      at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      at com.metamatrix.ui.actions.AbstractAction.run(AbstractAction.java:557)
      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)

      The whole log is attached.

              blafond Barry LaFond
              metapaul Paul Nittel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: