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

io.fabric8.common.util.MultiException when deploying more broker instances in fabric

    XMLWordPrintable

Details

    • % %
    • Hide
      1. Unpack and start fuse
      2. then in console deploy brokers:
        fabric:create --wait-for-provisioning
        fabric:profile-create --parents mq-replicated mq-replicated-leveldb
        mq-create --no-ssl --create-container replicatedbroker --replicas 3 --profile mq-replicated-leveldb --group replicated-db-group hq-replicated-broker
        
      3. Check if brokers successfuly started.
      Show
      Unpack and start fuse then in console deploy brokers: fabric:create --wait- for -provisioning fabric:profile-create --parents mq-replicated mq-replicated-leveldb mq-create --no-ssl --create-container replicatedbroker --replicas 3 --profile mq-replicated-leveldb --group replicated-db-group hq-replicated-broker Check if brokers successfuly started.

    Description

      Some brokers fails to start when trying to deploy more activemq brokers using fabric.

      Behaviour of this issue is quite random. Sometimes all brokers starts correctly, sometimes some of them fails.

      When broker fails to start the following exception is in fuse.log:

      io.fabric8.common.util.MultiException: Error restarting bundles
      	at io.fabric8.agent.service.Deployer.deploy(Deployer.java:810)[89:io.fabric8.fabric-agent:1.2.0.redhat-047]
      	at io.fabric8.agent.service.Agent.provision(Agent.java:327)[89:io.fabric8.fabric-agent:1.2.0.redhat-047]
      	at io.fabric8.agent.service.Agent.provision(Agent.java:187)[89:io.fabric8.fabric-agent:1.2.0.redhat-047]
      	at io.fabric8.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:564)[89:io.fabric8.fabric-agent:1.2.0.redhat-047]
      	at io.fabric8.agent.DeploymentAgent$2.run(DeploymentAgent.java:215)[89:io.fabric8.fabric-agent:1.2.0.redhat-047]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_71]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_71]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_71]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_71]
      	at java.lang.Thread.run(Thread.java:745)[:1.7.0_71]
      Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle io.fabric8.mq.mq-fabric [103]: Unable to resolve 103.0: missing requirement [103.0] osgi.wiring.package; (&(osgi.wiring.package=io.fabric8.mq.fabric.discovery)(version>=1.2.0)(!(version>=1.3.0))) [caused by: Unable to resolve 102.0: missing requirement [102.0] osgi.wiring.host; (&(osgi.wiring.host=org.apache.activemq.activemq-osgi)(bundle-version>=0.0.0)) [caused by: Unable to resolve 110.0: missing requirement [110.0] osgi.wiring.package; (osgi.wiring.package=javax.transaction)]]
      	at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:976)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:963)[org.apache.felix.framework-4.4.1.jar:]
      	at io.fabric8.agent.service.Agent$BaseDeployCallback.startBundle(Agent.java:421)[89:io.fabric8.fabric-agent:1.2.0.redhat-047]
      	at io.fabric8.agent.service.Deployer.deploy(Deployer.java:802)[89:io.fabric8.fabric-agent:1.2.0.redhat-047]
      	... 9 more
      Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.activemq.activemq-osgi [110]: Unable to resolve 110.0: missing requirement [110.0] osgi.wiring.package; (osgi.wiring.package=javax.transaction)
      	at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:976)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:963)[org.apache.felix.framework-4.4.1.jar:]
      	at io.fabric8.agent.service.Agent$BaseDeployCallback.startBundle(Agent.java:421)[89:io.fabric8.fabric-agent:1.2.0.redhat-047]
      	at io.fabric8.agent.service.Deployer.deploy(Deployer.java:802)[89:io.fabric8.fabric-agent:1.2.0.redhat-047]
      	... 9 more
      Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle activemq-karaf [98]: Unable to resolve 98.0: missing requirement [98.0] osgi.wiring.package; (osgi.wiring.package=org.apache.activemq.console) [caused by: Unable to resolve 110.0: missing requirement [110.0] osgi.wiring.package; (osgi.wiring.package=javax.transaction)]
      	at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:976)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:963)[org.apache.felix.framework-4.4.1.jar:]
      	at io.fabric8.agent.service.Agent$BaseDeployCallback.startBundle(Agent.java:421)[89:io.fabric8.fabric-agent:1.2.0.redhat-047]
      	at io.fabric8.agent.service.Deployer.deploy(Deployer.java:802)[89:io.fabric8.fabric-agent:1.2.0.redhat-047]
      	... 9 more
      

      Attachments

        1. amq-containers-start-test.zip
          94 kB
        2. broker-nossl-c0.log
          201 kB
        3. fuse.log
          277 kB
        4. karaf-no-cxf.log
          65 kB

        Issue Links

          Activity

            People

              g_nodet Guillaume Nodet (Inactive)
              knetl.j@gmail.com Jakub Knetl (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: