Eclipse Plugin cannot launch bundle with "qualifier" in version

Description

Attempting to run a configuration for a bundle whose version is "1.0.0.qualifier" causes a null pointer induced by org.ops4j.pax.cursor.Utils.createBundleJars(Utils.java:534):

eclipse.buildId=I20090611-1540
java.version=1.6.0_14
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.rcp.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.rcp.product

Error
Thu Aug 13 22:03:27 PDT 2009
An internal error occurred during: "Launching Hello".

java.lang.NullPointerException
at java.lang.String.startsWith(String.java:1421)
at java.lang.String.startsWith(String.java:1450)
at org.ops4j.pax.cursor.Utils.createBundleJars(Utils.java:534)
at org.ops4j.pax.cursor.Utils.getProvisioningFile(Utils.java:374)
at org.ops4j.pax.cursor.LaunchConfiguration.getProgramArguments(LaunchConfiguration.java:161)
at org.eclipse.pde.ui.launcher.AbstractPDELaunchConfiguration.launch(AbstractPDELaunchConfiguration.java:72)
at org.eclipse.pde.ui.launcher.OSGiLaunchConfigurationDelegate.launch(OSGiLaunchConfigurationDelegate.java:43)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:866)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1069)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Looking at createBundleJars, there is a loop trying to find the best jar matching a model that contains a clause f.getName().startsWith( bundleFileName ) when bundleFileName has not been initialized. Should this be something like: f.getName().startsWith( model.getPluginBase().getId() ) ?

Unfortunately Eclipse generates bundles with version in this form as its default. Changing the version to anything else like "1.0.0.foo" works around the problem.

Environment

Eclipse 3.5

Assignee

Alin Dreghiciu

Reporter

James Gula

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure