Don't know whether I should address this question to the SQL Explorer project or to JTDS, but I'll start here. When I have two SQL Server 6.5 connections open, and try to pull a query from history into the editor and run it against both by flip-flopping the connections in "Choose Connection", I get the following error:
An error has occurred. See error log for more details.
org.eclipse.jdt.internal.debug.ui.snippeteditor.JavaSnippetEditor cannot be cast to net.sourceforge.sqlexplorer.plugin.editors.SQLEditor
I'm on Eclipse (Europa) Version: 3.3.0 Build: I20070621-1340, SQL Explorer 3.0.0.200609 and version 1.2.2 of the JTDS JDBC drivers for SQL Server 6.5.
The full log entry is:
Problems occurred when invoking code from plug-in: "org.eclipse.jface".
java.lang.ClassCastException: org.eclipse.jdt.internal.debug.ui.snippeteditor.JavaSnippetEditor cannot be cast to net.sourceforge.sqlexplorer.plugin.editors.SQLEditor
at net.sourceforge.sqlexplorer.history.actions.AppendToEditorAction.isEnabled(AppendToEditorAction.java:42)
at net.sourceforge.sqlexplorer.history.actions.SQLHistoryActionGroup.refresh(SQLHistoryActionGroup.java:128)
at net.sourceforge.sqlexplorer.plugin.views.SQLHistoryView$6.selectionChanged(SQLHistoryView.java:282)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:193)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2047)
at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1138)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1168)
at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:227)
at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:221)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:388)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
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:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
eclipse.buildId=I20070625-1500
I'm an Eclipse/Java "newbie" and know absolutely zip about JFace (so be gentle with me :-) ). For the most part, my SQL Explorer runs flawlessly. Anyone able to offer any help or guidance on this ??
Thx.
Cliff.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Don't know whether I should address this question to the SQL Explorer project or to JTDS, but I'll start here. When I have two SQL Server 6.5 connections open, and try to pull a query from history into the editor and run it against both by flip-flopping the connections in "Choose Connection", I get the following error:
An error has occurred. See error log for more details.
org.eclipse.jdt.internal.debug.ui.snippeteditor.JavaSnippetEditor cannot be cast to net.sourceforge.sqlexplorer.plugin.editors.SQLEditor
I'm on Eclipse (Europa) Version: 3.3.0 Build: I20070621-1340, SQL Explorer 3.0.0.200609 and version 1.2.2 of the JTDS JDBC drivers for SQL Server 6.5.
The full log entry is:
Problems occurred when invoking code from plug-in: "org.eclipse.jface".
java.lang.ClassCastException: org.eclipse.jdt.internal.debug.ui.snippeteditor.JavaSnippetEditor cannot be cast to net.sourceforge.sqlexplorer.plugin.editors.SQLEditor
at net.sourceforge.sqlexplorer.history.actions.AppendToEditorAction.isEnabled(AppendToEditorAction.java:42)
at net.sourceforge.sqlexplorer.history.actions.SQLHistoryActionGroup.refresh(SQLHistoryActionGroup.java:128)
at net.sourceforge.sqlexplorer.plugin.views.SQLHistoryView$6.selectionChanged(SQLHistoryView.java:282)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:193)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2047)
at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1138)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1168)
at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:227)
at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:221)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:388)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
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:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
eclipse.buildId=I20070625-1500
I'm an Eclipse/Java "newbie" and know absolutely zip about JFace (so be gentle with me :-) ). For the most part, my SQL Explorer runs flawlessly. Anyone able to offer any help or guidance on this ??
Thx.
Cliff.
Try SQLExplorer 3.5.0 - it's pre-release but still pretty stable, and has solved some similar bugs.