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

Sometimes (rare) NullPointerException on broker startup and mq replicated container hangs on finalizing (stopping bundles)

    XMLWordPrintable

Details

    • % %
    • Hide
      1. start ssh server
      2. Start Fuse and create fabric, and wait for provision.
      3. Run commands:
        mq-create --no-ssl --parent-profile=mq-replicated --group a broker-nossl-b
        
        profile-edit --system org.apache.activemq.leveldb.test=true mq-broker-a.broker-nossl-b
        
        fabric:container-create-ssh --user USER --host 127.0.0.1  --profile mq-broker-a.broker-nossl-b --password PASSWORD -new-user admin --new-user-password admin  broker-nossl-b-c0
        
        fabric:container-create-ssh --user USER --host 127.0.0.1  --profile mq-broker-a.broker-nossl-b --password PASSWORD -new-user admin --new-user-password admin  broker-nossl-b-c1
        
        fabric:container-create-ssh --user USER --host 127.0.0.1  --profile mq-broker-a.broker-nossl-b --password PASSWORD -new-user admin --new-user-password admin  broker-nossl-b-c2
        
        
      Show
      start ssh server Start Fuse and create fabric, and wait for provision. Run commands: mq-create --no-ssl --parent-profile=mq-replicated --group a broker-nossl-b profile-edit --system org.apache.activemq.leveldb.test= true mq-broker-a.broker-nossl-b fabric:container-create-ssh --user USER --host 127.0.0.1 --profile mq-broker-a.broker-nossl-b --password PASSWORD - new -user admin -- new -user-password admin broker-nossl-b-c0 fabric:container-create-ssh --user USER --host 127.0.0.1 --profile mq-broker-a.broker-nossl-b --password PASSWORD - new -user admin -- new -user-password admin broker-nossl-b-c1 fabric:container-create-ssh --user USER --host 127.0.0.1 --profile mq-broker-a.broker-nossl-b --password PASSWORD - new -user admin -- new -user-password admin broker-nossl-b-c2

    Description

      Out of 3 ssh mq replicated containers sometimes the last one hangs on finalizing (stopping bundles) and the status doesn't change to started.
      In containers log the following is repeated:

      2015-03-27 08:51:15,584 | INFO  | pool-20-thread-1 | ActiveMQServiceFactory           | 174 - io.fabric8.mq.mq-fabric - 1.2.0.redhat-101 | Broker broker-nossl failed to start.  Will try again in 10 seconds
      2015-03-27 08:51:15,584 | ERROR | pool-20-thread-1 | ActiveMQServiceFactory           | 174 - io.fabric8.mq.mq-fabric - 1.2.0.redhat-101 | Exception on start: null
      java.lang.NullPointerException
      	at io.fabric8.api.gravia.ServiceLocator.getSystemContext(ServiceLocator.java:50)[63:io.fabric8.fabric-api:1.2.0.redhat-101]
      	at io.fabric8.api.gravia.ServiceLocator.getRequiredService(ServiceLocator.java:67)[63:io.fabric8.fabric-api:1.2.0.redhat-101]
      	at io.fabric8.api.ProfileBuilders$Factory.getProfileBuilders(ProfileBuilders.java:54)[63:io.fabric8.fabric-api:1.2.0.redhat-101]
      	at io.fabric8.api.ProfileBuilder$Factory.getProfileBuilders(ProfileBuilder.java:110)[63:io.fabric8.fabric-api:1.2.0.redhat-101]
      	at io.fabric8.api.ProfileBuilder$Factory.create(ProfileBuilder.java:98)[63:io.fabric8.fabric-api:1.2.0.redhat-101]
      	at io.fabric8.internal.ContainerImpl.getContainerProfile(ContainerImpl.java:764)[64:io.fabric8.fabric-core:1.2.0.redhat-101]
      	at io.fabric8.internal.ContainerImpl.getOverlayProfile(ContainerImpl.java:306)[64:io.fabric8.fabric-core:1.2.0.redhat-101]
      	at io.fabric8.service.ProfileUrlHandler$Connection.getInputStream(ProfileUrlHandler.java:112)[64:io.fabric8.fabric-core:1.2.0.redhat-101]
      	at org.springframework.core.io.UrlResource.getInputStream(UrlResource.java:167)[193:org.apache.servicemix.bundles.spring-core:3.2.12.RELEASE_1]
      	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:329)[190:org.apache.servicemix.bundles.spring-beans:3.2.12.RELEASE_1]
      	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)[190:org.apache.servicemix.bundles.spring-beans:3.2.12.RELEASE_1]
      	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:111)[199:org.apache.xbean.spring:3.18.0]
      	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:104)[199:org.apache.xbean.spring:3.18.0]
      	at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[191:org.apache.servicemix.bundles.spring-context:3.2.12.RELEASE_1]
      	at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:539)[191:org.apache.servicemix.bundles.spring-context:3.2.12.RELEASE_1]
      	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)[191:org.apache.servicemix.bundles.spring-context:3.2.12.RELEASE_1]
      	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)[199:org.apache.xbean.spring:3.18.0]
      	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)[199:org.apache.xbean.spring:3.18.0]
      	at io.fabric8.mq.fabric.ActiveMQServiceFactory$1.<init>(ActiveMQServiceFactory.java:153)[174:io.fabric8.mq.mq-fabric:1.2.0.redhat-101]
      	at io.fabric8.mq.fabric.ActiveMQServiceFactory.createBroker(ActiveMQServiceFactory.java:153)[174:io.fabric8.mq.mq-fabric:1.2.0.redhat-101]
      	at io.fabric8.mq.fabric.ActiveMQServiceFactory$ClusteredConfiguration.doStart(ActiveMQServiceFactory.java:488)[174:io.fabric8.mq.mq-fabric:1.2.0.redhat-101]
      	at io.fabric8.mq.fabric.ActiveMQServiceFactory$ClusteredConfiguration.access$400(ActiveMQServiceFactory.java:312)[174:io.fabric8.mq.mq-fabric:1.2.0.redhat-101]
      	at io.fabric8.mq.fabric.ActiveMQServiceFactory$ClusteredConfiguration$1.run(ActiveMQServiceFactory.java:443)[174:io.fabric8.mq.mq-fabric:1.2.0.redhat-101]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_45]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_45]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_45]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_45]
      	at java.lang.Thread.run(Thread.java:744)[:1.7.0_45]
      

      Attachments

        Activity

          People

            g_nodet Guillaume Nodet (Inactive)
            emedvede Elena Medvedeva (Inactive)
            Tomas Turek Tomas Turek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: