Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352275 - Empty org.osgi.framework.system.packages.extra causes "Invalid manifest header Export-Package"
Summary: Empty org.osgi.framework.system.packages.extra causes "Invalid manifest heade...
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: Juno M1   Edit
Assignee: Thomas Watson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-16 13:55 EDT by Stephen Evanchik CLA
Modified: 2011-07-18 14:06 EDT (History)
1 user (show)

See Also:


Attachments
Example Equinox log with "Invalid manifest header Export-Package" (52.31 KB, text/plain)
2011-07-16 13:56 EDT, Stephen Evanchik CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Evanchik CLA 2011-07-16 13:55:48 EDT
Build Identifier: I20110613-1736

In working with Eclipse Indigo (Eclipse 3.7) I noticed a different behavior in processing the org.osgi.framework.system.packages.extra property.

In the previous versions (3.4, 3.5 and 3.6) when the property is empty it is ignored.

In 3.7 the property is processed which causes the Framework's Export-Package to look like this:

 "some.package, another.package, "

The trailing "," and perhaps the trailing space causes the following exception:

java.lang.RuntimeException: Exception while creating System Bundle: Invalid manifest header Export-Package: <export package list here>

If I remove the empty org.osgi.framework.system.packages.extra key from my config.ini the Framework starts and all is well.

Reproducible: Always

Steps to Reproduce:
1. Place org.osgi.framework.system.packages.extra= in config.ini
2. Run the Framework
3. See the exception, Framework fails to start
Comment 1 Stephen Evanchik CLA 2011-07-16 13:56:59 EDT
Created attachment 199788 [details]
Example Equinox log with "Invalid manifest header Export-Package"