fubar-coder / beanio

Automatically exported from code.google.com/p/beanio
Apache License 2.0
0 stars 0 forks source link

beanio can't be installed into karaf container #101

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?  If applicable, please provide a
mapping configuration and sample record input to recreate the problem.
1. get karaf container, e.g. from maven 
org/fusesource/fabric/fuse-fabric/7.2.0.redhat-024
2. start container
3. issue osgi:install mvn:org.beanio/beanio/2.1.0.M2

What is the expected output? What do you see instead?
Expected OK install
I see:
Bundle IDs:
Error executing command: Error installing bundles:
        Unable to install bundle mvn:org.beanio/beanio/2.1.0.M2

What version of BeanIO are you using? What JDK version?

BeanIO 2.1.0.M2, JDK7

Please provide any additional information below.

In log one can see
FuseFabric:karaf@root> log:display
2014-01-13 16:18:27,064 | INFO  | l Console Thread | Console                    
      | araf.shell.console.jline.Console  200 | 14 - 
org.apache.karaf.shell.console - 2.3.0.redhat
cuting command
org.apache.karaf.shell.console.MultiException: Error installing bundles:
        Unable to install bundle mvn:org.beanio/beanio/2.1.0.M2
        at org.apache.karaf.shell.console.MultiException.throwIf(MultiException.java:91)[14:org.apache.karaf.shell.console:2.3.0.redhat-60024]
        at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:70)[45:org.apache.karaf.shell.osgi:2.3.0.redhat-60024]
        at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[14:org.apache.karaf.shell.console:2.3.0.redhat-60024]
        at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[14:org.apache.karaf.shell.console:2.3.0.redhat-60024]
        at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[14:org.apache.karaf.shell.console:2.3.0.redhat-60024]
        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[14:org.apache.karaf.shell.console:2.3.0.redhat-60024]
        at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[14:org.apache.karaf.shell.console:2.3.0.redhat-60024]
        at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[14:org.apache.karaf.shell.console:2.3.0.redhat-60024]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[14:org.apache.karaf.shell.console:2.3.0.redhat-60024]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[14:org.apache.karaf.shell.console:2.3.0.redhat-60024]
        at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[14:org.apache.karaf.shell.console:2.3.0.redhat-60024]
        at org.apache.karaf.shell.console.jline.Console.run(Console.java:176)[14:org.apache.karaf.shell.console:2.3.0.redhat-60024]
        at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:61)[14:org.apache.karaf.shell.console:2.3.0.redhat-60024]
Caused by: java.lang.Exception: Unable to install bundle 
mvn:org.beanio/beanio/2.1.0.M2
        at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:45)[45:org.apache.karaf.shell.osgi:2.3.0.redhat-60024]
        ... 11 more
Caused by: org.osgi.framework.BundleException: Imported package names cannot be 
zero length.
        at org.apache.felix.framework.util.manifestparser.ManifestParser.normalizeImportClauses(ManifestParser.java:335)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]
        at org.apache.felix.framework.util.manifestparser.ManifestParser.<init>(ManifestParser.java:163)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]
        at org.apache.felix.framework.BundleRevisionImpl.<init>(BundleRevisionImpl.java:119)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]
        at org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1199)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]
        at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:96)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]
        at org.apache.felix.framework.Felix.installBundle(Felix.java:3080)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]
        at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)[org.apache.felix.framework-4.0.3.redhat-60024.jar:]
        at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:43)[45:org.apache.karaf.shell.osgi:2.3.0.redhat-60024]
        ... 11 more

Original issue reported on code.google.com by tiv...@gmail.com on 13 Jan 2014 at 2:24

GoogleCodeExporter commented 9 years ago
Did release 2.0.7 work with Karaf?  I'm guessing one of the manifest entries 
must be incorrect- I'll look into it.

Original comment by kevin.s...@gmail.com on 14 Jan 2014 at 4:21

GoogleCodeExporter commented 9 years ago
Can you try the attached JAR file?  Thanks, Kevin

Original comment by kevin.s...@gmail.com on 14 Jan 2014 at 4:46

Attachments:

GoogleCodeExporter commented 9 years ago
Hmm, I think I still need to find a way to suppress the "uses" directive in the 
"Export-Package" attribute.

Original comment by kevin.s...@gmail.com on 14 Jan 2014 at 4:53

GoogleCodeExporter commented 9 years ago
I think I got it working now.  2.1.0 snapshot JAR attached with corrected OSGi 
manifest headers.

Original comment by kevin.s...@gmail.com on 15 Jan 2014 at 5:18

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by kevin.s...@gmail.com on 17 Jan 2014 at 3:11

GoogleCodeExporter commented 9 years ago
I am sorry, I am now in vacation. I will be able to test it in a week.

Original comment by tiv...@gmail.com on 18 Jan 2014 at 8:08

GoogleCodeExporter commented 9 years ago

Original comment by kevin.s...@gmail.com on 7 Sep 2014 at 2:17