Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 407884 - Selecting Local connection for Build using RSE on Service Configurations on Windows client causes exception
Summary: Selecting Local connection for Build using RSE on Service Configurations on W...
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: RDT (show other bugs)
Version: 6.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 6.0.6   Edit
Assignee: Chris Recoskie CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-13 10:12 EDT by Violaine Batthish CLA
Modified: 2014-05-29 16:14 EDT (History)
3 users (show)

See Also:


Attachments
patch to ensure setting local build location works on Windows (2.79 KB, text/plain)
2013-05-13 10:12 EDT, Violaine Batthish CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Violaine Batthish CLA 2013-05-13 10:12:18 EDT
Created attachment 230860 [details]
patch to ensure setting local build location works on Windows

To reproduce, on a Windows client:
1. Open the Service Configurations properties page
2. Select the Build from the list of services
3. Leave RSE for the service provider, and select the Local connection.
The following exception occurs:
java.lang.NullPointerException
	at org.eclipse.core.internal.filesystem.NullFileSystem.getStore(NullFileSystem.java:52)
	at org.eclipse.rse.internal.efs.RSEFileSystem.getStore(RSEFileSystem.java:89)
	at org.eclipse.ptp.remote.rse.core.RSEFileManager.getResource(RSEFileManager.java:63)
	at org.eclipse.ptp.rdt.ui.wizards.RemoteBuildServiceFileLocationWidget.getDefaultPath(RemoteBuildServiceFileLocationWidget.java:148)
	at org.eclipse.ptp.rdt.ui.wizards.RemoteBuildServiceFileLocationWidget.update(RemoteBuildServiceFileLocationWidget.java:203)
	at org.eclipse.ptp.rdt.ui.wizards.RemoteServicesServiceProviderContributor$4.widgetSelected(RemoteServicesServiceProviderContributor.java:161)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
	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:4169)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
	at org.eclipse.jface.window.Window.open(Window.java:801)
	at org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:158)
	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:4169)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
	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:353)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
	at java.lang.reflect.Method.invoke(Method.java:613)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

I have attached a patch
Comment 1 Chris Recoskie CLA 2013-05-21 11:42:30 EDT
I've applied the patch to ptp_6_0, but things have changed it seems on master, so it won't apply there, and it seems no trivial to get it to work.  Can you work up a revised patch for master?
Comment 2 Greg Watson CLA 2014-05-29 16:14:00 EDT
Fixed in 6.0.6