Results 1 to 7 of 7

Thread: Bundlor: Error parsing bundle manifest header

  1. #1
    Join Date
    Jan 2010
    Posts
    3

    Default 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)

  2. #2
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    Hi,

    can you post or attach your template.mf file?

    Christian
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

  3. #3
    Join Date
    Jan 2010
    Posts
    3

    Default Manifest and Template

    I put both manifest and template in a zip file.
    When I run the "update manifest" action nothing happens!
    Attached Files Attached Files

  4. #4
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    charles,

    the template.mf in the attached zip seems to be missing a line break at the end of the Import-Package header. When you add this in, does this fix the error?

    Christian
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

  5. #5
    Join Date
    Jan 2010
    Posts
    3

    Default nops ....

    Hi Christian,

    There is more projects in my workspace with the same error.
    Even with the line break the error persists.

    The strange part is if I build using bundlor via Maven the manifest.mf is generated.
    But within eclipse nothing happens!

  6. #6
    Join Date
    Feb 2011
    Location
    Melbourne
    Posts
    1

    Default 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

  7. #7
    Join Date
    Feb 2011
    Posts
    1

    Default

    Thanks Matt for such a informative views.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •