Return-Path: Delivered-To: apmail-uima-user-archive@www.apache.org Received: (qmail 7588 invoked from network); 29 Mar 2011 16:03:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Mar 2011 16:03:47 -0000 Received: (qmail 40865 invoked by uid 500); 29 Mar 2011 16:03:47 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 40774 invoked by uid 500); 29 Mar 2011 16:03:46 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 40766 invoked by uid 99); 29 Mar 2011 16:03:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Mar 2011 16:03:46 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [217.146.183.254] (HELO nm16-vm0.bullet.mail.ukl.yahoo.com) (217.146.183.254) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 29 Mar 2011 16:03:38 +0000 Received: from [217.146.183.180] by nm16.bullet.mail.ukl.yahoo.com with NNFMP; 29 Mar 2011 16:03:17 -0000 Received: from [77.238.184.78] by tm11.bullet.mail.ukl.yahoo.com with NNFMP; 29 Mar 2011 16:03:17 -0000 Received: from [127.0.0.1] by smtp147.mail.ukl.yahoo.com with NNFMP; 29 Mar 2011 16:03:17 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024; t=1301414597; bh=pY/RW2I5PXL/VJUpy4ffo2Csv+CfJkoDzmnpkddxFFg=; h=X-Yahoo-Newman-Id:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=5xgs6EehUkyiCLa5+sICZmDph9ubg+i09eT4/0PWcPLumwDScDeSDOzDfizYl9tocKyT04XNwq8nluw9GKXsJH74Jx/AlQmYapOv6nQ9dZU00lxS8Dt7S0eRw048B9mbSB3vRvwXVSgEvmf7b/s4uoSDPWIOr5hxaQ0AL/RWm/I= X-Yahoo-Newman-Id: 127546.78963.bm@smtp147.mail.ukl.yahoo.com Received: from [10.100.50.216] (ppujalon@82.241.215.62 with plain) by smtp147.mail.ukl.yahoo.com with SMTP; 29 Mar 2011 16:03:16 +0000 GMT X-Yahoo-SMTP: 9lnues6swBDYRhFC_VmDFrQdhTEK X-YMail-OSG: 5.magwEVM1lgV2SkEquZzILeDvpIpsMGGcVFWfkJH743_XI BRT._9x0y1wehDCum2h.6WPwuBDRw6bSjRp.wLGoPJ6QBaY3dtASur4BMcIF dHxIGC6oxnQcCeFrIqs8KcYsE_zV8SXzVH6v.OSzToj26ykcIcWXhZLtxAkk Wxi3.0NnQ8IUgNjhuWZxTUHO9xpsjNzWCiGytgtrdK5Fods4tcfUnNvZI4fX OXzh7x6cbTaCxdkBtUsb7WsNl6RcvF9hLLAmtv5ZkQTOxhQkV0J4rtlD1yFk h6ILbOFZpRqGkLC2ewl1_V0expNntVU2NyEX_EXAYNrmSQgaWb2MYAg-- X-Yahoo-Newman-Property: ymail-3 Message-ID: <4D9202C5.5040202@yahoo.fr> Date: Tue, 29 Mar 2011 18:03:17 +0200 From: Pierre Pujalon User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; fr; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: user@uima.apache.org Subject: Re: Lost Connection to Delegate References: <4D8883F9.2010003@yahoo.fr> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org JC, I tested the work around and a listener to the delegate is indeed recreated. The CAS that were being processed pass through all annotators. But now I have other issues, but it is not the same each time I tried .Either the client is losing connection, or get block on the getCAS method as if cas process during the JMS down time were not release or the aggregate or the aggregate client get stalled... I need to dig a little bit into this because it does not make many sense right now... What bother me is that if I don't make the annotator delegated, the aggregate client always recover clean with this scenario. Anyway Thanks Pierre Le 28/03/2011 18:07, Jaroslaw Cwiklik a �crit : > Pierre, in my last posting I meant maxRetries=1, not retryCount=1. > > JC > > On Mon, Mar 28, 2011 at 12:05 PM, Jaroslaw Cwiklik wrote: > >> Pierre, I've identified the bug in UIMA AS code that causes the problem >> described. As a workaround, set the retryCount=1 in the error handling >> configuration for the delegate defined in your deployment descriptor. Here >> is an example: >> >> >> > brokerURL="${BrokerURL}"/> >> >> >> > timeout="15000" thresholdCount="1" thresholdAction="terminate" /> >> >> >> >> This should force creation of a new listener on the delegate reply queue. >> >> The listener recovery should be done with no retry being set and I will >> make necessary changes in the code to support that use case. >> >> Thanks for finding the bug! >> >> JC >> >> On Tue, Mar 22, 2011 at 1:12 PM, Jaroslaw Cwiklikwrote: >> >>> Pierre, this appears to be a bug. In the scenario you've described the >>> uima as aggregate client should detect a lost connection (which it does) and >>> create a new one on a subsequent process CAS request destined to the remote >>> delegate. I will attempt to re-create your scenario and see if this is in >>> fact a bug. >>> >>> Thanks, JC >>> >>> >>> On Tue, Mar 22, 2011 at 7:11 AM, Pierre Pujalonwrote: >>> >>>> Hi, >>>> I'm currently using UIMA-AS 2.3.1rc5 and I am having issues with >>>> asynchronous delegated .. >>>> >>>> I have a chain of several annotators. One of them is an asynchronous >>>> delegate as it is very resource consuming. >>>> So I have one UIMA service with a simpleChainDescriptor and several UIMA >>>> services with myDelegateAnnotatorDescriptor. >>>> >>>> When the activeMQ broker fails and restart, all my UIMA services >>>> resfresh succesfully their JMS connection. But it appears that the service >>>> holding the processing chain (simpleChainDescriptor) itself does not >>>> refresh the JMS connection to the delegate JMS queue. >>>> When a new CAS is processed, I have the following exception in the >>>> console !!!! and the processing of the cas stop silently and passes to the >>>> next cas. >>>> If I restart the service holding the chain, everything go back to >>>> normal. >>>> >>>> Is this a bug or am I missing something? >>>> >>>> Thanks, >>>> Pierre >>>> >>>> >>>> ATTENTION: Uima AS Service:simpleChainDescriptor Listener Established >>>> Connection to Broker: tcp://brokerurl:61616 >>>> 22 mars 2011 11:11:00 >>>> org.apache.uima.adapter.jms.activemq.UimaDefaultMessageListenerContainer >>>> handleListenerSetupFailure >>>> ATTENTION: Uima AS Service:simpleChainDescriptor Listener Established >>>> Connection to Broker: tcp://brokerurl:61616 >>>> 22 mars 2011 11:11:00 >>>> org.apache.uima.adapter.jms.activemq.JmsOutputChannel >>>> invalidateConnectionAndEndpoints >>>> INFO: Controller simpleChainDescriptor Invalidating JMS Connection To >>>> Broker tcp://brokerurl:61616 and Closing Sessions To Delegates >>>> 22 mars 2011 11:11:01 >>>> org.apache.uima.adapter.jms.activemq.JmsEndpointConnection_impl send >>>> ATTENTION: Service: simpleChainDescriptor Runtime Exception >>>> 22 mars 2011 11:11:01 >>>> org.apache.uima.adapter.jms.activemq.JmsEndpointConnection_impl send >>>> ATTENTION: >>>> org.apache.uima.aae.error.DelegateConnectionLostException: >>>> Controller:simpleChainDescriptor Lost Connection to >>>> Delegate:myDelegateAnnotatorDescriptor >>>> at >>>> org.apache.uima.adapter.jms.activemq.JmsEndpointConnection_impl.send(JmsEndpointConnection_impl.java:536) >>>> at >>>> org.apache.uima.adapter.jms.activemq.JmsEndpointConnection_impl.send(JmsEndpointConnection_impl.java:507) >>>> at >>>> org.apache.uima.adapter.jms.activemq.JmsOutputChannel.dispatch(JmsOutputChannel.java:1366) >>>> at >>>> org.apache.uima.adapter.jms.activemq.JmsOutputChannel.sendCasToRemoteEndpoint(JmsOutputChannel.java:1527) >>>> at >>>> org.apache.uima.adapter.jms.activemq.JmsOutputChannel.serializeCasAndSend(JmsOutputChannel.java:658) >>>> at >>>> org.apache.uima.adapter.jms.activemq.JmsOutputChannel.sendRequest(JmsOutputChannel.java:610) >>>> at >>>> org.apache.uima.aae.controller.AggregateAnalysisEngineController_impl.dispatch(AggregateAnalysisEngineController_impl.java:2381) >>>> at >>>> org.apache.uima.aae.controller.AggregateAnalysisEngineController_impl.dispatchProcessRequest(AggregateAnalysisEngineController_impl.java:2421) >>>> at >>>> org.apache.uima.aae.controller.AggregateAnalysisEngineController_impl.simpleStep(AggregateAnalysisEngineController_impl.java:1294) >>>> at >>>> org.apache.uima.aae.controller.AggregateAnalysisEngineController_impl.executeFlowStep(AggregateAnalysisEngineController_impl.java:2302) >>>> at >>>> org.apache.uima.aae.controller.AggregateAnalysisEngineController_impl.process(AggregateAnalysisEngineController_impl.java:1229) >>>> at >>>> org.apache.uima.aae.handler.HandlerBase.invokeProcess(HandlerBase.java:118) >>>> at >>>> org.apache.uima.aae.handler.input.ProcessResponseHandler.cancelTimerAndProcess(ProcessResponseHandler.java:108) >>>> at >>>> org.apache.uima.aae.handler.input.ProcessResponseHandler.handleProcessResponseWithCASReference(ProcessResponseHandler.java:387) >>>> at >>>> org.apache.uima.aae.handler.input.ProcessResponseHandler.handle(ProcessResponseHandler.java:656) >>>> at >>>> org.apache.uima.aae.handler.HandlerBase.delegate(HandlerBase.java:149) >>>> at >>>> org.apache.uima.aae.handler.input.ProcessRequestHandler_impl.handle(ProcessRequestHandler_impl.java:973) >>>> at >>>> org.apache.uima.aae.spi.transport.vm.UimaVmMessageListener.onMessage(UimaVmMessageListener.java:107) >>>> at >>>> org.apache.uima.aae.spi.transport.vm.UimaVmMessageDispatcher$1.run(UimaVmMessageDispatcher.java:70) >>>> at >>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) >>>> at >>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) >>>> at java.lang.Thread.run(Thread.java:619) >>>> 22 mars 2011 11:11:01 >>>> org.apache.uima.aae.error.handler.ProcessCasErrorHandler handleError >>>> ATTENTION: Service: simpleChainDescriptor Runtime Exception >>>> 22 mars 2011 11:11:01 >>>> org.apache.uima.aae.error.handler.ProcessCasErrorHandler handleError >>>> ATTENTION: >>>> org.apache.uima.aae.error.DelegateConnectionLostException: >>>> Controller:simpleChainDescriptor Lost Connection to >>>> Delegate:myDelegateAnnotatorDescriptor >>>> at >>>> org.apache.uima.adapter.jms.activemq.JmsEndpointConnection_impl.send(JmsEndpointConnection_impl.java:536) >>>> at >>>> org.apache.uima.adapter.jms.activemq.JmsEndpointConnection_impl.send(JmsEndpointConnection_impl.java:507) >>>> at >>>> org.apache.uima.adapter.jms.activemq.JmsOutputChannel.dispatch(JmsOutputChannel.java:1366) >>>> at >>>> org.apache.uima.adapter.jms.activemq.JmsOutputChannel.sendCasToRemoteEndpoint(JmsOutputChannel.java:1527) >>>> at >>>> org.apache.uima.adapter.jms.activemq.JmsOutputChannel.serializeCasAndSend(JmsOutputChannel.java:658) >>>> at >>>> org.apache.uima.adapter.jms.activemq.JmsOutputChannel.sendRequest(JmsOutputChannel.java:610) >>>> at >>>> org.apache.uima.aae.controller.AggregateAnalysisEngineController_impl.dispatch(AggregateAnalysisEngineController_impl.java:2381) >>>> at >>>> org.apache.uima.aae.controller.AggregateAnalysisEngineController_impl.dispatchProcessRequest(AggregateAnalysisEngineController_impl.java:2421) >>>> at >>>> org.apache.uima.aae.controller.AggregateAnalysisEngineController_impl.simpleStep(AggregateAnalysisEngineController_impl.java:1294) >>>> at >>>> org.apache.uima.aae.controller.AggregateAnalysisEngineController_impl.executeFlowStep(AggregateAnalysisEngineController_impl.java:2302) >>>> at >>>> org.apache.uima.aae.controller.AggregateAnalysisEngineController_impl.process(AggregateAnalysisEngineController_impl.java:1229) >>>> at >>>> org.apache.uima.aae.handler.HandlerBase.invokeProcess(HandlerBase.java:118) >>>> at >>>> org.apache.uima.aae.handler.input.ProcessResponseHandler.cancelTimerAndProcess(ProcessResponseHandler.java:108) >>>> at >>>> org.apache.uima.aae.handler.input.ProcessResponseHandler.handleProcessResponseWithCASReference(ProcessResponseHandler.java:387) >>>> at >>>> org.apache.uima.aae.handler.input.ProcessResponseHandler.handle(ProcessResponseHandler.java:656) >>>> at >>>> org.apache.uima.aae.handler.HandlerBase.delegate(HandlerBase.java:149) >>>> at >>>> org.apache.uima.aae.handler.input.ProcessRequestHandler_impl.handle(ProcessRequestHandler_impl.java:973) >>>> at >>>> org.apache.uima.aae.spi.transport.vm.UimaVmMessageListener.onMessage(UimaVmMessageListener.java:107) >>>> at >>>> org.apache.uima.aae.spi.transport.vm.UimaVmMessageDispatcher$1.run(UimaVmMessageDispatcher.java:70) >>>> at >>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) >>>> at >>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) >>>> at java.lang.Thread.run(Thread.java:619) >>>> >>>> >>>>