Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#6 Invalid OSGi Manifest

closed
Build (2)
5
2014-10-20
2012-08-16
Hendy Irawan
No

Cannot install joda-money 0.6 in Felix 4.0.3 :

2012-08-17 04:12:39,736 | INFO | l Console Thread | Console | araf.shell.console.jline.Console 196 | 27 - org.apache.karaf.shell.console - 2.3.0.SNAPSHOT | Exception caught while executing command
org.apache.karaf.shell.console.MultiException: Error installing bundles:
Unable to install bundle mvn:org.joda/joda-money/0.6
at org.apache.karaf.shell.console.MultiException.throwIf(MultiException.java:91)
at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:70)[21:org.apache.karaf.shell.osgi:2.3.0.SNAPSHOT]
at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
at org.apache.karaf.shell.console.jline.Console.run(Console.java:167)[27:org.apache.karaf.shell.console:2.3.0.SNAPSHOT]
at java.lang.Thread.run(Thread.java:722)[:1.7.0_03]
Caused by: java.lang.Exception: Unable to install bundle mvn:org.joda/joda-money/0.6
at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:45)[21:org.apache.karaf.shell.osgi:2.3.0.SNAPSHOT]
... 11 more
Caused by: org.osgi.framework.BundleException: Exported package names cannot be zero length.
at org.apache.felix.framework.util.manifestparser.ManifestParser.normalizeExportClauses(ManifestParser.java:729)[org.apache.felix.framework-4.0.3.jar:]
at org.apache.felix.framework.util.manifestparser.ManifestParser.<init>(ManifestParser.java:191)[org.apache.felix.framework-4.0.3.jar:]
at org.apache.felix.framework.BundleRevisionImpl.<init>(BundleRevisionImpl.java:114)[org.apache.felix.framework-4.0.3.jar:]
at org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1196)[org.apache.felix.framework-4.0.3.jar:]
at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:95)[org.apache.felix.framework-4.0.3.jar:]
at org.apache.felix.framework.Felix.installBundle(Felix.java:2732)[org.apache.felix.framework-4.0.3.jar:]
at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)[org.apache.felix.framework-4.0.3.jar:]
at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:43)[21:org.apache.karaf.shell.osgi:2.3.0.SNAPSHOT]
... 11 more

Culprit is the last ",":

Export-Package: org.joda.money;version=0.6,org.joda.money.format;versi
on=0.6,

Correction:

Export-Package: org.joda.money;version=0.6,org.joda.money.format;versi
on=0.6

Discussion

  • Fixed in 9bdec80961e6ddb0ccb0cfdfd30980d7c94cb4c9