Return-Path: X-Original-To: apmail-uima-user-archive@www.apache.org Delivered-To: apmail-uima-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4F5F3777E for ; Fri, 14 Oct 2011 23:09:47 +0000 (UTC) Received: (qmail 49651 invoked by uid 500); 14 Oct 2011 23:09:47 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 49543 invoked by uid 500); 14 Oct 2011 23:09: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 49535 invoked by uid 99); 14 Oct 2011 23:09:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Oct 2011 23:09:46 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.139.90.230] (HELO nm3-vm0.bullet.mail.sp2.yahoo.com) (98.139.90.230) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 14 Oct 2011 23:09:35 +0000 Received: from [98.139.91.64] by nm3.bullet.mail.sp2.yahoo.com with NNFMP; 14 Oct 2011 23:09:11 -0000 Received: from [98.139.91.1] by tm4.bullet.mail.sp2.yahoo.com with NNFMP; 14 Oct 2011 23:09:11 -0000 Received: from [127.0.0.1] by omp1001.mail.sp2.yahoo.com with NNFMP; 14 Oct 2011 23:09:11 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 320700.42194.bm@omp1001.mail.sp2.yahoo.com Received: (qmail 73601 invoked by uid 60001); 14 Oct 2011 23:09:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1318633750; bh=WeHr7GGgPWPuiKyPwjwTSu5VGK5GY80LH+cvsqkyJgg=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=vA3jp6YxdcsR9K1DAP8gRL4xvV2qVyBM+O9yWalM28XbfBBGUCINHwguk0orRSv1eGNeFdZEEN+xHogiSveLzkzm2izJpUjqWbLefm0lN7fWPQsN7Ny8lIbywn48Q+x2oSdsnrZ0wXNt62JiGEKc79qmFzj2HFgzIoS0uR57UTo= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=50ceoT9oFPF0cjzzEL6a6z4dovBdokqAr6Eu707PN11uGG6YmIJM64h+FAe6guCyuS8G8pBYBpDxtFab//564mmE8ue5f42guXjZNk8IHtDPtvr+B8wipgl1JHO9pFfeecT0fyqziR6tAz5N5wdBwhsxcLwzOZZtsWeIui1M4n0=; X-YMail-OSG: 6WN64zgVM1nby4fg8kWmkZLA10_2uRuROs6cMY7oBfRuJWa tW6oT6.eLnXf7TOy0Nffb_6ij8HzKimBkW8W1TxQaoBHCYCEg4CkreKbKiPS 20OtQeNoNzAdroTlji4oJ28qjObwn099u798_jkXiUcwcNV6VCepZOHLnDEt PxpY8VNN4gE6maTugs_YJa34dAOioQPuzRfDHpaquUI24WyrLBhMla7hE4q0 3O7PedqQD5svG21nhRW3_Lpi7.cEqQQtsC7S.BrUJx7CjB5gJMs09k2mP_cp qznCeoOtr1zeg4x.Imf3tXYhxkIIyBwVAhYsqzmEAKxc0vUvgID0A0wAbUnX .QNcNsqrTuSiHy888QJN1WM.tytH8Mv4G2GFDv2P1TILWBm7g2aavYMuRPUW rBP8Ze945jmi03MT4byOw69HW0FJgww96bbC7JmWokTHJwQMMEF3VRNA3yq5 KeExU Received: from [115.238.132.118] by web110410.mail.gq1.yahoo.com via HTTP; Fri, 14 Oct 2011 16:09:10 PDT X-Mailer: YahooMailWebService/0.8.114.317681 Message-ID: <1318633750.69470.YahooMailNeo@web110410.mail.gq1.yahoo.com> Date: Fri, 14 Oct 2011 16:09:10 -0700 (PDT) From: Xue-Feng Yang Reply-To: Xue-Feng Yang Subject: ConcurrentModificationException problems To: "user@uima.apache.org" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="240192659-2065188082-1318633750=:69470" X-Virus-Checked: Checked by ClamAV on apache.org --240192659-2065188082-1318633750=:69470 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable I have an annotator with a Set variable which reads data in initial= ize(UimaContext) from a file via parameter configuration in UimaContext. Wh= en debugging, it is OK at first 2 steps checks.contains(shingle) returned t= rue. However, when called checks.contains(shingle) at the 36th, it throws a= n exception =0A=0A=0AAnalysisEngineProcessException: Annotator processing f= ailed=0ACaused by: java.util.ConcurrentModificationException=0AIn my part o= f the code, after initialized, the variable is never modified and only the = method "contains" is called. I also tried to create the variable in=0A=0ASe= t checks =3D Collections.synchronizedSet(new HashSet());=0A= =0A=0Aand not to test in JUnit, but the problem remains the same.=0A=0A=0AA= fter removing the code unit with "contains", it can go through.=0A=0AAny id= ea?=0A=0AXue-Feng=0A=0A/////////////////////////////=0A=0AOct 14, 2011 5:57= :26 PM org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl ca= llAnalysisComponentProcess(405)=0ASEVERE: Exception occurred=0Aorg.apache.u= ima.analysis_engine.AnalysisEngineProcessException: Annotator processing fa= iled.=A0=A0=A0 =0A=A0=A0=A0 at org.apache.uima.analysis_engine.impl.Primiti= veAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_= impl.java:391)=0A=A0=A0=A0 at org.apache.uima.analysis_engine.impl.Primitiv= eAnalysisEngine_impl.processAndOutputNewCASes(PrimitiveAnalysisEngine_impl.= java:295)=0A=A0=A0=A0 at org.apache.uima.analysis_engine.impl.AnalysisEngin= eImplBase.process(AnalysisEngineImplBase.java:267)=0A=A0=A0=A0 at org.apach= e.uima.analysis_engine.impl.AnalysisEngineImplBase.process(AnalysisEngineIm= plBase.java:280)=0A=A0=A0=A0 at com.norvar.uima.test.utils.TestUtils.runAE(= TestUtils.java:48)=0A=A0=A0=A0 at com.norvar.uima.en_places.test.EnPlacesTe= st.testPlacesAE(EnPlacesTest.java:41)=0A=A0=A0=A0 at com.norvar.uima.en_pla= ces.test.EnPlacesTest.main(EnPlacesTest.java:20)=0ACaused by: java.util.Con= currentModificationException=0A=A0=A0=A0 at org.apache.uima.cas.impl.FSInde= xRepositoryImpl$PointerIterator.checkConcurrentModification(FSIndexReposito= ryImpl.java:246)=0A=A0=A0=A0 at org.apache.uima.cas.impl.FSIndexRepositoryI= mpl$PointerIterator.ll_get(FSIndexRepositoryImpl.java:537)=0A=A0=A0=A0 at o= rg.apache.uima.cas.impl.FSIndexRepositoryImpl$PointerIterator.get(FSIndexRe= positoryImpl.java:530)=0A=A0=A0=A0 at org.apache.uima.cas.impl.FSIteratorWr= apper.get(FSIteratorWrapper.java:48)=0A=A0=A0=A0 at org.apache.uima.cas.imp= l.FSIteratorImplBase.next(FSIteratorImplBase.java:67)=0A=A0=A0=A0 at org.ap= ache.uima.cas.impl.FSIteratorImplBase.next(FSIteratorImplBase.java:1)=0A=A0= =A0=A0 at com.norvar.uima.en_dic.annotator.EnDicAnnotator.process(EnDicAnno= tator.java:127)=0A=A0=A0=A0 at org.apache.uima.analysis_component.JCasAnnot= ator_ImplBase.process(JCasAnnotator_ImplBase.java:48)=0A=A0=A0=A0 at org.ap= ache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisCom= ponentProcess(PrimitiveAnalysisEngine_impl.java:377)=0A=A0=A0=A0 ... 6 more= =0Aorg.apache.uima.analysis_engine.AnalysisEngineProcessException: Annotato= r processing failed.=A0=A0=A0 =0A=A0=A0=A0 at org.apache.uima.analysis_engi= ne.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(Primitive= AnalysisEngine_impl.java:391)=0A=A0=A0=A0 at org.apache.uima.analysis_engin= e.impl.PrimitiveAnalysisEngine_impl.processAndOutputNewCASes(PrimitiveAnaly= sisEngine_impl.java:295)=0A=A0=A0=A0 at org.apache.uima.analysis_engine.imp= l.AnalysisEngineImplBase.process(AnalysisEngineImplBase.java:267)=0A=A0=A0= =A0 at org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.process(= AnalysisEngineImplBase.java:280)=0A=A0=A0=A0 at com.norvar.uima.test.utils.= TestUtils.runAE(TestUtils.java:48)=0A=A0=A0=A0 at com.norvar.uima.en_places= .test.EnPlacesTest.testPlacesAE(EnPlacesTest.java:41)=0A=A0=A0=A0 at com.no= rvar.uima.en_places.test.EnPlacesTest.main(EnPlacesTest.java:20)=0ACaused b= y: java.util.ConcurrentModificationException=0A=A0=A0=A0 at org.apache.uima= .cas.impl.FSIndexRepositoryImpl$PointerIterator.checkConcurrentModification= (FSIndexRepositoryImpl.java:246)=0A=A0=A0=A0 at org.apache.uima.cas.impl.FS= IndexRepositoryImpl$PointerIterator.ll_get(FSIndexRepositoryImpl.java:537)= =0A=A0=A0=A0 at org.apache.uima.cas.impl.FSIndexRepositoryImpl$PointerItera= tor.get(FSIndexRepositoryImpl.java:530)=0A=A0=A0=A0 at org.apache.uima.cas.= impl.FSIteratorWrapper.get(FSIteratorWrapper.java:48)=0A=A0=A0=A0 at org.ap= ache.uima.cas.impl.FSIteratorImplBase.next(FSIteratorImplBase.java:67)=0A= =A0=A0=A0 at org.apache.uima.cas.impl.FSIteratorImplBase.next(FSIteratorImp= lBase.java:1)=0A=A0=A0=A0 at com.norvar.uima.en_dic.annotator.EnDicAnnotato= r.process(EnDicAnnotator.java:127)=0A=A0=A0=A0 at org.apache.uima.analysis_= component.JCasAnnotator_ImplBase.process(JCasAnnotator_ImplBase.java:48)=0A= =A0=A0=A0 at org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_i= mpl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:377)=0A= =A0=A0=A0 ... 6 more --240192659-2065188082-1318633750=:69470--