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 thoroughly
tested or vetted yet.  It has some fixes and improvements since 2.8.1. It
includes a new AMQ broker
version 5.14.0. It also has a fix for the problem you've reported.

-jerry


On Thu, Sep 22, 2016 at 3:15 PM, Jaroslaw Cwiklik  wrote:

> 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 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-configu
>> re-maven-for-of
>> fline-development
>> 
>> suggests Artifactory), but it may take a day or two
>> before I can get everything set up.
>>
>> I could build it on my dev machine (OS X), but with the binary install, I
>> wasn’t able to get the sample UIMA C++ code to build on Mac OS X.  (My
>> eventual plan is to get linux on my dev machine via virtual box, but that
>> means more software to install…)
>>
>> So anyway, I’ll try to get this working so I can build from svn before the
>> fix, reproduce the problem, and then update and verify the fix.
>>
>> Thanks,
>> David
>>
>> On 9/22/16, 1:23 PM, "Jaroslaw Cwiklik"  wrote:
>>
>> >I think I see the bug. Do you know how to build uima-as from svn?
>> >
>> >https://urldefense.proofpoint.com/v2/url?u=https-3A__uima.
>> apache.org_build
>> >ing-2Duima.html=DQIFaQ=3XrKki35ZWuh8X2qbeRISQ=BYS7q6K
>> 6Famz8NiMJzvOgY
>> >A-WQSvBt9z6TEbaT3nnNM=9Hf7csP-1jIlxx_vgB3QA47yh0w3i1-
>> XbVER8KQmhT8=Gin5
>> >am-lATmbl6WQFmZrKwjxKa3tiL1qz1ykFh0cdWI=
>> >
>> >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:08 PM, David Fox 
>> >wrote:
>> >
>> >> 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  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¹m using the UIMA C++ framework 2.4.0 (32-bit) on linux (CentOS
>> >>6.5),
>> >> >>and
>> >> >> following the instructions
>> >> >>https://urldefense.proofpoint.com/v2/url?u=https-
>> >> 3A__uima.apache.org_d_
>> >> >>=DQIFaQ=3XrKki35ZWuh8X2qbeRISQ=BYS7q6K6Famz8NiMJzvOgYA-
>> >> WQSvBt9z6TEbaT
>> >> >>3nnNM=dFZSJENJkyCDLeCQuBn89fBrTrsdKh4RIWwwPV7r0o8=CaIoLZ_7Je-
>> >> TYsr0ZIP
>> >> >>xs98mHRestzC4RtgVSp7kJaY=
>> >> >> 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 via JNI.  I¹ve 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++ 

Re: Broken conections after ACTIVEMQ restart

2016-09-22 Thread Jaroslaw Cwiklik
Can you install AMQ broker 5.14.0 to see if this is related to broker
issues.

-jerry

On Thu, Sep 22, 2016 at 11:29 AM, nelson rivera 
wrote:

> just like that, the parent CAS comes back but the child CAS doesnt.
>
> And the child CAS if processed, because  the  uima-as log shows the
> lines of the other annotators primitive of the flow processing the
> child CAS, but not comes back to UIMA-AS client.
>
> uima-as log only shows
> "Jms Listener Failed. Endpoint:
> temp-queue://ID:localhsot-H81-M1-33610-1474481197190-1:1:1 Managed By:
> tcp://localhost:61616 Reason: javax.jms.JMSException:
> java.io.EOFException" 
> ADVERTENCIA: Jms Listener Failed. Endpoint: XClusterAnalyzerAggregate
> Managed By: tcp://localhost:61616 Reason:
> javax.jms.IllegalStateException: The Consumer is closed..
>
> The CAS is send to service after restart the Broker, and how say
> parent CAS comes back but the child CAS doesnt. And if i try quiesce
> the Aggregate Service console shows : "Quiescing UIMA-AS Service.
> Remaining Number of CASes to Process:1".  I suppose that is the child
> CAS.
>
> the client if can send more CASes to the service, but not receive
> response, for each CAS send after the one CAS that was send after
> restart broker (for which  parent CAS comes back but the child CAS
> doesnt)  not comes back parent CAS or child CAS.
>
> More specific:
> scenario 1:
> 1- Start Broker and UIMA-AS aggregate service. Everything is fine.
>
> 2- Restart Broker (without restart the service).  UIMA-AS log show  :
> "Jms Listener Failed." 
> 3- Client sends a CAS to UIMA-AS aggregate service.(The parent CAS
> comes back but the child CAS doesnt, to the uima-as client.)
> If i try quiesce the Aggregate Service console shows : "Quiescing
> UIMA-AS Service. Remaining Number of CASes to Process:1"
>
> scenario 2:
> 1- Start Broker and UIMA-AS aggregate service. Everything is fine.
>
> 2- Restart Broker (without restart the service).  UIMA-AS log show  :
> "Jms Listener Failed." 
> 3- Client sends a CAS to UIMA-AS aggregate service.(The parent CAS
> comes back but the child CAS doesnt, to the uima-as client)
> 4- Client  sends another CAS to UIMA-AS aggregate service.(not comes
> back parent CAS or child CAS , to the uima-as client)
> 5- Client  sends another CAS to UIMA-AS aggregate service.(not comes
> back parent CAS or child CAS , to the uima-as client)
>  If i try quiesce the Aggregate Service  console shows: "Quiescing
> UIMA-AS Service. Remaining Number of CASes to Process:5"
>
>
>
>
>
> 2016-09-22 10:50 GMT-04:00, Jaroslaw Cwiklik :
> > When a parent CAS comes back (after broker is restored), can the client
> > send more CASes to the service and receive responses? I am trying to
> > determine what the real problem is here.
> >
> > 1) JMS Listener not recovering connection
> > 2) UIMA-AS is not handling CAS reply failures when broker connection is
> > stale
> >
> > -jerry
> >
> > On Thu, Sep 22, 2016 at 10:38 AM, Jaroslaw Cwiklik 
> > wrote:
> >
> >> Strange. You say that the parent CAS comes back but the child CAS
> doesnt.
> >> Are there any exceptions in the service log? Perhaps the service is
> >> unable
> >> to send the child CAS due to missing broker. There should be something
> in
> >> the uima-as log about this.
> >>
> >> -jerry
> >>
> >> On Thu, Sep 22, 2016 at 10:19 AM, nelson rivera
> >> 
> >> wrote:
> >>
> >>> Yes, it is supposed to do the service, given a
> >>> CAS it produces a child CAS and and this CAS continue in the flow,
> >>> that are other primitive annotators. And I expected that the child CAS
> >>> will sent to  UIMA-AS client, but not do.
> >>>
> >>> the scenario:
> >>> 1- Start Broker and UIMA-AS aggregate service
> >>> 2- Client sends a CAS to UIMA-AS aggregate service to verify
> >>> everything is fine. The process is correct.
> >>>
> >>> 3- Restart Broker (without restart the service).  UIMA-AS log show  :
> >>> "Jms Listener Failed." 
> >>> 4- Client sends a CAS to UIMA-AS aggregate service
> >>>
> >>> UIMA-AS client receive the parent CAS, but not child CAS.
> >>>
> >>> Thank  for you quick reply
> >>>
> >>> 2016-09-22 9:48 GMT-04:00, Jaroslaw Cwiklik :
> >>> > Can you clarify if the UIMA-AS service is a Cas Multiplier. Meaning
> >>> given a
> >>> > CAS it produces child CASes
> >>> > which are then sent to UIMA-AS client. Is this what this service is
> >>> > supposed to do if the broker is running?
> >>> >
> >>> > Can you confirm the scenario:
> >>> > 1) Client sends a CAS to UIMA-AS aggregate service
> >>> > 2) Service receives the CAS
> >>> > 3) Broker dies
> >>> > 4) Broker is restarted
> >>> >
> >>> > Does the UIMA-AS client receive the CAS back in a reply when a broker
> >>> > is
> >>> > restarted?
> >>> >
> >>> > -Jerry
> >>> >
> >>> >
> >>> >
> >>> >
> >>> > On Thu, Sep 22, 2016 at 9:33 AM, nelson rivera <
> >>> nelsonriver...@gmail.com>
> >>> > wrote:

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  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¹m using the UIMA C++ framework 2.4.0 (32-bit) on linux (CentOS 6.5),
>>and
>> following the instructions
>>https://urldefense.proofpoint.com/v2/url?u=https-3A__uima.apache.org_d_
>>=DQIFaQ=3XrKki35ZWuh8X2qbeRISQ=BYS7q6K6Famz8NiMJzvOgYA-WQSvBt9z6TEbaT
>>3nnNM=dFZSJENJkyCDLeCQuBn89fBrTrsdKh4RIWwwPV7r0o8=CaIoLZ_7Je-TYsr0ZIP
>>xs98mHRestzC4RtgVSp7kJaY=
>> 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 via JNI.  I¹ve 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 ³Completed 8 documents², and xmi output 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¹m trying to figure out if this is something I should worry about
>> (especially if it reflects a problem with running UIMA C++ 2.4 and UIMA
>>AS
>> 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: 

Re: Broken conections after ACTIVEMQ restart

2016-09-22 Thread nelson rivera
just like that, the parent CAS comes back but the child CAS doesnt.

And the child CAS if processed, because  the  uima-as log shows the
lines of the other annotators primitive of the flow processing the
child CAS, but not comes back to UIMA-AS client.

uima-as log only shows
"Jms Listener Failed. Endpoint:
temp-queue://ID:localhsot-H81-M1-33610-1474481197190-1:1:1 Managed By:
tcp://localhost:61616 Reason: javax.jms.JMSException:
java.io.EOFException" 
ADVERTENCIA: Jms Listener Failed. Endpoint: XClusterAnalyzerAggregate
Managed By: tcp://localhost:61616 Reason:
javax.jms.IllegalStateException: The Consumer is closed..

The CAS is send to service after restart the Broker, and how say
parent CAS comes back but the child CAS doesnt. And if i try quiesce
the Aggregate Service console shows : "Quiescing UIMA-AS Service.
Remaining Number of CASes to Process:1".  I suppose that is the child
CAS.

the client if can send more CASes to the service, but not receive
response, for each CAS send after the one CAS that was send after
restart broker (for which  parent CAS comes back but the child CAS
doesnt)  not comes back parent CAS or child CAS.

More specific:
scenario 1:
1- Start Broker and UIMA-AS aggregate service. Everything is fine.

2- Restart Broker (without restart the service).  UIMA-AS log show  :
"Jms Listener Failed." 
3- Client sends a CAS to UIMA-AS aggregate service.(The parent CAS
comes back but the child CAS doesnt, to the uima-as client.)
If i try quiesce the Aggregate Service console shows : "Quiescing
UIMA-AS Service. Remaining Number of CASes to Process:1"

scenario 2:
1- Start Broker and UIMA-AS aggregate service. Everything is fine.

2- Restart Broker (without restart the service).  UIMA-AS log show  :
"Jms Listener Failed." 
3- Client sends a CAS to UIMA-AS aggregate service.(The parent CAS
comes back but the child CAS doesnt, to the uima-as client)
4- Client  sends another CAS to UIMA-AS aggregate service.(not comes
back parent CAS or child CAS , to the uima-as client)
5- Client  sends another CAS to UIMA-AS aggregate service.(not comes
back parent CAS or child CAS , to the uima-as client)
 If i try quiesce the Aggregate Service  console shows: "Quiescing
UIMA-AS Service. Remaining Number of CASes to Process:5"





2016-09-22 10:50 GMT-04:00, Jaroslaw Cwiklik :
> When a parent CAS comes back (after broker is restored), can the client
> send more CASes to the service and receive responses? I am trying to
> determine what the real problem is here.
>
> 1) JMS Listener not recovering connection
> 2) UIMA-AS is not handling CAS reply failures when broker connection is
> stale
>
> -jerry
>
> On Thu, Sep 22, 2016 at 10:38 AM, Jaroslaw Cwiklik 
> wrote:
>
>> Strange. You say that the parent CAS comes back but the child CAS doesnt.
>> Are there any exceptions in the service log? Perhaps the service is
>> unable
>> to send the child CAS due to missing broker. There should be something in
>> the uima-as log about this.
>>
>> -jerry
>>
>> On Thu, Sep 22, 2016 at 10:19 AM, nelson rivera
>> 
>> wrote:
>>
>>> Yes, it is supposed to do the service, given a
>>> CAS it produces a child CAS and and this CAS continue in the flow,
>>> that are other primitive annotators. And I expected that the child CAS
>>> will sent to  UIMA-AS client, but not do.
>>>
>>> the scenario:
>>> 1- Start Broker and UIMA-AS aggregate service
>>> 2- Client sends a CAS to UIMA-AS aggregate service to verify
>>> everything is fine. The process is correct.
>>>
>>> 3- Restart Broker (without restart the service).  UIMA-AS log show  :
>>> "Jms Listener Failed." 
>>> 4- Client sends a CAS to UIMA-AS aggregate service
>>>
>>> UIMA-AS client receive the parent CAS, but not child CAS.
>>>
>>> Thank  for you quick reply
>>>
>>> 2016-09-22 9:48 GMT-04:00, Jaroslaw Cwiklik :
>>> > Can you clarify if the UIMA-AS service is a Cas Multiplier. Meaning
>>> given a
>>> > CAS it produces child CASes
>>> > which are then sent to UIMA-AS client. Is this what this service is
>>> > supposed to do if the broker is running?
>>> >
>>> > Can you confirm the scenario:
>>> > 1) Client sends a CAS to UIMA-AS aggregate service
>>> > 2) Service receives the CAS
>>> > 3) Broker dies
>>> > 4) Broker is restarted
>>> >
>>> > Does the UIMA-AS client receive the CAS back in a reply when a broker
>>> > is
>>> > restarted?
>>> >
>>> > -Jerry
>>> >
>>> >
>>> >
>>> >
>>> > On Thu, Sep 22, 2016 at 9:33 AM, nelson rivera <
>>> nelsonriver...@gmail.com>
>>> > wrote:
>>> >
>>> >> I will try the variants that you say. I was deepening the problem:
>>> >>
>>> >> I have a Aggregate AE that contains CasMultiplier, the original CAS
>>> >> is finish when it arrives to this CasMultiplier,  this generates new
>>> >> CAS and is this CAS that continue in the flow of Aggregate.
>>> >>
>>> >> After restart broker (without restart the service of annotator) and
>>> >> send a CAS to 

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. 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’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 via JNI.  I’ve 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 “Completed 8 documents”, and xmi output 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’m trying to figure out if this is something I should worry about
> (especially if it reflects a problem with running UIMA C++ 2.4 and UIMA AS
> 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
>
>
>
>
>
>


Re: Broken conections after ACTIVEMQ restart

2016-09-22 Thread Jaroslaw Cwiklik
When a parent CAS comes back (after broker is restored), can the client
send more CASes to the service and receive responses? I am trying to
determine what the real problem is here.

1) JMS Listener not recovering connection
2) UIMA-AS is not handling CAS reply failures when broker connection is
stale

-jerry

On Thu, Sep 22, 2016 at 10:38 AM, Jaroslaw Cwiklik  wrote:

> Strange. You say that the parent CAS comes back but the child CAS doesnt.
> Are there any exceptions in the service log? Perhaps the service is unable
> to send the child CAS due to missing broker. There should be something in
> the uima-as log about this.
>
> -jerry
>
> On Thu, Sep 22, 2016 at 10:19 AM, nelson rivera 
> wrote:
>
>> Yes, it is supposed to do the service, given a
>> CAS it produces a child CAS and and this CAS continue in the flow,
>> that are other primitive annotators. And I expected that the child CAS
>> will sent to  UIMA-AS client, but not do.
>>
>> the scenario:
>> 1- Start Broker and UIMA-AS aggregate service
>> 2- Client sends a CAS to UIMA-AS aggregate service to verify
>> everything is fine. The process is correct.
>>
>> 3- Restart Broker (without restart the service).  UIMA-AS log show  :
>> "Jms Listener Failed." 
>> 4- Client sends a CAS to UIMA-AS aggregate service
>>
>> UIMA-AS client receive the parent CAS, but not child CAS.
>>
>> Thank  for you quick reply
>>
>> 2016-09-22 9:48 GMT-04:00, Jaroslaw Cwiklik :
>> > Can you clarify if the UIMA-AS service is a Cas Multiplier. Meaning
>> given a
>> > CAS it produces child CASes
>> > which are then sent to UIMA-AS client. Is this what this service is
>> > supposed to do if the broker is running?
>> >
>> > Can you confirm the scenario:
>> > 1) Client sends a CAS to UIMA-AS aggregate service
>> > 2) Service receives the CAS
>> > 3) Broker dies
>> > 4) Broker is restarted
>> >
>> > Does the UIMA-AS client receive the CAS back in a reply when a broker is
>> > restarted?
>> >
>> > -Jerry
>> >
>> >
>> >
>> >
>> > On Thu, Sep 22, 2016 at 9:33 AM, nelson rivera <
>> nelsonriver...@gmail.com>
>> > wrote:
>> >
>> >> I will try the variants that you say. I was deepening the problem:
>> >>
>> >> I have a Aggregate AE that contains CasMultiplier, the original CAS
>> >> is finish when it arrives to this CasMultiplier,  this generates new
>> >> CAS and is this CAS that continue in the flow of Aggregate.
>> >>
>> >> After restart broker (without restart the service of annotator) and
>> >> send a CAS to process,  the listener associated to the client api
>> >> uima-as (BaseUIMAAsynchronousEngine_impl) is notified  when the
>> >> original CAS finalizes, but the new Cas generated in the
>> >> CasMultiplier, It is not notifies when finalizes.
>> >>
>> >> with Aggregate AE simple the log is the same, but how the original CAS
>> >>  is notifies into the listener when finalizes, not have problem
>> >> because is not expected for another new CAS.
>> >>
>> >> 2016-09-21 17:23 GMT-04:00, Jaroslaw Cwiklik :
>> >> > If possible can you download AMQ 5.14.0 (latest) and use that broker
>> >> > instead of the one the uima-as 2.8.1 ships with? There was a nasty
>> bug
>> >> > in
>> >> > AMQ related to keep-alive protocol not working. I am not sure if this
>> >> > is
>> >> > the cause but worth trying.
>> >> >
>> >> > You can download AMQ from here:
>> >> > http://activemq.apache.org/download.html
>> >> >
>> >> > -Jerry
>> >> >
>> >> > On Wed, Sep 21, 2016 at 4:52 PM, Jaroslaw Cwiklik 
>> >> wrote:
>> >> >
>> >> >> Not sure what is causing this. I need to stage this with UIMA-AS
>> >> >> 2.8.1.
>> >> I
>> >> >> am currently testing with trunk (latest) code. The most current code
>> >> does
>> >> >> have newer broker.
>> >> >>
>> >> >> I've started a broker and a sample service:
>> >> >>
>> >> >> $UIMA_HOME/bin/deployAsyncService.sh $UIMA_HOME/examples/deploy/as/
>> >> >> Deploy_MeetingDetectorTAE.xml
>> >> >>
>> >> >> After the service started, I stopped the broker, waited a bit, and
>> >> >> restarted the broker.
>> >> >>
>> >> >> With UIMA-AS from trunk I see the following in the log:
>> >> >>
>> >> >> 04:21:35.496 - 1: org.apache.uima.adapter.jms.activemq.
>> >> >> SpringContainerDeployer.doStartListeners: INFO: Controller: Meeting
>> >> >> Detector TAE Trying to Start Listener on Endpoint:
>> >> >> queue://MeetingDetectorTaeQueue
>> >> >> Selector: Command=2000 OR Command=2002 Broker: tcp://localhost:61616
>> >> >> 04:21:35.873 - 1: org.apache.uima.adapter.jms.activemq.
>> >> >> SpringContainerDeployer.doStartListeners: INFO: Controller: Meeting
>> >> >> Detector TAE Trying to Start Listener on Endpoint:
>> >> >> queue://MeetingDetectorTaeQueue
>> >> >> Selector: Command=2001 Broker: tcp://localhost:61616
>> >> >> 04:21:45.621 - 22: org.apache.uima.adapter.jms.activemq.
>> >> >> UimaDefaultMessageListenerContainer.onException: WARNING: Service:
>> >> >> Meeting Detector TAE Runtime