Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365510 - org.xbill.dns source bundle specifies invalid manifest header
Summary: org.xbill.dns source bundle specifies invalid manifest header
Status: RESOLVED FIXED
Alias: None
Product: Orbit
Classification: Tools
Component: bundles (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Markus Kuppe CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-03 16:51 EST by Steffen Pingel CLA
Modified: 2011-12-05 14:49 EST (History)
1 user (show)

See Also:


Attachments
mylyn/context/zip (2.13 KB, application/octet-stream)
2011-12-04 10:51 EST, Markus Kuppe CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Pingel CLA 2011-12-03 16:51:44 EST
I get the error below in the log on each startup. Looks like the header in the manifest is malformed:

 Eclipse-SourceBundle: org.xbill.dns;version="2.8.0."

-- Error Details --
Date: Sat Dec 03 22:46:15 CET 2011
Message: Problem processing bundle manifest source header in plug-in %pluginName version 2.8.0. found at /home/spingel/workspace-e_3_8_m_3_x/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/org.xbill.dns.source_2.0.8.v201010140805.jar
Severity: Error
Product: Eclipse SDK 3.8.0.v201110271800 (org.eclipse.sdk.ide)
Plugin: org.eclipse.pde.core

Exception Stack Trace:
java.lang.IllegalArgumentException: invalid format: 2.8.0.
	at org.osgi.framework.Version.<init>(Version.java:150)
	at org.eclipse.pde.internal.core.BundleManifestSourceLocationManager.setPlugins(BundleManifestSourceLocationManager.java:214)
	at org.eclipse.pde.internal.core.SourceLocationManager.initializeBundleManifestLocations(SourceLocationManager.java:386)
	at org.eclipse.pde.internal.core.SourceLocationManager.getBundleManifestLocator(SourceLocationManager.java:216)
	at org.eclipse.pde.internal.core.SourceLocationManager.getBundleManifestLocation(SourceLocationManager.java:208)
	at org.eclipse.pde.internal.core.SourceLocationManager.searchBundleManifestLocations(SourceLocationManager.java:293)
	at org.eclipse.pde.internal.core.SourceLocationManager.findSourcePath(SourceLocationManager.java:58)
	at org.eclipse.pde.internal.core.ClasspathUtilCore.getSourceAnnotation(ClasspathUtilCore.java:154)
	at org.eclipse.pde.internal.core.PDEClasspathContainer.addExternalPlugin(PDEClasspathContainer.java:66)
	at org.eclipse.pde.internal.core.RequiredPluginsClasspathContainer.addPlugin(RequiredPluginsClasspathContainer.java:256)
	at org.eclipse.pde.internal.core.RequiredPluginsClasspathContainer.addDependency(RequiredPluginsClasspathContainer.java:230)
	at org.eclipse.pde.internal.core.RequiredPluginsClasspathContainer.addDependency(RequiredPluginsClasspathContainer.java:214)
	at org.eclipse.pde.internal.core.RequiredPluginsClasspathContainer.computePluginEntries(RequiredPluginsClasspathContainer.java:129)
	at org.eclipse.pde.internal.core.RequiredPluginsClasspathContainer.getClasspathEntries(RequiredPluginsClasspathContainer.java:88)
	at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2697)
	at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2855)
	at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1960)
	at org.eclipse.jdt.core.JavaCore.initializeAfterLoad(JavaCore.java:3652)
	at org.eclipse.jdt.internal.ui.InitializeAfterLoadJob$RealJob.run(InitializeAfterLoadJob.java:36)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.util.NoSuchElementException
	at java.util.StringTokenizer.nextToken(StringTokenizer.java:332)
	at java.util.StringTokenizer.nextToken(StringTokenizer.java:360)
	at org.osgi.framework.Version.<init>(Version.java:139)
	... 19 more
Comment 1 Markus Kuppe CLA 2011-12-03 17:13:02 EST
Hi Steffen,

this looks to me like a releng bug. The source-bundle/META-INF/MANIFEST.MF correctly sets "2.0.8.qualifier".

What build are you on?
Comment 2 Steffen Pingel CLA 2011-12-03 18:03:54 EST
Looks like the bundle is included in 

 org.eclipse.ecf.discovery.dnssd.feature_1.0.0.v20110531-2218
 org.eclipse.ecf.discovery.dnssd.feature_1.0.0.v20110829-0349

Looking at http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.orbit/org.xbill.dns/source-bundle/META-INF/MANIFEST.MF?view=markup&revision=1.1.2.1&root=Tools_Project&pathrev=v2_0_8 the header is:

 Eclipse-SourceBundle: org.xbill.dns;version="2.8.0.qualifier"
 
I guess it should be changed to:
 
 Eclipse-SourceBundle: org.xbill.dns;version="2.0.8.qualifier"
Comment 3 Markus Kuppe CLA 2011-12-04 10:51:53 EST
Fix released to HEAD

Thanks for spotting this.
Comment 4 Markus Kuppe CLA 2011-12-04 10:51:56 EST
Created attachment 207885 [details]
mylyn/context/zip