Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 316194

Summary: [launch] Eclipse Import project does not recognize the launch scripts
Product: [Eclipse Project] Platform Reporter: SureshKrishna <sharp.krishna>
Component: DebugAssignee: Platform-Debug-Inbox <platform-debug-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: pawel.1.piech, sharp.krishna
Version: 3.2.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Exceptions in a readable format. none

Description SureshKrishna CLA 2010-06-08 15:27:14 EDT
Build Identifier: R-3.2.2-200702121330

Following is the stack trace i get when i import the project. Not sure what the problem is. 
# I tried to make all the directories and individual files as WRITEable. 
# The launch configuration do exist. 
# I copied the complete path from this exception and also tried it on the windows explorer to double check. 

This happens on a client place and your help is highly appreciated. I personally tried all the options that i know of, but no luck.

org.eclipse.debug.core.DebugException: Launch configuration Batch SubmitJob (ANIMATE) at c:\spl\V230_CCB\SPLSDKCommon\eclipseLaunchScripts\Batch SubmitJob (ANIMATE).launch does not exist.
at org.eclipse.debug.internal.core.LaunchManager.createDebugExc eption(LaunchManager.java:778)
at org.eclipse.debug.internal.core.LaunchManager.getInfo(Launch Manager.java:1175)
at org.eclipse.debug.internal.core.LaunchConfiguration.getInfo( LaunchConfiguration.java:356)
at org.eclipse.debug.internal.core.LaunchConfiguration.getType( LaunchConfiguration.java:487)
at org.eclipse.debug.internal.core.LaunchManager.isValid(Launch Manager.java:1696)
at org.eclipse.debug.internal.core.LaunchManager.launchConfigur ationAdded(LaunchManager.java:1719)
at org.eclipse.debug.internal.core.LaunchManager.projectOpened( LaunchManager.java:1819)
at org.eclipse.debug.internal.core.LaunchManager$LaunchManagerV isitor.visit(LaunchManager.java:344)
at org.eclipse.core.internal.events.ResourceDelta.accept(Resour ceDelta.java:67)
at org.eclipse.core.internal.events.ResourceDelta.accept(Resour ceDelta.java:76)
at org.eclipse.core.internal.events.ResourceDelta.accept(Resour ceDelta.java:48)
at org.eclipse.debug.internal.core.LaunchManager.resourceChange d(LaunchManager.java:1923)
at org.eclipse.core.internal.events.NotificationManager$2.run(N otificationManager.java:280)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.NotificationManager.notify( NotificationManager.java:274)
at org.eclipse.core.internal.events.NotificationManager.broadca stChanges(NotificationManager.java:148)
at org.eclipse.core.internal.resources.Workspace.broadcastPostC hange(Workspace.java:256)
at org.eclipse.core.internal.resources.Workspace.endOperation(W orkspace.java:958)
at org.eclipse.core.internal.resources.Resource.refreshLocal(Re source.java:1413)
at org.eclipse.core.internal.resources.Resource.createLink(Reso urce.java:610)
at org.eclipse.core.internal.resources.Project.reconcileLinks(P roject.java:935)
at org.eclipse.core.internal.resources.Project.open(Project.jav a:849)
at org.eclipse.ui.internal.wizards.datatransfer.WizardProjectsI mportPage.createExistingProject(WizardProjectsImportPage.jav a:1125)
at org.eclipse.ui.internal.wizards.datatransfer.WizardProjectsI mportPage.access$15(WizardProjectsImportPage.java:1067)
at org.eclipse.ui.internal.wizards.datatransfer.WizardProjectsI mportPage$16.execute(WizardProjectsImportPage.java:1026)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(Worksp aceModifyOperation.java:101)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1737)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(Workspac eModifyOperation.java:113)
at org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:113)


In the same environment, i am also not able to save a launch configuration. I can say "Apply" but the "Run" does not do anything. It throws an exception.

java.lang.NullPointerException
at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCo py.writeNewFile(LaunchConfigurationWorkingCopy.java:256)
at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCo py.doSave0(LaunchConfigurationWorkingCopy.java:196)
at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCo py.access$0(LaunchConfigurationWorkingCopy.java:182)
at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCo py$1.run(LaunchConfigurationWorkingCopy.java:165)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1737)
at org.eclipse.debug.internal.core.LaunchConfigurationWorkingCo py.doSave(LaunchConfigurationWorkingCopy.java:169)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationTabGroupViewer.handleApplyPressed(LaunchConfigurat ionTabGroupViewer.java:1179)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationsDialog.handleLaunchPressed(LaunchConfigurationsDi alog.java:949)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationsDialog.buttonPressed(LaunchConfigurationsDialog.j ava:304)
at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.jav a:660)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820 )
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationsDialog.open(LaunchConfigurationsDialog.java:1086)
at org.eclipse.debug.ui.DebugUITools$1.run(DebugUITools.java:38 3)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDia logOnGroup(DebugUITools.java:387)
at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDia logOnGroup(DebugUITools.java:329)
at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.run(Open LaunchDialogAction.java:80)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499 )
at org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
at org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1930)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:95


Reproducible: Always

Steps to Reproduce:
We supply a set of Launch Scripts to the customer which he can import along with the project. All the while this process worked nice. However, now i have a problem that at the customer site with Widows XP and Eclipse 3.2.2 i get the mentioned exception when i import the project.
1.Install a fresh eclipse instance downloaded for windows environment from http://archive.eclipse.org/eclipse/downloads/drops/R-3.2.2-200702121330/index.php 
2. Launch Eclipse and Import the project with Launch Scripts
3. In the Error Logs i get 5 errors each saying that "org.eclipse.debug.core.DebugException: Launch configuration Batch SubmitJob (ANIMATE) at c:\spl\V230_CCB\SPLSDKCommon\eclipseLaunchScripts\Batch SubmitJob (ANIMATE).launch does not exist."
However, the real issue is this file exists and is also writable.
Comment 1 SureshKrishna CLA 2010-06-08 15:30:51 EDT
Created attachment 171465 [details]
Exceptions in a readable format.
Comment 2 Pawel Piech CLA 2011-06-08 01:03:00 EDT
Is this still a problem?  Can you confirm on a 3.7 build?