uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dietmar Gräbner <d.graeb...@gmail.com>
Subject Re: sendAndReceiveCas doesn't throw a ResourceProcessException on processError
Date Tue, 15 Mar 2011 07:39:44 GMT
Hi Jerry,

Did you find something on this issue?

thx

Dietmar

On Mon, Feb 21, 2011 at 5:01 PM, Jaroslaw Cwiklik <uimaee@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.graebner@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
>>
>

Mime
View raw message