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 74449200B88 for ; Thu, 22 Sep 2016 17:15:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 72D29160AAD; Thu, 22 Sep 2016 15:15:59 +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 92CFD160AA9 for ; Thu, 22 Sep 2016 17:15:58 +0200 (CEST) Received: (qmail 81560 invoked by uid 500); 22 Sep 2016 15:15:57 -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 81548 invoked by uid 99); 22 Sep 2016 15:15:57 -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; Thu, 22 Sep 2016 15:15:57 +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 05D801A0342 for ; Thu, 22 Sep 2016 15:15:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.18 X-Spam-Level: *** X-Spam-Status: No, score=3.18 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, KAM_BADIPHTTP=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-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 AQCkT5Xa2iJ3 for ; Thu, 22 Sep 2016 15:15:54 +0000 (UTC) Received: from mail-lf0-f48.google.com (mail-lf0-f48.google.com [209.85.215.48]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 545B95F5CD for ; Thu, 22 Sep 2016 15:15:54 +0000 (UTC) Received: by mail-lf0-f48.google.com with SMTP id l131so71386854lfl.2 for ; Thu, 22 Sep 2016 08:15:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=CHXLRWrn6UugdIy53NEu10HkqPVguihyr1Hf7ehOuGg=; b=fDGXl0Ih1b1jqIvbTzYImwt1yBHKi+MztP3nwGABxDq1KsKIwD6T8eDfHjBaLAfFG1 CO6gCJVSNiNzLsJDIxx8RsCPZQ91hsQUHf6FeMOPW4bgkTHe8aWn2ZskYTVzFosX9ovR EhiOM4NFjm204iyb1pqk4G2iLwlwbHaINjFjS0OwCkQ39PReYAF5paeniP9dqw0iOngj V0TdDwKgzomGmzKnCtLzi4DJqF2hwDGb5wbhV8Rl51dJ1D3ac6sa2ipid4m/3jbG3iyN Bmc2M7ltipRWNg6fgyahxYxANyMNwjZ8mV2R4qWONWw+h+0Fpk6hqfIUDGTXVT4HMHD4 RDYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=CHXLRWrn6UugdIy53NEu10HkqPVguihyr1Hf7ehOuGg=; b=j+SRihWhk3OGT0CSTN4f6dcn/P7R7rsf/ju9Qp1qhELDLP8g5ycE6PDDnL7QOVhsz+ o//hl73VskbnWDe1s2Nw0BxL0sC+SKbWrLyVwo78TXLpVmJo/AEGDWitd3I99sqYbiSj jWVl394DUOr+tNrt2inaFmVl57d0Rw/pf4V/GILmlhrK54xlvVRhRnVAe9ho86WjSYay uVBuyEnIagnnzc9jjHwP069gOYkYPR2Ko8aWlfvN12b4rOQUcBFEHJM7IQoMmZq6lY2Z FMkOMN6pTytEdALe7E2baRkAicZwxr4aLXbtZEIO6jaUbPJiIrs2e+7gVHOE5iS8FW/A tGRQ== X-Gm-Message-State: AE9vXwMRIt9bkFGfPlrBQyn/lVxNLx+GzGV5qPABglrzNed+eSF2yj0+PAxoE8wrC1JJRmkKn4gNLHVjYdZxaQ== X-Received: by 10.46.5.9 with SMTP id 9mr1172940ljf.17.1474557352689; Thu, 22 Sep 2016 08:15:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.1.198 with HTTP; Thu, 22 Sep 2016 08:15:51 -0700 (PDT) In-Reply-To: References: From: Jaroslaw Cwiklik Date: Thu, 22 Sep 2016 11:15:51 -0400 Message-ID: Subject: Re: NullPointerException when RunRemoteAsyncAE tries to unload (UIMA AS and UIMA C++) To: user@uima.apache.org Content-Type: multipart/alternative; boundary=001a114a69ea354498053d1a2320 archived-at: Thu, 22 Sep 2016 15:15:59 -0000 --001a114a69ea354498053d1a2320 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable This warning WARN Transport - Transport Connection to: tcp:// 127.0.0.1:56261 failed: java.io.EOFException is from brokers log or console I suspect. It just means that the broker lost a connection to a client. Looks like the client went away without closing a connection. This is probably a side-effect of NPE. Is the NPE repeatable? Does it happen each time you run this test? Looking for a hint if there is a race condition in the UIMA-AS code. On Thu, Sep 22, 2016 at 10:54 AM, David Fox wrote: > I=E2=80=99m using the UIMA C++ framework 2.4.0 (32-bit) on linux (CentOS = 6.5), and > following the instructions https://uima.apache.org/d/ > uimacpp-2.4.0/docs/overview_and_setup.html. I=E2=80=99ve successfully bu= ilt > DaveDetector and run it with the standalone C++ pipeline (runAECpp) and > within a Java pipeline via JNI. I=E2=80=99ve now installed UIMA AS 2.8.1= so I can > follow the instructions under 2.3 Testing Interoperability with UIMA AS > > > cd $UIMACPP_HOME/examples/tutorial > runRemoteAsyncAE.sh tcp://localhost:61616 MeetingAnnotator \ > -d descriptors/Deploy_MeetingAnnotator.xml > > > I get a NullPointerException and a transport warning about a > java.io.EOFException > > > runRemoteAsyncAE.sh tcp://localhost:61616 MeetingAnnotator -d > descriptors/Deploy_MeetingAnnotator.xml -o `pwd`/out > > Attempting to deploy descriptors/Deploy_MeetingAnnotator.xml ... > > Waiting for Uima C++ service to connect... > > Waiting for Uima C++ service to connect... > > Waiting for Uima C++ service to report init status... > > deployCppService.cpp91 Start receiving messages > > > Startinging GetMetaData instance > > > Starting Annotator instance 0 > > > deployCppService.cpp UIMA C++ Service MeetingAnnotator at > tcp://localhost:61616 Ready to process... > > > Uima C++ service at MeetingAnnotator Ready to process... > > UIMA AS Service Initialization Complete > > .Completed 1 documents > > Time Elapsed : 2184 ms > > java.lang.NullPointerException > > at org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngine_ > impl.undeploy(BaseUIMAAsynchronousEngine_impl.java:964) > > at org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngine_ > impl.undeploy(BaseUIMAAsynchronousEngine_impl.java:906) > > at org.apache.uima.examples.as.RunRemoteAsyncAE.run( > RunRemoteAsyncAE.java:260) > > at org.apache.uima.examples.as.RunRemoteAsyncAE.main( > RunRemoteAsyncAE.java:314) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at sun.reflect.NativeMethodAccessorImpl.invoke( > NativeMethodAccessorImpl.java:62) > > at sun.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:43) > > at java.lang.reflect.Method.invoke(Method.java:497) > > at org.apache.uima.bootstrap.UimaBootstrap.main( > UimaBootstrap.java:87) > > WARN Transport - Transport Connection to: tcp:// > 127.0.0.1:56221 failed: java.io.EOFException > > I'm > I can also run with a collection reader: > > > runRemoteAsyncAE.sh tcp://localhost:61616 MeetingAnnotator -d > descriptors/Deploy_MeetingAnnotator.xml -o `pwd`/out -c > /misc/NLP/dfox/scratch/uima/apache-uima-as-2.8.1/examples/ > descriptors/collection_reader/FileSystemCollectionReader.mine.xml > > (where the modified collection reader points to $UIMA_HOME/examples/data) > in which case I get =E2=80=9CCompleted 8 documents=E2=80=9D, and xmi outp= ut for each in the > out/ directory, but still get the same exception and warning. Based on > that (plus looking at the RunRemoteAsyncAE java source), it looks like my > analysis engine is running fine, but then hitting some problem when > RunRemoteAsyncAE tries to undeploy the C++ annotator. > > I=E2=80=99m trying to figure out if this is something I should worry abou= t > (especially if it reflects a problem with running UIMA C++ 2.4 and UIMA A= S > 2.8.1), or if it is normal or harmless. > > When I run the similar test with one of the Java-only UIMA AS samples: > > > runRemoteAsyncAE.sh tcp://localhost:61616 MeetingDetectorTaeQueue -d > deploy/as/Deploy_MeetingDetectorTAE.xml -c descriptors/collection_reader/ > FileSystemCollectionReader.mine.xml > > I still get the transport warning > > > WARN Transport - Transport Connection to: tcp:// > 127.0.0.1:56261 failed: java.io.EOFException > > but not the NullPointerException > > Thanks, > David > > > > > > --001a114a69ea354498053d1a2320--