Bundlor: Error parsing bundle manifest header
Error on genereting the MANIFEST.MF . No error message happens only in the eclips error log.
eclipse.buildId=2.3.0.200912171331-RELEASE
java.version=1.6.0_16
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments: -product com.springsource.sts.ide
Command-line arguments: -os linux -ws gtk -arch x86 -product com.springsource.sts.ide
This is a continuation of log file /home/charles/workspace-sts-2.3.0.RELEASE/.metadata/.bak_0.log
Created Time: 2010-01-06 15:43:36.437
Error
Fri Jan 08 11:39:10 BRST 2010
Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
com.springsource.util.osgi.manifest.parse.BundleMa nifestParseException: Error parsing bundle manifest header []
HP009E:Unexpectedly ran out of data
at com.springsource.util.osgi.manifest.parse.standard .StandardHeaderParser.parsePackageHeader(StandardH eaderParser.java:67)
at com.springsource.util.osgi.manifest.internal.Stand ardImportPackage.parse(StandardImportPackage.java: 60)
at com.springsource.util.osgi.manifest.internal.Compo undParseable.resetFromParseString(CompoundParseabl e.java:58)
at com.springsource.util.osgi.manifest.internal.Stand ardBundleManifest.initializeHeaders(StandardBundle Manifest.java:123)
at com.springsource.util.osgi.manifest.internal.Stand ardBundleManifest.<init>(StandardBundleManifest.ja va:78)
at com.springsource.util.osgi.manifest.internal.Stand ardBundleManifest.<init>(StandardBundleManifest.ja va:100)
at com.springsource.util.osgi.manifest.BundleManifest Factory.createBundleManifest(BundleManifestFactory .java:86)
at com.springsource.bundlor.util.BundleManifestUtils. createBundleManifest(BundleManifestUtils.java:58)
at com.springsource.bundlor.internal.transformer.Mani festCreator.create(ManifestCreator.java:94)
at com.springsource.bundlor.internal.StandardBundleTr ansformer.generateManifest(StandardBundleTransform er.java:120)
at com.springsource.server.ide.bundlor.internal.core. BundlorProjectBuilder.generateManifest(BundlorProj ectBuilder.java:575)
at com.springsource.server.ide.bundlor.internal.core. BundlorProjectBuilder.build(BundlorProjectBuilder. java:225)
at com.springsource.server.ide.bundlor.internal.core. BundlorProjectBuilder.build(BundlorProjectBuilder. java:151)
at org.eclipse.core.internal.events.BuildManager$2.ru n(BuildManager.java:627)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner .java:42)
at org.eclipse.core.internal.events.BuildManager.basi cBuild(BuildManager.java:170)
at org.eclipse.core.internal.events.BuildManager.basi cBuild(BuildManager.java:280)
at org.eclipse.core.internal.events.BuildManager.buil d(BuildManager.java:361)
at org.eclipse.core.internal.resources.Project$1.run( Project.java:523)
at org.eclipse.core.internal.resources.Workspace.run( Workspace.java:1800)
at org.eclipse.core.internal.resources.Workspace.run( Workspace.java:1782)
at org.eclipse.core.internal.resources.Project.intern alBuild(Project.java:502)
at org.eclipse.core.internal.resources.Project.build( Project.java:102)
at com.springsource.server.ide.bundlor.ui.BundlorUiPl ugin$RunBundlorJob.run(BundlorUiPlugin.java:100)
at org.eclipse.core.internal.jobs.Worker.run(Worker.j ava:55)
Bundlor template file parsing error
Hi all,
Whilst my template.mf file was slightly different, I was also having the same issues within Eclipse\STS.
Here is the snippet that was causing the isssue:
Code:
...
Import-Template:
org.springframework.*;version="[3.0, 3.1)",
Import-Package:
javax.servlet.jsp.jstl.core;version="[1.1.2,1.2.0)",
org.eclipse.virgo.web.dm;version="[2.0.0, 3.0.0)",
...
As you can see, there were extra trailing commas for the last item in each list, this appeared to be causing the errors (although the dialog was less than useful).
Hopefully this helps somebody in the future.
Cheers,
Matt