Bug 511943 - Opening SQL files from history causes a CoreException: Must specify a URI scheme
Summary: Opening SQL files from history causes a CoreException: Must specify a URI scheme
Status: REOPENED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 4.6   Edit
Hardware: PC Windows 10
: P3 major with 3 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-08 17:28 EST by Yoseph Phillips CLA
Modified: 2020-08-11 02:55 EDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yoseph Phillips CLA 2017-02-08 17:28:54 EST
Opening SQL files from history causes a CoreException: Must specify a URI scheme.
This happens every time and only started happening after upgrading to Neon.
Opening files for other types of files from history still seems to work fine.

eclipseBuildId      4.6.2.M20161124-1400
eclipseProduct      org.eclipse.epp.package.jee.product
javaRuntimeVersion  1.8.0_121-b13
osgiWs              win32
osgiOs              Windows10
osgiOsVersion       10.0.0
osgiArch            x86_64

pluginId            org.eclipse.core.filesystem
pluginVersion       1.6.1.v20161113-2349
code                566
severity            4
message             Must specify a URI scheme:ProjectNameRemoved/filePathRemoved/fileNameRemoved.sql
fingerprint         39667e3d1c62b91c78c3ee93712551ad

Exception:org.eclipse.core.runtime.CoreException: Must specify a URI scheme:ProjectNameRemoved/filePathRemoved/fileNameRemoved.sql
	 at org.eclipse.core.internal.filesystem.Policy.error(Policy.java:49)
	 at org.eclipse.core.internal.filesystem.Policy.error(Policy.java:44)
	 at org.eclipse.core.internal.filesystem.InternalFileSystemCore.getStore(InternalFileSystemCore.java:106)
	 at org.eclipse.core.filesystem.EFS.getStore(EFS.java:478)
	 at org.eclipse.datatools.sqltools.internal.sqlscrapbook.editor.SQLScrapbookEditor.doSetInput(SQLScrapbookEditor.java:208)
	 at org.eclipse.ui.texteditor.AbstractTextEditor$5.run(AbstractTextEditor.java:3154)
	 at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:437)
	 at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:353)
	 at org.eclipse.ui.internal.WorkbenchWindow$14.run(WorkbenchWindow.java:2184)
	 at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	 at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2180)
	 at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3172)
	 at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3197)
	 at org.eclipse.datatools.sqltools.sqleditor.SQLEditor.init(SQLEditor.java:629)
	 at org.eclipse.datatools.sqltools.internal.sqlscrapbook.editor.SQLScrapbookEditor.init(SQLScrapbookEditor.java:173)
	 at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:362)
	 at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:318)
	 at sun.reflect.NativeMethodAccessorImpl.invoke0(null:-2)
	 at sun.reflect.NativeMethodAccessorImpl.invoke(null:-1)
	 at sun.reflect.DelegatingMethodAccessorImpl.invoke(null:-1)
	 at java.lang.reflect.Method.invoke(null:-1)
	 at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
	 at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:966)
	 at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:931)
	 at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:151)
	 at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:375)
	 at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:294)
	 at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
	 at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:105)
	 at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:74)
	 at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:56)
	 at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:129)
	 at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:975)
	 at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:651)
	 at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:757)
	 at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$0(PartRenderingEngine.java:728)
	 at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:722)
	 at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	 at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:706)
	 at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$1.handleEvent(PartServiceImpl.java:104)
	 at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:40)
	 at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:233)
	 at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:145)
	 at org.eclipse.swt.widgets.Display.syncExec(Display.java:4821)
	 at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:211)
	 at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:36)
	 at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:201)
	 at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
	 at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
	 at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	 at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
	 at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
	 at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
	 at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
	 at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:94)
	 at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:60)
	 at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
	 at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:173)
	 at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:617)
	 at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:581)
	 at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:770)
	 at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:401)
	 at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1214)
	 at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3261)
	 at org.eclipse.ui.internal.WorkbenchPage.access$25(WorkbenchPage.java:3176)
	 at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:3158)
	 at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	 at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3153)
	 at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3117)
	 at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3107)
	 at org.eclipse.egit.ui.internal.EgitUiEditorUtils.openEditor(EgitUiEditorUtils.java:114)
	 at org.eclipse.egit.ui.internal.EgitUiEditorUtils.openEditor(EgitUiEditorUtils.java:100)
	 at org.eclipse.egit.ui.internal.EgitUiEditorUtils.openEditor(EgitUiEditorUtils.java:66)
	 at org.eclipse.egit.ui.internal.history.command.ShowVersionsHandler.execute(ShowVersionsHandler.java:101)
	 at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:295)
	 at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
	 at sun.reflect.NativeMethodAccessorImpl.invoke0(null:-2)
	 at sun.reflect.NativeMethodAccessorImpl.invoke(null:-1)
	 at sun.reflect.DelegatingMethodAccessorImpl.invoke(null:-1)
	 at java.lang.reflect.Method.invoke(null:-1)
	 at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
	 at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:282)
	 at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:264)
	 at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
	 at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152)
	 at org.eclipse.core.commands.Command.executeWithChecks(Command.java:494)
	 at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:488)
	 at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)
	 at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommandInContext(LegacyHandlerService.java:405)
	 at org.eclipse.egit.ui.internal.history.CommitGraphTable$8.open(CommitGraphTable.java:324)
	 at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:855)
	 at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	 at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
	 at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)
	 at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:852)
	 at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1169)
	 at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:278)
	 at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:272)
	 at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:313)
	 at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	 at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4418)
	 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
	 at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4236)
	 at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3824)
	 at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
	 at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
	 at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
	 at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
	 at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:693)
	 at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
	 at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:610)
	 at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
	 at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
	 at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
	 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
	 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
	 at sun.reflect.NativeMethodAccessorImpl.invoke0(null:-2)
	 at sun.reflect.NativeMethodAccessorImpl.invoke(null:-1)
	 at sun.reflect.DelegatingMethodAccessorImpl.invoke(null:-1)
	 at java.lang.reflect.Method.invoke(null:-1)
	 at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
	 at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
	 at org.eclipse.equinox.launcher.Main.run(Main.java:1519)

BUNDLES

name                org.eclipse.core.commands
version             3.8.0.v20160316-1921

name                org.eclipse.core.databinding.observable
version             1.6.0.v20160511-1747

name                org.eclipse.core.databinding
version             1.6.0.v20160412-0910

name                org.eclipse.core.filesystem
version             1.6.1.v20161113-2349

name                org.eclipse.core.runtime
version             3.12.0.v20160606-1342

name                org.eclipse.datatools.sqltools.sqleditor
version             1.1.0.201603142002

name                org.eclipse.datatools.sqltools.sqlscrapbook
version             1.1.0.201603142002

name                org.eclipse.e4.core.commands
version             0.11.100.v20160506-0804

name                org.eclipse.e4.core.contexts
version             1.5.0.v20160504-0909

name                org.eclipse.e4.core.di
version             1.6.1.v20160712-0927

name                org.eclipse.e4.ui.services
version             1.2.100.v20160506-0759

name                org.eclipse.e4.ui.workbench
version             1.4.0.v20160517-1624

name                org.eclipse.e4.ui.workbench.renderers.swt
version             0.14.0.v20160525-0940

name                org.eclipse.e4.ui.workbench.swt
version             0.14.1.v20160829-0832

name                org.eclipse.egit.ui
version             4.5.0.201609210915-r

name                org.eclipse.egit
version             4.5.0.201609210915-r

name                org.eclipse.emf.common
version             2.12.0.v20160420-0247

name                org.eclipse.emf
version             2.6.0.v20160526-0356

name                org.eclipse.equinox.app
version             1.3.400.v20150715-1528

name                org.eclipse.equinox.event
version             1.3.200.v20160324-1850

name                org.eclipse.equinox.launcher
version             1.3.201.v20161025-1711

name                org.eclipse.jface
version             3.12.1.v20160923-1528

name                org.eclipse.osgi
version             3.11.2.v20161107-1947

name                org.eclipse.swt
version             3.105.2.v20161122-0613

name                org.eclipse.ui
version             3.108.1.v20160929-1045

name                org.eclipse.ui.ide.application
version             1.1.101.v20160829-0827

name                org.eclipse.ui.ide
version             3.12.2.v20161115-1450
Comment 1 Vikas Chandra CLA 2017-02-09 02:55:42 EST
Moving to platform resource for comments.
Comment 2 Yurx Cherio CLA 2017-10-31 13:36:01 EDT
Exactly the same issue occurs on Ubuntu 16.04, 64bit, XFCE. This leads to conclusion it is not platform specific.
Comment 3 Sean Davis CLA 2018-07-25 11:07:31 EDT
There is a workaround for this issue.  If you set the "Text Editor" as your default in your file association preferences in Eclipse (General-Editors-File Associations)  -- Select *.sql, add Text Editor, highlight and select Default button, then you can open these files.

The issue appears to be specific to the SQL Editor and the invocation from the history window.
Comment 4 Johannes Becker CLA 2018-08-07 02:18:04 EDT
Same error here with Photon:

eclipse.buildId=4.8.0.I20180611-0500
java.version=10.0.1
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product
Comment 5 Eclipse Genie CLA 2020-08-11 02:50:56 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 6 Yoseph Phillips CLA 2020-08-11 02:55:02 EDT
Issue still exists.