From uima-user-return-1617-apmail-incubator-uima-user-archive=incubator.apache.org@incubator.apache.org Tue Sep 02 13:34:22 2008 Return-Path: Delivered-To: apmail-incubator-uima-user-archive@locus.apache.org Received: (qmail 18465 invoked from network); 2 Sep 2008 13:34:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Sep 2008 13:34:22 -0000 Received: (qmail 44433 invoked by uid 500); 2 Sep 2008 13:34:10 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 44414 invoked by uid 500); 2 Sep 2008 13:34:10 -0000 Mailing-List: contact uima-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: uima-user@incubator.apache.org Delivered-To: mailing list uima-user@incubator.apache.org Received: (qmail 44388 invoked by uid 99); 2 Sep 2008 13:34:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Sep 2008 06:34:10 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of burnlewis@gmail.com designates 64.233.182.188 as permitted sender) Received: from [64.233.182.188] (HELO nf-out-0910.google.com) (64.233.182.188) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Sep 2008 13:33:10 +0000 Received: by nf-out-0910.google.com with SMTP id c7so461343nfi.40 for ; Tue, 02 Sep 2008 06:33:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=xieWpzxVj0pdvnG8AloVzQMqGM1SgQ9ZOu/h7YScOa8=; b=NajVNS+GZwQ5jX+Qbgy5wUXIZ7hepYeYM+OXYVNb1Lec+XZBlRk2OWTfCklGGQanwa AxcI95hsu+qt4iL2GQROU4H/oOJUNXUjWeSyB/s4h72cj5ZFJA398ZALGuXgrc5+lAVm nTfC+Gv9IaLBjckNOhu223oZZlPEDk3s1sozY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=mnE4b4I0RLyLaIcGcuTYqYyvkPOkTM1mBrfKYBNmrtUjYNda5e9ULRMPakqaHsPwLt Dxex3h5rNMEAZz5IszdO4C6XbZvoWf6rBsdsih/9UxJVHnVGxghouDipX3MT7626j1T0 EQKUZOHwKb8NB4zlBgP5SAeYQyQgary1uwI4s= Received: by 10.103.201.12 with SMTP id d12mr5330216muq.36.1220362402266; Tue, 02 Sep 2008 06:33:22 -0700 (PDT) Received: by 10.103.173.1 with HTTP; Tue, 2 Sep 2008 06:33:22 -0700 (PDT) Message-ID: <12012a0a0809020633t272ed15ar558f780a9fe94b82@mail.gmail.com> Date: Tue, 2 Sep 2008 09:33:22 -0400 From: "Burn Lewis" To: uima-user@incubator.apache.org Subject: Re: Multi-threaded CAS Consumer In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6754_22240526.1220362402280" References: <12012a0a0809020540j6de21e9fve00934644ed083e7@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_6754_22240526.1220362402280 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Ashu, Glad to hear it's working now. I don't have much experience but I've found "Java Concurrency in Practice" by Brian Goetz very helpful and thorough. Regards, Burn. On Tue, Sep 2, 2008 at 8:58 AM, Ashutosh Sharma wrote: > > Thanks Burn, > > Yes, the default was true for multipleDeploymentAllowed. Thanks for your > response. > Now I am able to run CPE successfully. Thanks a lot. > Wait a minute, You have said that we can run multiple CAS Consumers but > need serialization to access the shared output. > Could you please tell me, how can I achieve this. Do you suggest some > reading for this issue. > > Thanks & Regards, > Ashu > > > > > Date: Tue, 2 Sep 2008 08:40:01 -0400 > > From: burnlewis@gmail.com > > To: uima-user@incubator.apache.org > > Subject: Re: Multi-threaded CAS Consumer > > > > Does your CAS Consumer have the default of false for > > multipleDeploymentAllowed? Usually only the annotator pipeline is run in > > multiple threads ... the CPE runs a single-threaded Collection Reader > that > > feeds the multiple replicated pipelines which all feed into a > > single-threaded CAS Consumer. I think you can run multiple CAS Consumers > > but then you are resposible for serializing access to your shared output > > resources. > > > > Perhaps you could post the full trace of your exception. > > > > Burn. > > > > On Tue, Sep 2, 2008 at 12:11 AM, Ashutosh Sharma < > ashu.sharma@hotmail.com>wrote: > > > > > > > > Hi, > > > > > > I would like to run CPE in multithreaded environment. For this purpose, > I > > > changed the value of the variable named processingUnitThreadCount=3 in > CPE > > > Descriptor file. When I run the CPE, it gave me a Java null pointer > > > exception in my CAS Consumer. Where I initialize all basics open > connection > > > and initialize the command to insert the data. > > > Please help me to overcome this issue. How can I achieve the running > CPE in > > > multithreaded mode. > > > > > > Thanks & Regards, > > > Ashu > > > > > > > > > _________________________________________________________________ > > > Movies, sports & news! Get your daily entertainment fix, only on > live.com > > > http://www.live.com/?scope=video&form=MICOAL > > _________________________________________________________________ > Want to explore the world? Visit MSN Travel for the best deals. > http://in.msn.com/coxandkings > ------=_Part_6754_22240526.1220362402280--