Hi Sergey,

Could you quick look in following stack trace, occurs sometimes by startup CXF 
client in OSGi Karaf container:

2018-02-09 04:02:11,452 WARN    
[{{bundle.name,org.apache.cxf.cxf-rt-transports-http}{bundle.version,3.1.7}{bundle.id,252}}]
    [null]  org.apache.cxf.transport.servlet.ServletController      Can't find 
the the request for http://172.16.4.38/basit/services/1/server-availability's 
Observer       
2018-02-09 04:02:11,502 ERROR   
[{{bundle.name,org.apache.cxf.cxf-rt-rs-client}{bundle.version,3.1.7}{bundle.id,246}}]
  [null]  org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean      
java.lang.NullPointerException : null   
2018-02-09 04:02:11,503 WARN    
[{{bundle.name,org.apache.aries.blueprint.core}{bundle.version,1.6.2}{bundle.id,16}}]
   [null]  org.apache.aries.blueprint.container.BeanRecipe Object to be 
destroyed is not an instance of UnwrapperedBeanHolder, type: null  
2018-02-09 04:02:11,504 INFO    
[{{bundle.name,org.apache.camel.camel-core}{bundle.version,2.17.3}{bundle.id,199}}]
     [null]  org.apache.camel.blueprint.BlueprintCamelContext        Apache 
Camel 2.17.3 (CamelContext: schedulingCamelContext) is shutting down     
2018-02-09 04:02:11,511 INFO    
[{{bundle.name,org.apache.camel.camel-core}{bundle.version,2.17.3}{bundle.id,199}}]
     [null]  org.apache.camel.blueprint.BlueprintCamelContext        Apache 
Camel 2.17.3 (CamelContext: schedulingCamelContext) uptime 0.236 seconds 
2018-02-09 04:02:11,511 INFO    
[{{bundle.name,org.apache.camel.camel-core}{bundle.version,2.17.3}{bundle.id,199}}]
     [null]  org.apache.camel.blueprint.BlueprintCamelContext        Apache 
Camel 2.17.3 (CamelContext: schedulingCamelContext) is shutdown in 0.007 
seconds 
2018-02-09 04:02:11,518 ERROR   
[{{bundle.name,org.apache.aries.blueprint.core}{bundle.version,1.6.2}{bundle.id,16}}]
   [null]  org.apache.aries.blueprint.container.BlueprintContainerImpl     
Unable to start blueprint container for bundle 
de.conrad.ccp.basit.core-domain-bee/10.13.3      
org.osgi.service.blueprint.container.ComponentDefinitionException: Error when 
instantiating bean ikaEventServiceConnector of class 
de.conrad.ccp.basit.bee.core.ika.impl.IkaEventServiceConnectorImpl
        at 
org.apache.aries.blueprint.container.BeanRecipe.wrapAsCompDefEx(BeanRecipe.java:361)[16:org.apache.aries.blueprint.core:1.6.2]
        at 
org.apache.aries.blueprint.container.BeanRecipe.getInstanceFromType(BeanRecipe.java:351)[16:org.apache.aries.blueprint.core:1.6.2]
        at 
org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:282)[16:org.apache.aries.blueprint.core:1.6.2]
        at 
org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:830)[16:org.apache.aries.blueprint.core:1.6.2]
        at 
org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:811)[16:org.apache.aries.blueprint.core:1.6.2]
        at 
org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)[16:org.apache.aries.blueprint.core:1.6.2]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_151]
        at 
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)[16:org.apache.aries.blueprint.core:1.6.2]
        at 
org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:255)[16:org.apache.aries.blueprint.core:1.6.2]
        at 
org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:186)[16:org.apache.aries.blueprint.core:1.6.2]
        at 
org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:724)[16:org.apache.aries.blueprint.core:1.6.2]
        at 
org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:411)[16:org.apache.aries.blueprint.core:1.6.2]
        at 
org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:276)[16:org.apache.aries.blueprint.core:1.6.2]
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_151]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_151]
        at 
org.apache.aries.blueprint.container.ExecutorServiceWrapper.run(ExecutorServiceWrapper.java:106)[16:org.apache.aries.blueprint.core:1.6.2]
        at 
org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48)[16:org.apache.aries.blueprint.core:1.6.2]
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_151]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_151]
        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[:1.8.0_151]
        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.8.0_151]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[:1.8.0_151]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)[:1.8.0_151]
        at java.lang.Thread.run(Thread.java:748)[:1.8.0_151]
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
        at 
org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.createWebClient(JAXRSClientFactoryBean.java:233)
        at 
org.apache.cxf.jaxrs.client.WebClient.create(WebClient.java:176)[246:org.apache.cxf.cxf-rt-rs-client:3.1.7]
        at 
org.apache.cxf.jaxrs.client.WebClient.create(WebClient.java:136)[246:org.apache.cxf.cxf-rt-rs-client:3.1.7]
        at 
de.conrad.ccp.basit.bee.core.ika.impl.IkaEventServiceConnectorImpl.createClient(IkaEventServiceConnectorImpl.java:83)[126:de.conrad.ccp.basit.core-domain-bee:10.13.3]
        at 
de.conrad.ccp.basit.bee.core.ika.impl.IkaEventServiceConnectorImpl.<init>(IkaEventServiceConnectorImpl.java:41)[126:de.conrad.ccp.basit.core-domain-bee:10.13.3]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)[:1.8.0_151]
        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)[:1.8.0_151]
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[:1.8.0_151]
        at 
java.lang.reflect.Constructor.newInstance(Constructor.java:423)[:1.8.0_151]
        at 
org.apache.aries.blueprint.utils.ReflectionUtils.newInstance(ReflectionUtils.java:331)[16:org.apache.aries.blueprint.core:1.6.2]
        at 
org.apache.aries.blueprint.container.BeanRecipe.newInstance(BeanRecipe.java:984)[16:org.apache.aries.blueprint.core:1.6.2]
        at 
org.apache.aries.blueprint.container.BeanRecipe.getInstanceFromType(BeanRecipe.java:349)[16:org.apache.aries.blueprint.core:1.6.2]
        ... 22 more
Caused by: java.lang.NullPointerException
        at 
org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.checkBindingFactory(AbstractJAXRSFactoryBean.java:104)[240:org.apache.cxf.cxf-rt-frontend-jaxrs:3.1.7]
        at 
org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.getBus(AbstractJAXRSFactoryBean.java:86)[240:org.apache.cxf.cxf-rt-frontend-jaxrs:3.1.7]
        at 
org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.createEndpointInfo(AbstractJAXRSFactoryBean.java:130)[240:org.apache.cxf.cxf-rt-frontend-jaxrs:3.1.7]
        at 
org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.createEndpoint(AbstractJAXRSFactoryBean.java:219)[240:org.apache.cxf.cxf-rt-frontend-jaxrs:3.1.7]
        at 
org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.createWebClient(JAXRSClientFactoryBean.java:220)[246:org.apache.cxf.cxf-rt-rs-client:3.1.7]
        ... 33 more

It looks for me like startup race condition issue, any clue how we can 
workaround this?

Regards,
Andrei.

Reply via email to