Re: NullPointerException when RunRemoteAsyncAE tries to unload (UIMA AS and UIMA C++)

2016-09-23 Thread David Fox
That one works fine: 0 8 apr_socket_recv command=SHUTDOWN deployCppService.cpp Shutdown started. Stopping GetMetaData instance Stopping Annotator instance 0 deployCppService.cpp Shutdown done. UimacppServiceManagement service reports shutdown DONE UimacppShutdownHook sending quiesce message U

Re: NullPointerException when RunRemoteAsyncAE tries to unload (UIMA AS and UIMA C++)

2016-09-23 Thread Jaroslaw Cwiklik
David, here is the next snapshot: https://repository.apache.org/content/repositories/snapshots/org/apache/uima/uima-as/2.9.0-SNAPSHOT/uima-as-2.9.0-20160923.195233-6.tar.gz -jerry On Fri, Sep 23, 2016 at 3:35 PM, Jaroslaw Cwiklik wrote: > David, like I said not my code so not quite in-tune w

Re: NullPointerException when RunRemoteAsyncAE tries to unload (UIMA AS and UIMA C++)

2016-09-23 Thread Jaroslaw Cwiklik
David, like I said not my code so not quite in-tune what this does. I've added this to the snapshot you are using: synchronized public String quiesceAndStop() throws IOException { StringBuffer sb = new StringBuffer(); if (socket != null && !socket.isClosed() ) { In the above I am checking

Re: NullPointerException when RunRemoteAsyncAE tries to unload (UIMA AS and UIMA C++)

2016-09-23 Thread David Fox
That’s odd… now I get java.io.IOException: Error: no socket connection. at org.apache.uima.aae.controller.UimacppServiceManagement.quiesceAndStop(Uima cppServiceManagement.java:109) at org.apache.uima.aae.controller.UimacppServiceManagement.quiesceAndShutdown( UimacppServiceManagement.java:409)

Re: NullPointerException when RunRemoteAsyncAE tries to unload (UIMA AS and UIMA C++)

2016-09-23 Thread Jaroslaw Cwiklik
David, here is another uima-as snapshot for you to test https://repository.apache.org/content/repositories/snapshots/org/apache/uima/uima-as/2.9.0-SNAPSHOT/uima-as-2.9.0-20160923.152659-5.tar.gz I have not tested the fix. All I did was to modify quiesceAndStop() and terminate() to catch SocketExc

Re: NullPointerException when RunRemoteAsyncAE tries to unload (UIMA AS and UIMA C++)

2016-09-23 Thread Jaroslaw Cwiklik
David, so there is progress. :) I am not familiar with UimacppServiceController code but a quick glance at the source suggests that this code communicates with a C++ process via a socket: if (socket != null) { // System.out.println("UimacppServiceManagement::quiesceAndStop() // Sending QUIESCEA

Re: NullPointerException when RunRemoteAsyncAE tries to unload (UIMA AS and UIMA C++)

2016-09-23 Thread David Fox
I was able to install that, and I’m not getting the NullPointerException. The example annotator still runs successfully, but now I get --- Attempting to deploy descriptors/Deploy_MeetingAnnotator.xml ... Waiting for Uima C++ s

Re: NullPointerException when RunRemoteAsyncAE tries to unload (UIMA AS and UIMA C++)

2016-09-22 Thread Jaroslaw Cwiklik
David, I've deployed uima-as 2.9.0-SNAPSHOT here: https://repository.apache.org/content/repositories/snapshots/org/apache/uima/uima-as/2.9.0-SNAPSHOT/ there is a binary tarball (tar.gz) in there. This is a trunk level uima-as code for the upcoming 2.9.0 uima-as release. It has not been thoroughl

Re: NullPointerException when RunRemoteAsyncAE tries to unload (UIMA AS and UIMA C++)

2016-09-22 Thread Jaroslaw Cwiklik
Another possibility is to deploy a snapshot in a public maven repo. Hopefully you can get the binary tarball onto your machines somehow. I will to do that know and let you know where to get this. -jerry On Thu, Sep 22, 2016 at 3:01 PM, David Fox wrote: > Building from svn on our linux machines

Re: NullPointerException when RunRemoteAsyncAE tries to unload (UIMA AS and UIMA C++)

2016-09-22 Thread David Fox
Building from svn on our linux machines is a bit tricky, because they are cut off from the internet by a firewall, and maven install wants internet access to download dependencies. It looks like there are workarounds for that (http://stackoverflow.com/questions/7233328/how-do-i-configure-maven-fo

Re: NullPointerException when RunRemoteAsyncAE tries to unload (UIMA AS and UIMA C++)

2016-09-22 Thread Jaroslaw Cwiklik
I think I see the bug. Do you know how to build uima-as from svn? https://uima.apache.org/building-uima.html I will fix this shortly in the svn trunk. The next release of uima-as (2.9.0) is in the works. I will get a release candidate out hopefully next week. -jerry On Thu, Sep 22, 2016 at 12:0

Re: NullPointerException when RunRemoteAsyncAE tries to unload (UIMA AS and UIMA C++)

2016-09-22 Thread David Fox
Thanks for the quick response Yes, it occurs every time, at the same line in RunRemoteAsyncAE and org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngine_ impl.undeploy(BaseUIMAAsynchronousEngine_impl.java:964) On 9/22/16, 11:15 AM, "Jaroslaw Cwiklik" wrote: >This warning > >WARN Tra

Re: NullPointerException when RunRemoteAsyncAE tries to unload (UIMA AS and UIMA C++)

2016-09-22 Thread Jaroslaw Cwiklik
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. Thi

NullPointerException when RunRemoteAsyncAE tries to unload (UIMA AS and UIMA C++)

2016-09-22 Thread David Fox
I’m 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’ve successfully built DaveDetector and run it with the standalone C++ pipeline (runAECpp) and within a Java pipeline vi