You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Jerry Cwiklik (JIRA)" <de...@uima.apache.org> on 2011/02/18 17:47:38 UTC

[jira] Closed: (UIMA-2058) UIMA AS example program RunRemoteAsyncAE calls System.exit()

     [ https://issues.apache.org/jira/browse/UIMA-2058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jerry Cwiklik closed UIMA-2058.
-------------------------------

    Resolution: Fixed

Calls stop() on the UIMA AS client before exiting. The stop() closes a connection to a broker.

> UIMA AS example program RunRemoteAsyncAE calls System.exit()
> ------------------------------------------------------------
>
>                 Key: UIMA-2058
>                 URL: https://issues.apache.org/jira/browse/UIMA-2058
>             Project: UIMA
>          Issue Type: Bug
>          Components: Async Scaleout
>            Reporter: Jerry Cwiklik
>            Assignee: Jerry Cwiklik
>            Priority: Minor
>             Fix For: 2.3.1AS
>
>
> There are bunch of System.exit() calls in the RunRemoteAsyncAE.java. If any of them are triggered (usually in response to exception from service) the program just exits without first stopping the UIMA AS client. The result of this is an ugly exception in the broker: 
> INFO  Transport                      - Transport failed: java.net.SocketExceptio
> n: Connection reset
> java.net.SocketException: Connection reset
>         at java.net.SocketInputStream.read(SocketInputStream.java:168)
>         at org.apache.activemq.transport.tcp.TcpBufferedInputStream.fill(TcpBuff
> eredInputStream.java:50)
>         at org.apache.activemq.transport.tcp.TcpTransport$2.fill(TcpTransport.ja
> va:575)
>         at org.apache.activemq.transport.tcp.TcpBufferedInputStream.read(TcpBuff
> eredInputStream.java:58)
>         at org.apache.activemq.transport.tcp.TcpTransport$2.read(TcpTransport.ja
> va:560)
>         at java.io.DataInputStream.readInt(DataInputStream.java:370)
>         at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.
> java:269)
>         at org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTranspo
> rt.java:226)
>         at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.jav
> a:218)
>         at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:
> 201)
>         at java.lang.Thread.run(Thread.java:619)

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira