Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6C662200D48 for ; Wed, 29 Nov 2017 19:05:49 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 6B097160C04; Wed, 29 Nov 2017 18:05:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B2F9E160C02 for ; Wed, 29 Nov 2017 19:05:48 +0100 (CET) Received: (qmail 78602 invoked by uid 500); 29 Nov 2017 18:05:47 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 78590 invoked by uid 99); 29 Nov 2017 18:05:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Nov 2017 18:05:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id A61951A0E3A for ; Wed, 29 Nov 2017 18:05:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.642 X-Spam-Level: *** X-Spam-Status: No, score=3.642 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, HTML_OBFUSCATE_10_20=1.162, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 3X5QPAttKmsD for ; Wed, 29 Nov 2017 18:05:45 +0000 (UTC) Received: from mail-oi0-f68.google.com (mail-oi0-f68.google.com [209.85.218.68]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id E32C15F477 for ; Wed, 29 Nov 2017 18:05:44 +0000 (UTC) Received: by mail-oi0-f68.google.com with SMTP id t78so3007524oie.8 for ; Wed, 29 Nov 2017 10:05:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=zej/3a7XS73VvglxyPJTzrbQUHiPGnfs+DToO2cg7sg=; b=EzQ32JWa4pU4Vr7DHcV8OP+RvBEIkDJepaE4WGxH6JnrvV/OC5+XReSUztnDrmRK97 9XvuIE0P2BAlzqfz6a6H2cO0Ns0S5oy05Xmp253ISHjWma9wgs8mAo9IwiUi7HpuET/S w3cYw4uCEPH5Rb00LTSaFYivdq0om9fWMPx4idjMU7o/zoL5JsWhydGKZT/LruiRKK3p NRAX41y5/rP2oWK1+OorXwfyPdYttcOdY1xG6TOEaGfbKsVwYnvVnyZHVo1KMkwaW4AO qWykR+ti8grTjrMNlbtWUvP6vRw+AAN/YTd30ZAenmHG669Q6u/A49Budy7OXNo15hif yCMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=zej/3a7XS73VvglxyPJTzrbQUHiPGnfs+DToO2cg7sg=; b=Q8sM4BAdB4g7zJaWXz2OQVUi47+CTxFgs1Hzd+kyv5LYkm0Cbu9ZUaGuQbmT9C3nwF zyBvD0nbLhYA4Mtih0QVexDzJtDOY7OyBC5y7FE/Kw4UZxAM6p76QLbGSPW7I+FphrNs Z2I68eBJuCfPI77UbJXbyAuFDWwRL6ynrIMWe3n0/VDpfs0sF7LksaFOxFOL7DEZWJ0q 07vyn6BJyna8q4Cd5gzXtJPYisrcwteV6IH30Z2b8QjT1dZj4fx8qHjlhjCW5Z5qZuPq 8dULTnTpojb/VbqUdN5WfiRC62KejRWzWBz/+Egu6l5WW3uYJ3e1zMhlxxRoSAzmg3wp m2Wg== X-Gm-Message-State: AJaThX4QFC2AkL4kGGX7XPKDvjxOBwNnyCryMzFaZo8b4T02AYYLOpFu 6KqjBYnJ0/q9jxyEgieNMw9Ijr3/emlj+3SpOaejgg== X-Google-Smtp-Source: AGs4zMar/psIM5Bb0CVTTilyek2Ck7IWCPjKSiQDSWTi8mHwSyu7s8ZYhTA4sltVRpofa4/u9fbO1tnFowN7+03W7z0= X-Received: by 10.202.77.203 with SMTP id a194mr2583280oib.144.1511978744101; Wed, 29 Nov 2017 10:05:44 -0800 (PST) MIME-Version: 1.0 Sender: uimaee@gmail.com Received: by 10.157.54.219 with HTTP; Wed, 29 Nov 2017 10:05:43 -0800 (PST) In-Reply-To: <0b675670-bb4c-361e-40c7-e19fdd3ed242@em.uni-frankfurt.de> References: <0b675670-bb4c-361e-40c7-e19fdd3ed242@em.uni-frankfurt.de> From: Jaroslaw Cwiklik Date: Wed, 29 Nov 2017 13:05:43 -0500 X-Google-Sender-Auth: r9SVWstcCkC-wqKwbICg4h3U1gc Message-ID: Subject: Re: UIMA AS - ResourceInitializationException To: user@uima.apache.org Content-Type: multipart/alternative; boundary="001a1134f648f34816055f22fb95" archived-at: Wed, 29 Nov 2017 18:05:49 -0000 --001a1134f648f34816055f22fb95 Content-Type: text/plain; charset="UTF-8" Try adding a callback listener to the client via public void addStatusCallbackListener(UimaAsBaseCallbackListener aListener) There is try ... catch block in the client code } catch (ResourceInitializationException e) { state = ClientState.FAILED; notifyOnInitializationFailure(e); throw e; } which should notify your code of the problem. Are you deploying your services in the same process as the application? Or are these services deployed in their own processes? Jerry On Wed, Nov 29, 2017 at 12:00 PM, Wahed Hemati wrote: > Hi, > > i am trying to run a pipeline of 4 annotators in UIMA AS. For this i use > the BaseUIMAAsynchronousEngine_impl. The 4 annotators run as services. > > I am creating a scenario, where i shut down one of these services. When i > try to run the same pipeline with the 4 annotators, obviously the pipeline > can not be initialized, because one of the delegates is not reachable. > > I get the following exception: > > org.apache.uima.resource.ResourceInitializationException > at org.apache.uima.aae.controller.BaseAnalysisEngineController. > stop(BaseAnalysisEngineController.java:2001) > at org.apache.uima.aae.controller.BaseAnalysisEngineController. > stop(BaseAnalysisEngineController.java:1898) > at org.apache.uima.aae.controller.AggregateAnalysisEngineContro > ller_impl.stop(AggregateAnalysisEngineController_impl.java:3272) > at org.apache.uima.aae.controller.BaseAnalysisEngineController. > terminate(BaseAnalysisEngineController.java:2184) > at org.apache.uima.aae.controller.BaseAnalysisEngineController. > terminate(BaseAnalysisEngineController.java:2150) > at org.apache.uima.aae.error.handler.GetMetaErrorHandler.handle > Error(GetMetaErrorHandler.java:104) > at org.apache.uima.aae.error.ErrorHandlerChain.handle(ErrorHand > lerChain.java:57) > at org.apache.uima.aae.delegate.ControllerDelegate.handleError( > ControllerDelegate.java:61) > at org.apache.uima.aae.delegate.Delegate$2.run(Delegate.java:839) > at java.util.TimerThread.mainLoop(Timer.java:555) > at java.util.TimerThread.run(Timer.java:505) > > > The strange part is, that i cant get can not catch this exception in my > client application. My client application just shuts down after this > exception. > > What is the best approach to catch this exception. > > Is it possible to first "ping" each delegate, to see if its alive? > > > -Best > > Wahed > > --001a1134f648f34816055f22fb95--