From dev-return-13514-archive-asf-public=cust-asf.ponee.io@karaf.apache.org Mon Mar 4 10:27:08 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id A605D18067E for ; Mon, 4 Mar 2019 11:27:07 +0100 (CET) Received: (qmail 30745 invoked by uid 500); 4 Mar 2019 10:27:06 -0000 Mailing-List: contact dev-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list dev@karaf.apache.org Delivered-To: moderator for dev@karaf.apache.org Received: (qmail 3522 invoked by uid 99); 4 Mar 2019 07:27:53 -0000 X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.999 X-Spam-Level: * X-Spam-Status: No, score=1.999 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=disabled From: Vikram Darsi To: "dev@karaf.apache.org" Subject: How to resolve ServiceUnavailableException Thread-Topic: How to resolve ServiceUnavailableException Thread-Index: AdTSVHLOEc8hRntKRuyF5bH09bip4A== Date: Mon, 4 Mar 2019 07:27:42 +0000 Message-ID: <5caa2b76452d4dff82e142d1dcb572d9@advaoptical.com> Accept-Language: en-IN, de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.20.1.231] Content-Type: multipart/alternative; boundary="_000_5caa2b76452d4dff82e142d1dcb572d9advaopticalcom_" MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-03-04_03:,, signatures=0 --_000_5caa2b76452d4dff82e142d1dcb572d9advaopticalcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Team Our application is using Blueprint to inject the services exposed by a bean= to the other bean and in some application runs, we see below exceptions. A= fter browsing online articles, the highlighted exception indicates that the backend service implementation is not available in the OSGi registry. Just wondering how a bundle can be in active state when the backend impleme= ntation(i.e., dependent service) is not available during Karaf start up? Is there a case, the backend implementation can be un-registered from OSGi = registry without stopping the bundle exposed the service during runtime? As= we are sure that none of the bundles is stopped. Are there any recovery mechanisms? Is it correct to attempt reading the ser= vice from the OSGi registry for a definite number of times? Bundle ordering= issues leads to these exceptions? We are assuming the ordering will be taken care by the blueprint (If a depe= ndent service is not available, it waits till 5 minutes(default), post whic= h it throws timeout exceptions, we do not see any timeout exceptions during= start up) 2017-09-19 11:41:53,886 | ERROR | -dispatcher-9722 | DataTreeChangeListener= Actor | 212 - org.opendaylight.controller.sal-distributed-datastore - = 1.4.3.Boron-SR3 | Error notifying listener org.opendaylight.controller.md.s= al.binding.impl.BindingDOMDataTreeChangeListenerAdapter@72586e4e org.osgi.service.blueprint.container.ServiceUnavailableException: The Bluep= rint container is being or has been destroyed: (objectClass=3Dorg.opendayli= ght.controller.md.sal.binding.api.NotificationPublishService) at org.apache.aries.blueprint.container.ReferenceRecipe.get= Service(ReferenceRecipe.java:241)[15:org.apache.aries.blueprint.core:1.6.1] at org.apache.aries.blueprint.container.ReferenceRecipe.acc= ess$000(ReferenceRecipe.java:56)[15:org.apache.aries.blueprint.core:1.6.1] at org.apache.aries.blueprint.container.ReferenceRecipe$Ser= viceDispatcher.call(ReferenceRecipe.java:306)[15:org.apache.aries.blueprint= .core:1.6.1] at Proxy45e3a4cb_f3e4_4016_8f9f_bd0a4c6df5b8.putNotificatio= n(Unknown Source)[:] at com.adva.ensemble.controller.eventmgr.impl.EventHistoryT= reeChangeListner.onDataTreeChanged(EventHistoryTreeChangeListner.java:57)[3= 92:com.adva.ensemble.controller.event-mgr-impl:17.1.1.339] at org.opendaylight.controller.md.sal.binding.impl.BindingD= OMDataTreeChangeListenerAdapter.onDataTreeChanged(BindingDOMDataTreeChangeL= istenerAdapter.java:41)[182:org.opendaylight.controller.sal-binding-broker-= impl:1.4.3.Boron-SR3] at org.opendaylight.controller.cluster.datastore.DataTreeCh= angeListenerActor.dataChanged(DataTreeChangeListenerActor.java:58)[212:org.= opendaylight.controller.sal-distributed-datastore:1.4.3.Boron-SR3] at org.opendaylight.controller.cluster.datastore.DataTreeCh= angeListenerActor.handleReceive(DataTreeChangeListenerActor.java:40)[212:or= g.opendaylight.controller.sal-distributed-datastore:1.4.3.Boron-SR3] at org.opendaylight.controller.cluster.common.actor.Abstrac= tUntypedActor.onReceive(AbstractUntypedActor.java:26)[206:org.opendaylight.= controller.sal-clustering-commons:1.4.3.Boron-SR3] at akka.actor.UntypedActor$$anonfun$receive$1.applyOrElse(U= ntypedActor.scala:165)[194:com.typesafe.akka.actor:2.4.7] at akka.actor.Actor$class.aroundReceive(Actor.scala:484)[19= 4:com.typesafe.akka.actor:2.4.7] at akka.actor.UntypedActor.aroundReceive(UntypedActor.scala= :95)[194:com.typesafe.akka.actor:2.4.7] at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)= [194:com.typesafe.akka.actor:2.4.7] at akka.actor.ActorCell.invoke(ActorCell.scala:495)[194:com= .typesafe.akka.actor:2.4.7] at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)[= 194:com.typesafe.akka.actor:2.4.7] at akka.dispatch.Mailbox.run(Mailbox.scala:224)[194:com.typ= esafe.akka.actor:2.4.7] at akka.dispatch.Mailbox.exec(Mailbox.scala:234)[194:com.ty= pesafe.akka.actor:2.4.7] at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTa= sk.java:260)[190:org.scala-lang.scala-library:2.11.8.v20160304-115712-1706a= 37eb8] at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask= (ForkJoinPool.java:1339)[190:org.scala-lang.scala-library:2.11.8.v20160304-= 115712-1706a37eb8] at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoi= nPool.java:1979)[190:org.scala-lang.scala-library:2.11.8.v20160304-115712-1= 706a37eb8] at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJ= oinWorkerThread.java:107)[190:org.scala-lang.scala-library:2.11.8.v20160304= -115712-1706a37eb8] Let me know if you need more information. Thanks in advance. Regards Vikram --_000_5caa2b76452d4dff82e142d1dcb572d9advaopticalcom_--