You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Nelson RIvera (JIRA)" <de...@uima.apache.org> on 2017/07/05 16:18:00 UTC

[jira] [Commented] (UIMA-5477) javax.jms.IllegalStateException: The Session is closed after establish connections between uima-as client and ActiveMQ

    [ https://issues.apache.org/jira/browse/UIMA-5477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16075023#comment-16075023 ] 

Nelson RIvera commented on UIMA-5477:
-------------------------------------

This behavior is random, not occurs always. In the most of the simple programs and simple test case tested, after restart the UIMA-AS Broker without restart service uima-as, the instruccion to uima-as client
"BaseUIMAAsynchronousEngine_impl.connectionOpen()" return "false" and correctly i initialize the client again.

The incorrect behavior is most frequently with many uima-as client instances. Is the case of my general application in which i have many service uima-as, and for each one creates one instace of uima-as client (BaseUIMAAsynchronousEngine_impl) and keep it alive to process all requests of the service uima-as.

Is in this scenario with many instancies of uima-as client (BaseUIMAAsynchronousEngine_impl) in the same program (a monolithic application web in tomcat) where after restart the UIMA-AS Broker without restart any service uima-as, many uima-as client returns "true" to the instruccion "BaseUIMAAsynchronousEngine_impl.connectionOpen()" but them throw "javax.jms.IllegalStateException: The Session is closed"
when proces the request.

> javax.jms.IllegalStateException: The Session is closed after establish connections between uima-as client and ActiveMQ
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: UIMA-5477
>                 URL: https://issues.apache.org/jira/browse/UIMA-5477
>             Project: UIMA
>          Issue Type: Access
>          Components: Async Scaleout
>    Affects Versions: 2.9.0AS
>         Environment: ubuntu xenial, openjdk-8-jdk
>            Reporter: Nelson RIvera
>
> In my program main, i initialize a uimas-as client only once and I use
> this client to consume all requests to a displayed service uima-as.
> Before process a request i ask to uima-as client with:
> BaseUIMAAsynchronousEngine_impl.connectionOpen()
> and if the result es "false", i stop the uima-as client and initialize it again.
> With some steps, still undefined, but basically when restart the UIMA-AS Broker
> without restart service uima-as.
> The instruccion to uima-as client
> BaseUIMAAsynchronousEngine_impl.connectionOpen() return "true", but
> them i get a "javax.jms.IllegalStateException: The Session is closed"
> when proces the request.
> One peculiarity is that, is a primitive annotator implented in c++,
> but is deployed with de deployAsyncService.sh de uima-as directly.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)