[
https://issues.jboss.org/browse/TEIIDDES-1413?page=com.atlassian.jira.plu...
]
Steven Hawkins updated TEIIDDES-1413:
-------------------------------------
Assignee: (was: Steven Hawkins)
Component/s: Teiid Integration
With the latest 7.7.1 teiid client drivers the plan should nearly always be available. It
may not be if there is a planning error or the statement issued was handled by the client,
such as a set statement or a transaction statement. With older drivers the plan was not
available more often - even with successful processing if the query returned multiple
batches.
It would be good to have the designer handler be defensive to account for situations where
the plan may not be available.
An Error occurred fetching the Query Plan.
------------------------------------------
Key: TEIIDDES-1413
URL:
https://issues.jboss.org/browse/TEIIDDES-1413
Project: Teiid Designer
Issue Type: Bug
Components: Teiid Integration
Affects Versions: 7.7
Environment: Teiid Designer 7.7
Teiid Server 7.5
Jboss-5.1.0.GA
JDK 1.6.0_22
Reporter: thanh nguyen
Step by step:
Step 1: Right click Procedure > Choose Modeling > Choose Preview Data
Step 2: Display error below:
org.teiid.jdbc.TeiidSQLException: ResultSet cursor is after the last row.
at org.teiid.jdbc.ResultSetImpl.getObject(ResultSetImpl.java:220)
at org.teiid.jdbc.ResultSetImpl.getString(ResultSetImpl.java:837)
at org.teiid.jdbc.ResultSetImpl.getString(ResultSetImpl.java:842)
at
org.teiid.datatools.connectivity.ui.TeiidAdHocScriptRunnable.getExecutionPlan(TeiidAdHocScriptRunnable.java:326)
at
org.teiid.datatools.connectivity.ui.TeiidAdHocScriptRunnable.handleShowExecutionPlan(TeiidAdHocScriptRunnable.java:243)
at
org.teiid.datatools.connectivity.ui.TeiidAdHocScriptRunnable.run(TeiidAdHocScriptRunnable.java:223)
at
org.eclipse.datatools.sqltools.editor.core.result.ResultSupportRunnable.run(ResultSupportRunnable.java:346)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at
org.teiid.designer.runtime.ui.preview.PreviewDataWorker.internalRun(PreviewDataWorker.java:427)
at
org.teiid.designer.runtime.ui.preview.PreviewDataWorker.run(PreviewDataWorker.java:250)
at
org.teiid.designer.runtime.ui.preview.PreviewTableDataContextAction.run(PreviewTableDataContextAction.java:98)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
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:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
--
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