1 Reply Latest reply on Jun 16, 2016 4:48 PM by sai570

    Unable to update agent io.fabric8.common.util.MultiException: Error    AND   Unsupported 'Bundle-ManifestVersion' value: 1

    shanthisagar

      I am very new to Fuse though I was used to Apache Camel.

       

      We are trying to build an integration solution here and for me the first step is to do a POC.

       

      Currently what I have is a pom file packaged as war.

      I have downloaded Fuse full 6.2.

      Created a fabric

      Created a profile in a fabric

      Added the war file to the profile

      Assigned the profile to the root container in the fabric

      The following error is seen

       

      Unable to update agent

      io.fabric8.common.util.MultiException: Error

        at io.fabric8.agent.download.impl.MavenDownloadManager$MavenDownloader.<init>(MavenDownloadManager.java:93)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]

        at io.fabric8.agent.download.impl.MavenDownloadManager.createDownloader(MavenDownloadManager.java:71)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]

        at io.fabric8.agent.region.Subsystem.downloadBundles(Subsystem.java:329)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]

        at io.fabric8.agent.region.SubsystemResolver.resolve(SubsystemResolver.java:182)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]

        at io.fabric8.agent.service.Deployer.deploy(Deployer.java:273)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]

        at io.fabric8.agent.service.Agent.provision(Agent.java:366)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]

        at io.fabric8.agent.service.Agent.provision(Agent.java:199)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]

        at io.fabric8.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:727)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]

        at io.fabric8.agent.DeploymentAgent$4.run(DeploymentAgent.java:283)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_80]

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_80]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_80]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_80]

        at java.lang.Thread.run(Thread.java:745)[:1.7.0_80]

      Caused by: java.lang.Exception: Unable to create resource for bundle mvn:com.openplatform/integrations-core/1.0-SNAPSHOT/war

        at io.fabric8.agent.region.Subsystem.createResource(Subsystem.java:491)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]

        at io.fabric8.agent.region.Subsystem$ResourceBuilderCallback.downloaded(Subsystem.java:422)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]

        at io.fabric8.agent.download.impl.MavenDownloadManager$MavenDownloader$1.operationComplete(MavenDownloadManager.java:143)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]

        at io.fabric8.agent.download.impl.MavenDownloadManager$MavenDownloader$1.operationComplete(MavenDownloadManager.java:137)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]

        at io.fabric8.agent.download.impl.DefaultFuture.notifyListener(DefaultFuture.java:343)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]

        at io.fabric8.agent.download.impl.DefaultFuture.notifyListeners(DefaultFuture.java:328)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]

        at io.fabric8.agent.download.impl.DefaultFuture.setValue(DefaultFuture.java:254)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]

        at io.fabric8.agent.download.impl.AbstractDownloadTask.setFile(AbstractDownloadTask.java:53)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]

        at io.fabric8.agent.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:41)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_80]

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_80]

        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[:1.7.0_80]

        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[:1.7.0_80]

        ... 3 more

      Caused by: org.osgi.framework.BundleException: Unsupported 'Bundle-ManifestVersion' value: 1

        at io.fabric8.agent.resolver.ResourceBuilder.build(ResourceBuilder.java:72)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]

        at io.fabric8.agent.resolver.ResourceBuilder.build(ResourceBuilder.java:65)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]

        at io.fabric8.agent.region.Subsystem.createResource(Subsystem.java:489)[142:io.fabric8.fabric-agent:1.2.0.redhat-621084]

        ... 15 more

       

       

       

       

       

      The glimpse of my maven pom.xml :

       

      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

        <modelVersion>4.0.0</modelVersion>

        <groupId>com.openplatform</groupId>

        <artifactId>integrations-core</artifactId>

        <version>1.0-SNAPSHOT</version>

        <packaging>war</packaging>

        <name>Integrations Core</name>

       

       

        <parent>

        <groupId>com.open</groupId>

        <artifactId>open-parent-pom</artifactId>

        <version>1.0</version>

        </parent>

       

       

        <properties>

        <jdk.version>1.7</jdk.version>

        <spring.version>4.0.3.RELEASE</spring.version>

        <open.common.version>1.0-SNAPSHOT</open.common.version>

        </properties>

       

       

        <dependencies>

        <dependency>

        <groupId>com.open.common</groupId>

        <artifactId>common-model</artifactId>

        <version>${open.common.version}</version>

        </dependency>

        <dependency>

        <groupId>com.open.common</groupId>

        <artifactId>common-integrations</artifactId>

        <version>${open.common.version}</version>

        </dependency>

        <dependency>

        <groupId>org.apache.camel</groupId>

        <artifactId>camel-core</artifactId>

        <version>2.15.1.redhat-621084</version>

        </dependency>

        <dependency>

        <groupId>org.apache.camel</groupId>

        <artifactId>camel-jms</artifactId>

        <version>2.15.1.redhat-621084</version>

        </dependency>

        <!-- <dependency>

        <groupId>org.apache.activemq</groupId>

        <artifactId>activemq-camel</artifactId>

        <version>2.15.1.redhat-621084</version>

        </dependency> -->

        <dependency>

        <groupId>org.apache.camel</groupId>

        <artifactId>camel-quartz</artifactId>

        <version>2.15.1.redhat-621084</version>

        </dependency>

        <dependency>

        <groupId>org.apache.camel</groupId>

        <artifactId>camel-spring</artifactId>

        <version>2.15.1.redhat-621084</version>

        </dependency>

        <dependency>

        <groupId>org.apache.camel</groupId>

        <artifactId>camel-cxf</artifactId>

        <version>2.15.1.redhat-621084</version>

        </dependency>

        <dependency>

        <groupId>org.apache.camel</groupId>

        <artifactId>camel-servlet</artifactId>

        <version>2.15.1.redhat-621084</version>

        </dependency>

        <dependency>

        <groupId>org.apache.cxf</groupId>

        <artifactId>cxf-rt-frontend-jaxws</artifactId>

        </dependency>

        <dependency>

        <groupId>org.apache.cxf</groupId>

        <artifactId>cxf-rt-transports-http</artifactId>

        </dependency>

        <dependency>

        <groupId>log4j</groupId>

        <artifactId>log4j</artifactId>

        <version>1.2.17</version>

        </dependency>

        <dependency>

        <groupId>org.apache.activemq</groupId>

        <artifactId>activemq-pool</artifactId>

        </dependency>

        <dependency>

        <groupId>org.hibernate</groupId>

        <artifactId>hibernate-validator</artifactId>

        </dependency>

        <dependency>

        <groupId>org.eclipse.persistence</groupId>

        <artifactId>eclipselink</artifactId>

        </dependency>

        <!-- Spring framework -->

        <dependency>

        <groupId>org.springframework</groupId>

        <artifactId>spring-core</artifactId>

        <version>${spring.version}</version>

        </dependency>

        <dependency>

        <groupId>org.springframework</groupId>

        <artifactId>spring-beans</artifactId>

        <version>${spring.version}</version>

        </dependency>

        <dependency>

        <groupId>org.springframework</groupId>

        <artifactId>spring-context</artifactId>

        <version>${spring.version}</version>

        </dependency>

        <dependency>

        <groupId>org.springframework</groupId>

        <artifactId>spring-web</artifactId>

        <version>${spring.version}</version>

        </dependency>

        <dependency>

        <groupId>org.springframework</groupId>

        <artifactId>spring-aop</artifactId>

        <version>${spring.version}</version>

        </dependency>

        <dependency>

        <groupId>org.springframework</groupId>

        <artifactId>spring-test</artifactId>

        <version>${spring.version}</version>

        <scope>test</scope>

        </dependency>

        <dependency>

        <groupId>com.google.guava</groupId>

        <artifactId>guava</artifactId>

        </dependency>

        <dependency>

        <groupId>org.aspectj</groupId>

        <artifactId>aspectjrt</artifactId>

        <version>1.8.0</version>

        </dependency>

       

       

        <dependency>

        <groupId>org.aspectj</groupId>

        <artifactId>aspectjweaver</artifactId>

        <version>1.8.0</version>

        </dependency>

        <dependency>

        <groupId>mysql</groupId>

        <artifactId>mysql-connector-java</artifactId>

        </dependency>

        <dependency>

        <groupId>org.apache.httpcomponents</groupId>

        <artifactId>httpclient</artifactId>

        </dependency>

        <dependency>

        <groupId>org.apache.logging.log4j</groupId>

        <artifactId>log4j-1.2-api</artifactId>

        </dependency>

        <dependency>

        <groupId>org.json</groupId>

        <artifactId>json</artifactId>

        </dependency>

        <dependency>

        <groupId>commons-io</groupId>

        <artifactId>commons-io</artifactId>

        </dependency>

        <dependency>

        <groupId>junit</groupId>

        <artifactId>junit</artifactId>

        </dependency>

        <dependency>

        <groupId>com.lmax</groupId>

        <artifactId>disruptor</artifactId>

        </dependency>

        <dependency>

        <groupId>commons-collections</groupId>

        <artifactId>commons-collections</artifactId>

        </dependency>

        <dependency>

        <groupId>org.slf4j</groupId>

        <artifactId>slf4j-api</artifactId>

        </dependency>

        <dependency>

        <groupId>org.slf4j</groupId>

        <artifactId>slf4j-log4j12</artifactId>

        <version>1.7.5</version>

        </dependency>

        </dependencies>

       

       

        <build>

        <plugins>

        <plugin>

        <artifactId>maven-compiler-plugin</artifactId>

        <version>3.1</version>

        <configuration>

        <source>${jdk.version}</source>

        <target>${jdk.version}</target>

        </configuration>

        </plugin>

        <plugin>

        <groupId>org.whitesource</groupId>

        <artifactId>whitesource-maven-plugin</artifactId>

        <version>3.0</version>

        <configuration>

        <orgToken>182bb6ed-5533-4ad0-ae82-5575b78c7e59</orgToken>

        <product>OPEN</product>

        <reportAsJson>true</reportAsJson>

        <resolveInHouseDependencies>true</resolveInHouseDependencies>

        <ignoredScopes>

        <ignoredScope>test</ignoredScope>

        </ignoredScopes>

        </configuration>

        </plugin>

        <plugin>

        <artifactId>maven-war-plugin</artifactId>

        <version>2.1.1</version>

        <configuration>

        <webXml>src/main/webapp/WEB-INF/web.xml</webXml>

        <webResources>

        <resource>

        <directory>src/main/resources</directory>

        <targetPath>WEB-INF</targetPath>

        <includes>

        <include>**/*</include>

        </includes>

        </resource>

        </webResources>

        </configuration>

        </plugin>

        </plugins>

        </build>

       

       

      </project>

        • 1. Re: Unable to update agent io.fabric8.common.util.MultiException: Error    AND   Unsupported 'Bundle-ManifestVersion' value: 1
          sai570

          I have found with similar exception while migrating from version 6.1 to version 6.2.1.Please let us know if anyone resolved this Issue.

          Please find the error message in below.

           

          Red Hat JBoss Fuse@

          io.fabric8.common.util.MultiException: Error

              at io.fabric8.agent.download.impl.MavenDownloadManager$MavenDownloader.<init>(MavenDownloadManager.java:93)[86:io.fabric8.fabric-agent:1.2.0.redhat-621084]

              at io.fabric8.agent.download.impl.MavenDownloadManager.createDownloader(MavenDownloadManager.java:71)[86:io.fabric8.fabric-agent:1.2.0.redhat-621084]

              at io.fabric8.agent.region.Subsystem.downloadBundles(Subsystem.java:329)[86:io.fabric8.fabric-agent:1.2.0.redhat-621084]

              at io.fabric8.agent.region.SubsystemResolver.resolve(SubsystemResolver.java:182)[86:io.fabric8.fabric-agent:1.2.0.redhat-621084]

              at io.fabric8.agent.service.Deployer.deploy(Deployer.java:273)[86:io.fabric8.fabric-agent:1.2.0.redhat-621084]

              at io.fabric8.agent.service.Agent.provision(Agent.java:366)[86:io.fabric8.fabric-agent:1.2.0.redhat-621084]

              at io.fabric8.agent.service.Agent.provision(Agent.java:199)[86:io.fabric8.fabric-agent:1.2.0.redhat-621084]

              at io.fabric8.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:727)[86:io.fabric8.fabric-agent:1.2.0.redhat-621084]

              at io.fabric8.agent.DeploymentAgent$4.run(DeploymentAgent.java:283)[86:io.fabric8.fabric-agent:1.2.0.redhat-621084]

              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_80]

              at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_80]

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_80]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_80]

              at java.lang.Thread.run(Thread.java:745)[:1.7.0_80]

          Caused by: java.lang.Exception: Unable to create resource for bundle fab:mvn:org.osgi/org.osgi/3.0.0

              at io.fabric8.agent.region.Subsystem.createResource(Subsystem.java:491)[86:io.fabric8.fabric-agent:1.2.0.redhat-621084]

              at io.fabric8.agent.region.Subsystem$ResourceBuilderCallback.downloaded(Subsystem.java:422)[86:io.fabric8.fabric-agent:1.2.0.redhat-621084]

              at io.fabric8.agent.download.impl.MavenDownloadManager$MavenDownloader$1.operationComplete(MavenDownloadManager.java:143)[86:io.fabric8.fabric-agent:1.2.0.redhat-621084]

              at io.fabric8.agent.download.impl.MavenDownloadManager$MavenDownloader$1.operationComplete(MavenDownloadManager.java:137)[86:io.fabric8.fabric-agent:1.2.0.redhat-621084]

              at io.fabric8.agent.download.impl.DefaultFuture.notifyListener(DefaultFuture.java:343)[86:io.fabric8.fabric-agent:1.2.0.redhat-621084]

              at io.fabric8.agent.download.impl.DefaultFuture.notifyListeners(DefaultFuture.java:328)[86:io.fabric8.fabric-agent:1.2.0.redhat-621084]

              at io.fabric8.agent.download.impl.DefaultFuture.setValue(DefaultFuture.java:254)[86:io.fabric8.fabric-agent:1.2.0.redhat-621084]

              at io.fabric8.agent.download.impl.AbstractDownloadTask.setFile(AbstractDownloadTask.java:53)[86:io.fabric8.fabric-agent:1.2.0.redhat-621084]

              at io.fabric8.agent.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:41)[86:io.fabric8.fabric-agent:1.2.0.redhat-621084]

              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_80]

              at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_80]

              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[:1.7.0_80]

              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[:1.7.0_80]

              ... 3 more

          Caused by: org.osgi.framework.BundleException: Unsupported 'Bundle-ManifestVersion' value: 1

              at io.fabric8.agent.resolver.ResourceBuilder.build(ResourceBuilder.java:72)[86:io.fabric8.fabric-agent:1.2.0.redhat-621084]

              at io.fabric8.agent.resolver.ResourceBuilder.build(ResourceBuilder.java:65)[86:io.fabric8.fabric-agent:1.2.0.redhat-621084]

              at io.fabric8.agent.region.Subsystem.createResource(Subsystem.java:489)[86:io.fabric8.fabric-agent:1.2.0.redhat-621084]

              ... 15 more