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

rxjava-1.3.5.redhat-001 is not an osgi bundle, but rxjava-1.3.5 is

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • fuse-7.2
    • fuse-7.0
    • Build, Camel, Karaf
    • None

      Hi dcoleman@redhat.com,

      probably during building karaf there was a change in camel features file that is affecting camel-hystrix and camel-rx feature. The problem is in rxjava 1.3.5 vs 1.3.5-redhat-001

      7.0.0.187:

        <feature name='camel-hystrix' version='2.21.0.fuse-000077' resolver='(obr)' start-level='50'>
          <feature version='2.21.0.fuse-000077'>camel-core</feature>
          <bundle dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hystrix/1.5.12_1</bundle>
          <bundle dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hystrix-event-stream/1.5.12_1</bundle>
          <bundle dependency='true'>mvn:javax.servlet/javax.servlet-api/3.1.0</bundle>
          <bundle dependency='true'>mvn:commons-configuration/commons-configuration/1.9</bundle>
          <bundle dependency='true'>mvn:commons-lang/commons-lang/2.6</bundle>
          <bundle dependency='true'>mvn:io.reactivex/rxjava/1.3.5</bundle>
          <bundle>mvn:org.apache.camel/camel-hystrix/2.21.0.fuse-000077</bundle>
        </feature>
      

      7.0.0.187-redhat-1:

        <feature name='camel-hystrix' version='2.21.0.fuse-000077-redhat-1' resolver='(obr)' start-level='50'>
          <feature version='2.21.0.fuse-000077-redhat-1'>camel-core</feature>
          <bundle dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hystrix/1.5.12_1</bundle>
          <bundle dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.hystrix-event-stream/1.5.12_1</bundle>
          <bundle dependency='true'>mvn:javax.servlet/javax.servlet-api/3.1.0.redhat-1</bundle>
          <bundle dependency='true'>mvn:commons-configuration/commons-configuration/1.9</bundle>
          <bundle dependency='true'>mvn:commons-lang/commons-lang/2.6.0.redhat-6</bundle>
          <bundle dependency='true'>mvn:io.reactivex/rxjava/1.3.5.redhat-001</bundle>
          <bundle>mvn:org.apache.camel/camel-hystrix/2.21.0.fuse-000077-redhat-1</bundle>
        </feature>
      

      I downloaded http://indy.cloud.pnc.engineering.redhat.com/api/group/builds-untested+shared-imports+public/io/reactivex/rxjava/1.3.5.redhat-001/rxjava-1.3.5.redhat-001.jar and it seems it is not a proper osgi bundle - manifest does not contain anything specific to osgi:

      Manifest-Version: 1.0 
      Archiver-Version: Plexus Archiver
      Built-By: mockbuild
      Created-By: Apache Maven 3.3.9
      Build-Jdk: 1.8.0_161
      

      When I downloaded rxjava-1.3.5 from central:

      Manifest-Version: 1.0 
      Build-Date: 2018-01-27_11:30:49
      Bundle-SymbolicName: io.reactivex.rxjava
      Build-Number: LOCAL
      Built-By: travis
      Bnd-LastModified: 1517052653000
      Bundle-DocURL: https://github.com/ReactiveX/RxJava
      Import-Package: sun.misc
      Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.6))"
      Branch: a49c49f6646d75aafcdd3b0dea3dc3455e88dfc2
      Gradle-Version: 2.14
      Export-Package: rx;version="1.3.5";uses:="rx.exceptions,rx.functions,r
       x.observables,rx.observers,rx.schedulers,rx.singles",rx.annotations;v
       ersion="1.3.5",rx.exceptions;version="1.3.5";uses:=rx,rx.functions;ve
       rsion="1.3.5",rx.internal.observers;version="1.3.5";uses:="rx,rx.func
       tions,rx.observers",rx.internal.operators;version="1.3.5";uses:="rx,r
       x.functions,rx.observables,rx.schedulers,rx.subjects",rx.internal.pro
       ducers;version="1.3.5";uses:=rx,rx.internal.schedulers;version="1.3.5
       ";uses:="rx,rx.functions,rx.internal.util,rx.subscriptions",rx.intern
       al.subscriptions;version="1.3.5";uses:="rx,rx.functions",rx.internal.
       util;version="1.3.5";uses:="rx,rx.exceptions,rx.functions,rx.observab
       les",rx.internal.util.atomic;version="1.3.5",rx.internal.util.unsafe;
       version="1.3.5";uses:="rx.internal.util.atomic,sun.misc",rx.observabl
       es;version="1.3.5";uses:="rx,rx.functions",rx.observers;version="1.3.
       5";uses:="rx,rx.functions",rx.plugins;version="1.3.5";uses:="rx,rx.fu
       nctions",rx.schedulers;version="1.3.5";uses:=rx,rx.singles;version="1
       .3.5";uses:=rx,rx.subjects;version="1.3.5";uses:="rx,rx.functions,rx.
       schedulers",rx.subscriptions;version="1.3.5";uses:="rx,rx.functions"
      Built-OS: Linux
      Bundle-Name: rxjava
      Build-Host: travis-job-reactivex-rxjava-334073074.travisci.net
      Module-Email: benjchristensen@netflix.com
      Implementation-Title: io.reactivex#rxjava;1.3.5
      Module-Origin: https://github.com/ReactiveX/RxJava.git
      Build-Id: LOCAL
      Implementation-Version: 1.3.5
      Module-Owner: benjchristensen@netflix.com
      Bundle-ManifestVersion: 2
      Change: a49c49f
      Bundle-Vendor: ReactiveX
      Module-Source: 
      Tool: Bnd-2.4.0.201411031534
      Built-Status: integration
      Build-Job: LOCAL
      Bundle-Version: 1.3.5
      X-Compile-Target-JDK: 1.6 
      X-Compile-Source-JDK: 1.6 
      Created-By: 1.8.0_151-b12 (Oracle Corporation)
      Build-Java-Version: 1.8.0_151
      
      karaf@root()> features:install camel-hystrix
      org.apache.karaf.features.internal.util.MultiException: Error:
      	Unable to create resource for bundle mvn:io.reactivex/rxjava/1.3.5.redhat-001
      	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:388)
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1025)
      	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.lang.Exception: Unable to create resource for bundle mvn:io.reactivex/rxjava/1.3.5.redhat-001
      		at org.apache.karaf.features.internal.region.Subsystem.createResource(Subsystem.java:824)
      		at org.apache.karaf.features.internal.region.Subsystem.lambda$downloadBundles$1(Subsystem.java:499)
      		at org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader.lambda$download$0(MavenDownloadManager.java:138)
      		at org.apache.karaf.features.internal.download.impl.DefaultFuture.notifyListener(DefaultFuture.java:350)
      		at org.apache.karaf.features.internal.download.impl.DefaultFuture.notifyListeners(DefaultFuture.java:335)
      		at org.apache.karaf.features.internal.download.impl.DefaultFuture.setValue(DefaultFuture.java:259)
      		at org.apache.karaf.features.internal.download.impl.AbstractDownloadTask.setFile(AbstractDownloadTask.java:61)
      		at org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:61)
      		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)
      		... 3 more
      	Caused by: org.osgi.framework.BundleException: Unable to build resource for mvn:io.reactivex/rxjava/1.3.5.redhat-001: Unsupported 'Bundle-ManifestVersion' value: 1
      		at org.apache.karaf.features.internal.resolver.ResourceBuilder.build(ResourceBuilder.java:82)
      		at org.apache.karaf.features.internal.resolver.ResourceBuilder.build(ResourceBuilder.java:71)
      		at org.apache.karaf.features.internal.region.Subsystem.createResource(Subsystem.java:822)
      		... 14 more
      	Caused by: org.osgi.framework.BundleException: Unsupported 'Bundle-ManifestVersion' value: 1
      		at org.apache.karaf.features.internal.resolver.ResourceBuilder.doBuild(ResourceBuilder.java:90)
      		at org.apache.karaf.features.internal.resolver.ResourceBuilder.build(ResourceBuilder.java:80)
      		... 16 more
      Error executing command: Error:
      	Unable to create resource for bundle mvn:io.reactivex/rxjava/1.3.5.redhat-001
      

              dcoleman@redhat.com Darren Coleman
              avano@redhat.com Andrej Vano
              Vratislav Hais Vratislav Hais (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: