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

Bug 316417

Summary: NullpointerException when deploying a bundle project to Swordfish server
Product: z_Archived Reporter: Juergen Kindler <jkindler>
Component: SwordfishAssignee: Swordfish Core Inbox <swordfish.core-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=316426
Whiteboard:

Description Juergen Kindler CLA 2010-06-10 03:02:09 EDT
If one (illegally) marks a bundle projects with the Swordfish Application facet, the bundle cannot transferred to the Swordfish server, because the Add and Remove dialog complains that the Java facet is not supported ("Project facet Java version 1.5 is not supported").

However, if one removes that "annoying" Java facet, adding the project in the dialog is possible. But when pressing finish, an error dialog 
"An internal error occurred during: "".
java.lang.NullPointerException"
pops up.

Internal stacktrace:
java.lang.NullPointerException
at org.eclipse.pde.internal.core.feature.WorkspaceFeatureModel.getInstallLocation(WorkspaceFeatureModel.java:83)
at org.eclipse.pde.internal.core.exports.FeatureExportOperation.doExport(FeatureExportOperation.java:220)
at org.eclipse.pde.internal.core.exports.FeatureExportOperation.run(FeatureExportOperation.java:109)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

What is even worse: The bundle project remains in the list of deployed modules. :-(