8 Replies Latest reply on Jan 22, 2013 6:18 AM by iocanel

    Fabric Container Provision Status - MultiException while downloading bundle

    pratik_patel

      Hi,

       

      I am trying load balancing example provided in the link below.

       

      https://github.com/fusesource/fuse/tree/bai_policies/fabric/fabric-examples/fabric-camel-cluster-loadbalancing

       

      After executing the script, the containers are configured with MultiException error. Please see the logs below.

       

      FuseESB:karaf@root> fabric:container-list

                                                     

      root*                          1.0       true    fabric, fabric-ensemble-0000-1, fuse-esb-full success

        camel-client                 1.0       true    fabric-camel-consumer          error - org.fusesource.fabric.agent.utils.MultiException: Error while downloading bundles

        camel-9191                   1.0       true   camel-cluster-port-9090        error - org.fusesource.fabric.agent.utils.MultiException: Error while downloading bundles

        camel-9191                   1.0       true   camel-cluster-port-9191        error - org.fusesource.fabric.agent.utils.MultiException: Error while downloading bundles

       

      -


      Environment Parameters

      OS - Windows 7

      JDK - 1.7

      Fuse ESB 7.1.0

       

      Can you please advise what could be the problem?

       

       

      Thanks,

      Pratik

        • 1. Re: Fabric Container Provision Status - MultiException while downloading bundle
          davsclaus

          Are you behind any HTTP proxy to access the internet?

          • 2. Re: Fabric Container Provision Status - MultiException while downloading bundle
            pratik_patel

            No. I have direct internet connection.

            • 3. Re: Fabric Container Provision Status - MultiException while downloading bundle
              pratik_patel

              I have also observed that when I execute 'fabric:create --clean root' I can see the container options but I don't see 'fab' option.

               

              When I tried to install one of the plugins using fab I got following error. Looks like MultiException is related to 'fab' ?

               

              org.apache.karaf.shell.console.MultiException: Error installing bundles:

              Unable to install bundle fab:mvn:org.fusesource.fabric/fabric-zookeeper-spring/7.1.0.fuse-047

              at org.apache.karaf.shell.console.MultiException.throwIf(MultiException.java:91)[15:org.apache.karaf.shell.console:2.3.0.fuse-71-047]

              at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:70)[38:org.apache.karaf.shell.osgi:2.3.0.fuse-71-047]

              at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[15:org.apache.karaf.shell.console:2.3.0.fuse-71-047]

              at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[15:org.apache.karaf.shell.console:2.3.0.fuse-71-047]

              at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[15:org.apache.karaf.shell.console:2.3.0.fuse-71-047]

              at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[15:org.apache.karaf.shell.console:2.3.0.fuse-71-047]

              at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[15:org.apache.karaf.shell.console:2.3.0.fuse-71-047]

              at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[15:org.apache.karaf.shell.console:2.3.0.fuse-71-047]

              at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[15:org.apache.karaf.shell.console:2.3.0.fuse-71-047]

              at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[15:org.apache.karaf.shell.console:2.3.0.fuse-71-047]

              at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[15:org.apache.karaf.shell.console:2.3.0.fuse-71-047]

              at org.apache.karaf.shell.console.jline.Console.run(Console.java:171)[15:org.apache.karaf.shell.console:2.3.0.fuse-71-047]

              at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:61)[15:org.apache.karaf.shell.console:2.3.0.fuse-71-047]

              Caused by: java.lang.Exception: Unable to install bundle fab:mvn:org.fusesource.fabric/fabric-zookeeper-spring/7.1.0.fuse-047

              at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:45)[38:org.apache.karaf.shell.osgi:2.3.0.fuse-71-047]

              ... 11 more

              Caused by: org.osgi.framework.BundleException: Unable to cache bundle: fab:mvn:org.fusesource.fabric/fabric-zookeeper-spring/7.1.0.fuse-047

              at org.apache.felix.framework.Felix.installBundle(Felix.java:2950)[org.apache.felix.framework-4.0.3.fuse-71-047.jar(inlove)

              at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)[org.apache.felix.framework-4.0.3.fuse-71-047.jar(inlove)

              at org.apache.karaf.shell.osgi.InstallBundle.doExecute(InstallBundle.java:43)[38:org.apache.karaf.shell.osgi:2.3.0.fuse-71-047]

              ... 11 more

              Caused by: java.net.MalformedURLException: Unknown protocol: fab

              at java.net.URL.(BundleArchive.java:153)[org.apache.felix.framework-4.0.3.fuse-71-047.jar(inlove)

              at org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:277)[org.apache.felix.framework-4.0.3.fuse-71-047.jar(inlove)

              at org.apache.felix.framework.Felix.installBundle(Felix.java:2946)[org.apache.felix.framework-4.0.3.fuse-71-047.jar(inlove)

              ... 13 more

              • 4. Re: Fabric Container Provision Status - MultiException while downloading bundle
                pratik_patel

                Here is the log from sub container camel-9090.

                 

                2013-01-17 18:59:50,293 | ERROR | agent-1-thread-1 | DeploymentAgent                  | e.fabric.agent.DeploymentAgent$1  241 | 67 - org.fusesource.fabric.fabric-agent - 7.1.0.fuse-047 | Unable to upd

                ate agent

                org.fusesource.fabric.agent.utils.MultiException: Error while downloading bundles

                        at org.fusesource.fabric.agent.DeploymentAgent.downloadBundles(DeploymentAgent.java:1023)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]

                        at org.fusesource.fabric.agent.DeploymentAgent.updateDeployment(DeploymentAgent.java:552)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]

                        at org.fusesource.fabric.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:428)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]

                        at org.fusesource.fabric.agent.DeploymentAgent$1.run(DeploymentAgent.java:238)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]

                        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_20]

                        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_20]

                        at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_20]

                        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_20]

                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_20]

                        at java.lang.Thread.run(Thread.java:619)[:1.6.0_20]

                Caused by: java.io.IOException: Error downloading mvn:org.fusesource.fabric/fabric-zookeeper-spring/99-master-SNAPSHOT

                        at org.fusesource.fabric.agent.download.AbstractDownloadTask.initIOException(AbstractDownloadTask.java:108)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]

                        at org.fusesource.fabric.agent.download.AbstractDownloadTask.run(AbstractDownloadTask.java:88)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]

                        ... 6 more

                Caused by: java.io.IOException: URL mvn:org.fusesource.fabric/fabric-zookeeper-spring/99-master-SNAPSHOT could not be resolved.

                        at org.fusesource.fabric.agent.download.MavenDownloadTask.download(MavenDownloadTask.java:123)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]

                        at org.fusesource.fabric.agent.download.AbstractDownloadTask.run(AbstractDownloadTask.java:77)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]

                • 5. Re: Fabric Container Provision Status - MultiException while downloading bundle
                  pratik_patel

                  Here is the log from subcontainer camel-9090. It shows URL could not be resolved.

                   

                  2013-01-17 18:59:50,293 | ERROR | agent-1-thread-1 | DeploymentAgent                  | e.fabric.agent.DeploymentAgent$1  241 | 67 - org.fusesource.fabric.fabric-agent - 7.1.0.fuse-047 | Unable to upd

                  ate agent

                  org.fusesource.fabric.agent.utils.MultiException: Error while downloading bundles

                          at org.fusesource.fabric.agent.DeploymentAgent.downloadBundles(DeploymentAgent.java:1023)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]

                          at org.fusesource.fabric.agent.DeploymentAgent.updateDeployment(DeploymentAgent.java:552)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]

                          at org.fusesource.fabric.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:428)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]

                          at org.fusesource.fabric.agent.DeploymentAgent$1.run(DeploymentAgent.java:238)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]

                          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_20]

                          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_20]

                          at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_20]

                          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_20]

                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_20]

                          at java.lang.Thread.run(Thread.java:619)[:1.6.0_20]

                  Caused by: java.io.IOException: Error downloading mvn:org.fusesource.fabric/fabric-zookeeper-spring/99-master-SNAPSHOT

                          at org.fusesource.fabric.agent.download.AbstractDownloadTask.initIOException(AbstractDownloadTask.java:108)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]

                          at org.fusesource.fabric.agent.download.AbstractDownloadTask.run(AbstractDownloadTask.java:88)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]

                          ... 6 more

                  Caused by: java.io.IOException: URL mvn:org.fusesource.fabric/fabric-zookeeper-spring/99-master-SNAPSHOT could not be resolved.

                          at org.fusesource.fabric.agent.download.MavenDownloadTask.download(MavenDownloadTask.java:123)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]

                          at org.fusesource.fabric.agent.download.AbstractDownloadTask.run(AbstractDownloadTask.java:77)[67:org.fusesource.fabric.fabric-agent:7.1.0.fuse-047]

                  • 6. Re: Fabric Container Provision Status - MultiException while downloading bundle
                    iocanel

                    I am not sure if this is intentional but you seem to try and use 99-master-SNAPSHOT version of the fabric stuff.

                     

                    I am not sure if that version is available to any of our snapshot repos, so unless you have built stuff yourself you won't be able to use this version.

                    • 7. Re: Fabric Container Provision Status - MultiException while downloading bundle
                      pratik_patel

                      Thanks for the response. I was trying existing load balancing example. I will check the pom files and make necessary changes to point to correct repositories.

                      • 8. Re: Fabric Container Provision Status - MultiException while downloading bundle
                        iocanel

                        To correct my previous post:

                         

                        The snapshot are publicly available. But the default repos of fabric do not contain them. So you could use them if you made sure that those mvn repos are added to the profile.