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
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
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
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)
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
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
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