[
https://jira.jboss.org/jira/browse/TEIIDDES-45?page=com.atlassian.jira.pl...
]
Barry LaFond closed TEIIDDES-45.
--------------------------------
Adding criteria to transformation does not cause model to be marked
"dirty"
---------------------------------------------------------------------------
Key: TEIIDDES-45
URL:
https://jira.jboss.org/jira/browse/TEIIDDES-45
Project: Teiid Designer
Issue Type: Bug
Components: Transformations
Affects Versions: 6.0.0
Environment: f10
Reporter: Paul Nittel
Assignee: Barry LaFond
Priority: Critical
Fix For: 6.0.0
I opened the transformation editor on an Authors mapping class and added criteria to the
SELECT statement. The model was not marked dirty and the SAVE action was not enabled.
Closing the model did not call for saving changes. Re-opening the transformation confirmed
the old SQL was back and the criteria gone. This exception was in the Eclipse IDE's
console:
!ENTRY org.eclipse.ui 2 0 2008-12-12 11:05:04.779
!MESSAGE Save Failed
!STACK 0
java.lang.NullPointerException
at
com.metamatrix.query.ui.sqleditor.SqlEditorPanel.fireEditorEvent(SqlEditorPanel.java:602)
at
com.metamatrix.query.ui.sqleditor.SqlEditorPanel$DocumentChangeListener.documentChanged(SqlEditorPanel.java:2444)
at
org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged2(AbstractDocument.java:739)
at
org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged(AbstractDocument.java:712)
at
org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged(AbstractDocument.java:697)
at
org.eclipse.jface.text.AbstractDocument.fireDocumentChanged(AbstractDocument.java:762)
at org.eclipse.jface.text.AbstractDocument.set(AbstractDocument.java:1203)
at org.eclipse.jface.text.AbstractDocument.set(AbstractDocument.java:1183)
at
com.metamatrix.query.ui.sqleditor.SqlEditorPanel.refreshWithDisplayComponent(SqlEditorPanel.java:561)
at com.metamatrix.query.ui.sqleditor.SqlEditorPanel.setText(SqlEditorPanel.java:519)
at
com.metamatrix.modeler.transformation.ui.editors.TransformationObjectEditorPage.doSave(TransformationObjectEditorPage.java:2213)
at
com.metamatrix.modeler.internal.ui.editors.ModelObjectEditorPanel.saveEditorState(ModelObjectEditorPanel.java:319)
at
com.metamatrix.modeler.internal.ui.editors.MultiPageModelEditor.preSave(MultiPageModelEditor.java:991)
at com.metamatrix.modeler.internal.ui.editors.ModelEditor.doSave(ModelEditor.java:416)
at org.eclipse.ui.internal.SaveableHelper$1.run(SaveableHelper.java:143)
at org.eclipse.ui.internal.SaveableHelper$4.run(SaveableHelper.java:266)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:458)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:366)
at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:758)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:755)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2487)
at
org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:274)
at
org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:253)
at org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelper.java:148)
at org.eclipse.ui.internal.EditorManager.savePart(EditorManager.java:1350)
at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage.java:3291)
at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:3304)
at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:74)
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