Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357904 - Exception occurs when use format in EGL Editor on Linux
Summary: Exception occurs when use format in EGL Editor on Linux
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Yun Feng Ma CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-16 01:48 EDT by Huo Zhen Zhong CLA
Modified: 2017-02-23 14:15 EST (History)
1 user (show)

See Also:


Attachments
Patch (1.03 KB, patch)
2011-09-18 22:54 EDT, Yun Feng Ma CLA
lasher: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Huo Zhen Zhong CLA 2011-09-16 01:48:57 EDT
Build Identifier: 

org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.IllegalArgumentException: invalid relative pathName: jar:file:/home/hjiyong/Studio/eclipse36heliosEDT/plugins/org.eclipse.edt.ide.ui_0.7.0.v201109151508.jar!/builtInPreference/format_builtin.profile)
	at org.eclipse.swt.SWT.error(SWT.java:4083)
	at org.eclipse.swt.SWT.error(SWT.java:3998)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:137)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3515)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3164)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:173)
	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:388)
	at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
	at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:275)
	at org.eclipse.ui.internal.progress.ProgressManager$5.run(ProgressManager.java:960)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:995)
	at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:970)
	at org.eclipse.ui.internal.progress.ProgressManager.run(ProgressManager.java:1166)
	at org.eclipse.edt.ide.ui.internal.handlers.FormattingHandler.runOnSingle(FormattingHandler.java:348)
	at org.eclipse.edt.ide.ui.internal.handlers.FormattingHandler.run(FormattingHandler.java:139)
	at org.eclipse.edt.ide.ui.internal.handlers.FormattingHandler.execute(FormattingHandler.java:113)
	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
	at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
	at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
	at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
	at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:820)
	at org.eclipse.ui.menus.CommandContributionItem.access$19(CommandContributionItem.java:806)
	at org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(CommandContributionItem.java:796)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3540)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
	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:369)
	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:60)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:611)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
Caused by: java.lang.IllegalArgumentException: invalid relative pathName: jar:file:/home/hjiyong/Studio/eclipse36heliosEDT/plugins/org.eclipse.edt.ide.ui_0.7.0.v201109151508.jar!/builtInPreference/format_builtin.profile
	at org.eclipse.emf.common.util.URI.createFileURI(URI.java:856)
	at org.eclipse.edt.ide.ui.internal.formatting.ui.FormatProfileRootHelper.getEGLFormatProfileModel(FormatProfileRootHelper.java:68)
	at org.eclipse.edt.ide.ui.internal.formatting.ui.FormatProfileRootHelper.getEGLFormatProfileModel(FormatProfileRootHelper.java:58)
	at org.eclipse.edt.ide.ui.internal.formatting.ui.ProfileManager.getBuildInFormatProfileRoot(ProfileManager.java:129)
	at org.eclipse.edt.ide.ui.internal.formatting.ui.ProfileManager.getProfileByName(ProfileManager.java:278)
	at org.eclipse.edt.ide.ui.internal.formatting.ui.ProfileManager.getSelectedProfile(ProfileManager.java:248)
	at org.eclipse.edt.ide.ui.internal.handlers.FormattingHandler.doFormat(FormattingHandler.java:280)
	at org.eclipse.edt.ide.ui.internal.handlers.FormattingHandler.access$1(FormattingHandler.java:277)
	at org.eclipse.edt.ide.ui.internal.handlers.FormattingHandler$2.run(FormattingHandler.java:267)
	at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:164)
	at org.eclipse.ui.internal.UISynchronizer$3.run(UISynchronizer.java:158)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
	... 47 more


Reproducible: Always
Comment 1 Huo Zhen Zhong CLA 2011-09-16 02:02:06 EDT
This problem may related to the exception:

Open a service file in the basic source editor. Now open a RUI handler in the
VE. Right-click inside the source tab of the VE > EGL Source > Format. It
switches back the the service file and formats that one instead of the RUI
handler. Same thing if I use ctrl+shift+f.
Comment 2 Yun Feng Ma CLA 2011-09-18 22:54:46 EDT
Created attachment 203565 [details]
Patch

Here is a patch.
Comment 3 Yun Feng Ma CLA 2011-09-29 05:37:45 EDT
Fixed. Thanks.
Comment 4 Huo Zhen Zhong CLA 2011-10-19 23:25:34 EDT
verified in 0.7.0.v20111019