You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Dietmar Gräbner <d....@gmail.com> on 2011/03/15 08:39:44 UTC

Re: sendAndReceiveCas doesn't throw a ResourceProcessException on processError

Hi Jerry,

Did you find something on this issue?

thx

Dietmar

On Mon, Feb 21, 2011 at 5:01 PM, Jaroslaw Cwiklik <ui...@gmail.com> wrote:
> Dietmar, the UIMA AS client should throw an exception in the case you
> described. I am looking into why it does not.
>
> Jerry C
>
> 2011/2/21 Dietmar Gräbner <d....@gmail.com>
>
>> Hi,
>>
>> for some reason sendAndReceiveCas doesn't work as I understood and I
>> hope you can help me on this.
>>
>> I have the following client code calling a UIMA AS Aggregate service:
>>
>>
>> >BaseUIMAAsynchronousEngine_impl engine = new
>> BaseUIMAAsynchronousEngine_impl();
>> >engine.initialize(appCtx); //no timeouts set and not listener registered
>> >CAS cas = engine.getCAS();
>> >cas.setDocumentLanguage("x-unspecified");
>> >cas.setDocumentText("some text");
>> >engine.sendAndReceiveCAS(cas);
>>
>> The component called is a tagger, throws an Exception for the language
>> "x-unspecified" and the client receives the exception - I verfied this
>> via processErrorCount in JMX, by attaching a Listener to the client
>> and with the following entry in the log file:
>>
>> > 21.02.2011 15:47:38
>> org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngineCommon_impl
>> handleException
>> INFO: Received Exception In Message From:UimaASClient Cas
>> Identifier:-7df28e3c:12e48b09349:-7ffa
>> Exception:org.apache.uima.aae.error.UimaEEServiceException:
>> org.apache.uima.aae.error.UimaAsDelegateException: ---->
>> Controller:/HmmTaggerTAE Received Exception  on
>> CAS:-7df28e3c:12e48b09349:-7ffa From Delegate:HmmTagger
>>
>> According to the documentation and to the implementation of
>> BaseUIMAAsynchronousEnigne_impl the sendAndReceiveCAS method should
>> throw a ResourceProcessException if a process error occurs. So
>> everything works fine, but the ResourceProcessException is not thrown
>> and my client engine keeps waiting for the result.
>>
>> I would really appreciate a push in the right direction.
>>
>> Thank you and best regards
>>
>> Dietmar
>>
>

Re: sendAndReceiveCas doesn't throw a ResourceProcessException on processError

Posted by Dietmar Gräbner <d....@gmail.com>.
Thx for fixing the problem!

Best regards

Dietmar




On Tue, Mar 15, 2011 at 2:11 PM, Jaroslaw Cwiklik <ui...@gmail.com> wrote:
> Dietmar, this was fixed under JIRA
> https://issues.apache.org/jira/browse/UIMA-2064
> <https://issues.apache.org/jira/browse/UIMA-2064>Thanks for reporting the
> problem
>
> - Jerry C
>
> 2011/3/15 Dietmar Gräbner <d....@gmail.com>
>
>> Hi Jerry,
>>
>> Did you find something on this issue?
>>
>> thx
>>
>> Dietmar
>>
>> On Mon, Feb 21, 2011 at 5:01 PM, Jaroslaw Cwiklik <ui...@gmail.com>
>> wrote:
>> > Dietmar, the UIMA AS client should throw an exception in the case you
>> > described. I am looking into why it does not.
>> >
>> > Jerry C
>> >
>> > 2011/2/21 Dietmar Gräbner <d....@gmail.com>
>> >
>> >> Hi,
>> >>
>> >> for some reason sendAndReceiveCas doesn't work as I understood and I
>> >> hope you can help me on this.
>> >>
>> >> I have the following client code calling a UIMA AS Aggregate service:
>> >>
>> >>
>> >> >BaseUIMAAsynchronousEngine_impl engine = new
>> >> BaseUIMAAsynchronousEngine_impl();
>> >> >engine.initialize(appCtx); //no timeouts set and not listener
>> registered
>> >> >CAS cas = engine.getCAS();
>> >> >cas.setDocumentLanguage("x-unspecified");
>> >> >cas.setDocumentText("some text");
>> >> >engine.sendAndReceiveCAS(cas);
>> >>
>> >> The component called is a tagger, throws an Exception for the language
>> >> "x-unspecified" and the client receives the exception - I verfied this
>> >> via processErrorCount in JMX, by attaching a Listener to the client
>> >> and with the following entry in the log file:
>> >>
>> >> > 21.02.2011 15:47:38
>> >> org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngineCommon_impl
>> >> handleException
>> >> INFO: Received Exception In Message From:UimaASClient Cas
>> >> Identifier:-7df28e3c:12e48b09349:-7ffa
>> >> Exception:org.apache.uima.aae.error.UimaEEServiceException:
>> >> org.apache.uima.aae.error.UimaAsDelegateException: ---->
>> >> Controller:/HmmTaggerTAE Received Exception  on
>> >> CAS:-7df28e3c:12e48b09349:-7ffa From Delegate:HmmTagger
>> >>
>> >> According to the documentation and to the implementation of
>> >> BaseUIMAAsynchronousEnigne_impl the sendAndReceiveCAS method should
>> >> throw a ResourceProcessException if a process error occurs. So
>> >> everything works fine, but the ResourceProcessException is not thrown
>> >> and my client engine keeps waiting for the result.
>> >>
>> >> I would really appreciate a push in the right direction.
>> >>
>> >> Thank you and best regards
>> >>
>> >> Dietmar
>> >>
>> >
>>
>

Re: sendAndReceiveCas doesn't throw a ResourceProcessException on processError

Posted by Jaroslaw Cwiklik <ui...@gmail.com>.
Dietmar, this was fixed under JIRA
https://issues.apache.org/jira/browse/UIMA-2064
<https://issues.apache.org/jira/browse/UIMA-2064>Thanks for reporting the
problem

- Jerry C

2011/3/15 Dietmar Gräbner <d....@gmail.com>

> Hi Jerry,
>
> Did you find something on this issue?
>
> thx
>
> Dietmar
>
> On Mon, Feb 21, 2011 at 5:01 PM, Jaroslaw Cwiklik <ui...@gmail.com>
> wrote:
> > Dietmar, the UIMA AS client should throw an exception in the case you
> > described. I am looking into why it does not.
> >
> > Jerry C
> >
> > 2011/2/21 Dietmar Gräbner <d....@gmail.com>
> >
> >> Hi,
> >>
> >> for some reason sendAndReceiveCas doesn't work as I understood and I
> >> hope you can help me on this.
> >>
> >> I have the following client code calling a UIMA AS Aggregate service:
> >>
> >>
> >> >BaseUIMAAsynchronousEngine_impl engine = new
> >> BaseUIMAAsynchronousEngine_impl();
> >> >engine.initialize(appCtx); //no timeouts set and not listener
> registered
> >> >CAS cas = engine.getCAS();
> >> >cas.setDocumentLanguage("x-unspecified");
> >> >cas.setDocumentText("some text");
> >> >engine.sendAndReceiveCAS(cas);
> >>
> >> The component called is a tagger, throws an Exception for the language
> >> "x-unspecified" and the client receives the exception - I verfied this
> >> via processErrorCount in JMX, by attaching a Listener to the client
> >> and with the following entry in the log file:
> >>
> >> > 21.02.2011 15:47:38
> >> org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngineCommon_impl
> >> handleException
> >> INFO: Received Exception In Message From:UimaASClient Cas
> >> Identifier:-7df28e3c:12e48b09349:-7ffa
> >> Exception:org.apache.uima.aae.error.UimaEEServiceException:
> >> org.apache.uima.aae.error.UimaAsDelegateException: ---->
> >> Controller:/HmmTaggerTAE Received Exception  on
> >> CAS:-7df28e3c:12e48b09349:-7ffa From Delegate:HmmTagger
> >>
> >> According to the documentation and to the implementation of
> >> BaseUIMAAsynchronousEnigne_impl the sendAndReceiveCAS method should
> >> throw a ResourceProcessException if a process error occurs. So
> >> everything works fine, but the ResourceProcessException is not thrown
> >> and my client engine keeps waiting for the result.
> >>
> >> I would really appreciate a push in the right direction.
> >>
> >> Thank you and best regards
> >>
> >> Dietmar
> >>
> >
>