Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-7842

Unknown protocol: wrap when installing wrapped bundles

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • fuse-7.0
    • fuse-7.0
    • Karaf
    • None
    • % %

    Description

      There is quite a big regression between 158 and 161 builds, as in 161 build multiple features install fail with:

      karaf@root()> features:install camel-ahc
      Error executing command: Error:
      	Error downloading wrap:file:/tmp/jboss-fuse-karaf-7.0.0.fuse-000161/data/repository/org/asynchttpclient/async-http-client/2.4.3/async-http-client-2.4.3.jar$Export-Package=org.asynchttpclient.*;version=2.4.3
      	Error downloading wrap:file:/tmp/jboss-fuse-karaf-7.0.0.fuse-000161/data/repository/org/asynchttpclient/async-http-client/2.4.3/async-http-client-2.4.3.jar$Export-Package=org.asynchttpclient.*;version=2.4.3
      
      14:47:32.046 ERROR [Karaf local console user karaf] Exception caught while executing command
      org.apache.karaf.features.internal.util.MultiException: Error:
      	Error downloading wrap:file:/tmp/jboss-fuse-karaf-7.0.0.fuse-000161/data/repository/org/asynchttpclient/async-http-client/2.4.3/async-http-client-2.4.3.jar$Export-Package=org.asynchttpclient.*;version=2.4.3
      	Error downloading wrap:file:/tmp/jboss-fuse-karaf-7.0.0.fuse-000161/data/repository/org/asynchttpclient/async-http-client/2.4.3/async-http-client-2.4.3.jar$Export-Package=org.asynchttpclient.*;version=2.4.3
      	at org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader.<init>(MavenDownloadManager.java:91) ~[?:?]
      	at org.apache.karaf.features.internal.download.impl.MavenDownloadManager.createDownloader(MavenDownloadManager.java:72) ~[?:?]
      	at org.apache.karaf.features.internal.region.Subsystem.downloadBundles(Subsystem.java:457) ~[?:?]
      	at org.apache.karaf.features.internal.region.Subsystem.downloadBundles(Subsystem.java:452) ~[?:?]
      	at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:215) ~[?:?]
      	at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:385) ~[?:?]
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1024) ~[?:?]
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:964) ~[?:?]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:?]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:?]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:?]
      	at java.lang.Thread.run(Thread.java:748) [?:?]
      	Suppressed: java.io.IOException: Error downloading wrap:file:/tmp/jboss-fuse-karaf-7.0.0.fuse-000161/data/repository/org/asynchttpclient/async-http-client/2.4.3/async-http-client-2.4.3.jar$Export-Package=org.asynchttpclient.*;version=2.4.3
      		at org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:77) ~[?:?]
      		at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:?]
      		at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:?]
      		at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) ~[?:?]
      		at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[?:?]
      		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:?]
      		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:?]
      		at java.lang.Thread.run(Thread.java:748) [?:?]
      	Caused by: java.io.IOException: Could not download [wrap:file:/tmp/jboss-fuse-karaf-7.0.0.fuse-000161/data/repository/org/asynchttpclient/async-http-client/2.4.3/async-http-client-2.4.3.jar$Export-Package=org.asynchttpclient.*;version=2.4.3]
      		at org.apache.karaf.features.internal.download.impl.SimpleDownloadTask.download(SimpleDownloadTask.java:90) ~[?:?]
      		at org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:60) ~[?:?]
      		... 7 more
      	Caused by: java.net.MalformedURLException: Unknown protocol: wrap
      		at java.net.URL.<init>(URL.java:627) ~[?:?]
      		at java.net.URL.<init>(URL.java:490) ~[?:?]
      		at java.net.URL.<init>(URL.java:439) ~[?:?]
      		at org.apache.karaf.features.internal.download.impl.SimpleDownloadTask.download(SimpleDownloadTask.java:62) ~[?:?]
      		at org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:60) ~[?:?]
      		... 7 more
      	Caused by: java.lang.IllegalStateException: Unknown protocol: wrap
      		at org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373) ~[?:?]
      		at java.net.URL.<init>(URL.java:622) ~[?:?]
      		at java.net.URL.<init>(URL.java:490) ~[?:?]
      		at java.net.URL.<init>(URL.java:439) ~[?:?]
      		at org.apache.karaf.features.internal.download.impl.SimpleDownloadTask.download(SimpleDownloadTask.java:62) ~[?:?]
      		at org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:60) ~[?:?]
      		... 7 more
      
      

      It can be reproduced with simple wrap install:

      karaf@root()> osgi:install wrap:file:/qa/fuseqe-shared/fuse/sap-libs/linux-x86_64/sapjco3.jar
      Bundle IDs: 
      Error executing command: Error installing bundles:
      	Unable to install bundle wrap:file:/qa/fuseqe-shared/fuse/sap-libs/linux-x86_64/sapjco3.jar: org.osgi.framework.BundleException: Unable to cache bundle: wrap:file:/qa/fuseqe-shared/fuse/sap-libs/linux-x86_64/sapjco3.jar
      
      14:48:24.857 ERROR [Karaf local console user karaf] Exception caught while executing command
      org.apache.karaf.shell.support.MultiException: Error installing bundles:
      	Unable to install bundle wrap:file:/qa/fuseqe-shared/fuse/sap-libs/linux-x86_64/sapjco3.jar: org.osgi.framework.BundleException: Unable to cache bundle: wrap:file:/qa/fuseqe-shared/fuse/sap-libs/linux-x86_64/sapjco3.jar
      	at org.apache.karaf.shell.support.MultiException.throwIf(MultiException.java:61) ~[?:?]
      	at org.apache.karaf.bundle.command.Install.execute(Install.java:131) ~[?:?]
      	at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) ~[?:?]
      	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) ~[?:?]
      	at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) ~[?:?]
      	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:571) ~[?:?]
      	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:497) ~[?:?]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:386) ~[?:?]
      	at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) ~[?:?]
      	at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?]
      	at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:?]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:?]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:?]
      	at java.lang.Thread.run(Thread.java:748) [?:?]
      	Suppressed: java.lang.Exception: Unable to install bundle wrap:file:/qa/fuseqe-shared/fuse/sap-libs/linux-x86_64/sapjco3.jar: org.osgi.framework.BundleException: Unable to cache bundle: wrap:file:/qa/fuseqe-shared/fuse/sap-libs/linux-x86_64/sapjco3.jar
      		at org.apache.karaf.bundle.command.Install.execute(Install.java:98) ~[?:?]
      		at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) ~[?:?]
      		at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) ~[?:?]
      		at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) ~[?:?]
      		at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:571) ~[?:?]
      		at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:497) ~[?:?]
      		at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:386) ~[?:?]
      		at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) ~[?:?]
      		at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?]
      		at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?]
      		at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:?]
      		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:?]
      		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:?]
      		at java.lang.Thread.run(Thread.java:748) [?:?]
      	Caused by: org.osgi.framework.BundleException: Unable to cache bundle: wrap:file:/qa/fuseqe-shared/fuse/sap-libs/linux-x86_64/sapjco3.jar
      		at org.apache.felix.framework.Felix.installBundle(Felix.java:3013) ~[?:?]
      		at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:167) ~[?:?]
      		at org.apache.karaf.bundle.command.Install.execute(Install.java:84) ~[?:?]
      		... 13 more
      	Caused by: java.net.MalformedURLException: Unknown protocol: wrap
      		at java.net.URL.<init>(URL.java:627) ~[?:?]
      		at org.apache.felix.framework.util.SecureAction.createURL(SecureAction.java:255) ~[?:?]
      		at org.apache.felix.framework.cache.JarRevision.initialize(JarRevision.java:148) ~[?:?]
      		at org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:77) ~[?:?]
      		at org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:878) ~[?:?]
      		at org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:550) ~[?:?]
      		at org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:153) ~[?:?]
      		at org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:277) ~[?:?]
      		at org.apache.felix.framework.Felix.installBundle(Felix.java:3009) ~[?:?]
      		at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:167) ~[?:?]
      		at org.apache.karaf.bundle.command.Install.execute(Install.java:84) ~[?:?]
      		... 13 more
      	Caused by: java.lang.IllegalStateException: Unknown protocol: wrap
      		at org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:373) ~[?:?]
      		at java.net.URL.<init>(URL.java:622) ~[?:?]
      		at org.apache.felix.framework.util.SecureAction.createURL(SecureAction.java:255) ~[?:?]
      		at org.apache.felix.framework.cache.JarRevision.initialize(JarRevision.java:148) ~[?:?]
      		at org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:77) ~[?:?]
      		at org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:878) ~[?:?]
      		at org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:550) ~[?:?]
      		at org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:153) ~[?:?]
      		at org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:277) ~[?:?]
      		at org.apache.felix.framework.Felix.installBundle(Felix.java:3009) ~[?:?]
      		at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:167) ~[?:?]
      		at org.apache.karaf.bundle.command.Install.execute(Install.java:84) ~[?:?]
      		... 13 more
      

      In 158 build everything is fine:

      karaf@root()> osgi:install wrap:file:/qa/fuseqe-shared/fuse/sap-libs/linux-x86_64/sapjco3.jar
      Bundle ID: 233
      karaf@root()> features:install -v camel-ahc
      Adding features: camel-ahc/[2.21.0.fuse-000051,2.21.0.fuse-000051]
      Changes to perform:
        Region: root
          Bundles to install:
            mvn:io.netty/netty-buffer/4.1.22.Final
            mvn:io.netty/netty-codec/4.1.22.Final
            mvn:io.netty/netty-codec-http/4.1.22.Final
            mvn:io.netty/netty-common/4.1.22.Final
            mvn:io.netty/netty-handler/4.1.22.Final
            mvn:io.netty/netty-resolver/4.1.22.Final
            mvn:io.netty/netty-transport/4.1.22.Final
            mvn:io.netty/netty-transport-native-epoll/4.1.22.Final
            mvn:io.netty/netty-transport-native-unix-common/4.1.22.Final
            mvn:org.apache.camel/camel-ahc/2.21.0.fuse-000051
            wrap:mvn:org.asynchttpclient/async-http-client/2.4.2$Export-Package=org.asynchttpclient.*;version=2.4.2
      Stopping bundles:
        org.apache.camel.camel-jms/2.21.0.fuse-000051
        org.apache.servicemix.bundles.spring-jms/4.3.14.RELEASE_1
      Installing bundles:
        mvn:io.netty/netty-buffer/4.1.22.Final
        mvn:io.netty/netty-codec/4.1.22.Final
        mvn:io.netty/netty-codec-http/4.1.22.Final
        mvn:io.netty/netty-common/4.1.22.Final
        mvn:io.netty/netty-handler/4.1.22.Final
        mvn:io.netty/netty-resolver/4.1.22.Final
        mvn:io.netty/netty-transport/4.1.22.Final
        mvn:io.netty/netty-transport-native-epoll/4.1.22.Final
        mvn:io.netty/netty-transport-native-unix-common/4.1.22.Final
        mvn:org.apache.camel/camel-ahc/2.21.0.fuse-000051
        wrap:mvn:org.asynchttpclient/async-http-client/2.4.2$Export-Package=org.asynchttpclient.*;version=2.4.2
      Refreshing bundles:
          org.apache.camel.camel-jms/2.21.0.fuse-000051 (Wired to org.apache.servicemix.bundles.spring-jms/4.3.14.RELEASE_1 which is being refreshed)
          org.apache.servicemix.bundles.spring-jms/4.3.14.RELEASE_1 (Should be wired to: io.netty.transport/4.1.22.Final (through [org.apache.servicemix.bundles.spring-jms/4.3.14.RELEASE_1] osgi.wiring.package; resolution:=optional; filter:="(osgi.wiring.package=io.netty.channel)"), io.netty.common/4.1.22.Final (through [org.apache.servicemix.bundles.spring-jms/4.3.14.RELEASE_1] osgi.wiring.package; resolution:=optional; filter:="(osgi.wiring.package=io.netty.util.concurrent)"))
      Starting bundles:
        org.apache.servicemix.bundles.spring-jms/4.3.14.RELEASE_1
        io.netty.resolver/4.1.22.Final
        io.netty.transport/4.1.22.Final
        io.netty.codec/4.1.22.Final
        io.netty.handler/4.1.22.Final
        io.netty.codec-http/4.1.22.Final
        io.netty.transport-native-unix-common/4.1.22.Final
        io.netty.transport-native-epoll/4.1.22.Final
        wrap_file__tmp_jboss-fuse-karaf-7.0.0.fuse-000158_data_repository_org_asynchttpclient_async-http-client_2.4.2_async-http-client-2.4.2.jar_Export-Package_org.asynchttpclient.__version_2.4.2/0.0.0
        org.apache.camel.camel-jms/2.21.0.fuse-000051
        org.apache.camel.camel-ahc/2.21.0.fuse-000051
        io.netty.common/4.1.22.Final
        io.netty.buffer/4.1.22.Final
      Done.
      

      Attachments

        Activity

          People

            johnpoth John Poth
            avano@redhat.com Andrej Vano
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: