Return-Path: Delivered-To: apmail-incubator-uima-user-archive@minotaur.apache.org Received: (qmail 63983 invoked from network); 3 Feb 2010 10:40:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Feb 2010 10:40:38 -0000 Received: (qmail 75768 invoked by uid 500); 3 Feb 2010 10:40:38 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 75700 invoked by uid 500); 3 Feb 2010 10:40:37 -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 75689 invoked by uid 99); 3 Feb 2010 10:40:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Feb 2010 10:40:37 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aradwen@gmail.com designates 209.85.219.212 as permitted sender) Received: from [209.85.219.212] (HELO mail-ew0-f212.google.com) (209.85.219.212) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Feb 2010 10:40:30 +0000 Received: by ewy4 with SMTP id 4so799593ewy.27 for ; Wed, 03 Feb 2010 02:40:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=j5qnZoQO9jjk7I8fh3JwiIwN8Us3Q6VlSBerA38bLug=; b=pZg1q/izrMXw/ainfV1HELl7xoXabXCkwSEVih9jsMMTDZ/vDirscYQ8zxoFtdCHOL 8WwpjBbtGE6JgtWagHLLZ/SzD6nPjymYurgGbxVh8f1FeqcFtKOFaYE8jYrz/57XPKOf Moi6xs+mCLN3hjJiY9U6hFgxWbTU0o6zoHIx8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=nbOz3947PaibzjsBTt9gZ+Jm5NrU9hPw+Z3ESFI5+lXqk1uhO9FHgQr43yREsBKhFy mYu7bIbphRQuaQlKosr+SV7NacK/V2yBaaoyQUJrQQk5PyYYLOTGd5KsPyVL1K0+HUQb H0YqZojRhXnWvY3SXrxacQjKXTTyuPHIqyAz0= MIME-Version: 1.0 Received: by 10.216.89.213 with SMTP id c63mr3451374wef.211.1265193608997; Wed, 03 Feb 2010 02:40:08 -0800 (PST) Date: Wed, 3 Feb 2010 11:40:08 +0100 Message-ID: Subject: CPM class usage From: Radwen ANIBA To: uima-user Content-Type: multipart/alternative; boundary=0016e6d464cca2ec85047eafd7e6 --0016e6d464cca2ec85047eafd7e6 Content-Type: text/plain; charset=ISO-8859-1 Hello, I have devoloped a serie of AEs that I tested through CPE GUI,and now I'm trying to write a java aplication using these AEs and trying to do th same thing as CPE GUI. So I took as reference SimpleRunCPM example and I made these changes // create a new Collection Processing Manager mCPM = UIMAFramework.newCollectionProcessingManager(); // Register AE and CAS Consumer with the CPM mCPM.setAnalysisEngine(ae1); mCPM.setAnalysisEngine(ae2); mCPM.setAnalysisEngine(ae3); mCPM.setAnalysisEngine(ae4); Notice here I have 4 ae and not only one So when running this I have an error message in mCPM.setAnalysisEngine(ae2) saying Initializing AnalysisEngines Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.LinkedList.entry(LinkedList.java:365) at java.util.LinkedList.remove(LinkedList.java:357) at org.apache.uima.collection.impl.cpm.engine.CPMEngine.removeCasProcessor(CPMEngine.java:1188) at org.apache.uima.collection.impl.cpm.BaseCPMImpl.removeCasProcessor(BaseCPMImpl.java:361) at org.apache.uima.collection.impl.cpm.CPMImpl.setAnalysisEngine(CPMImpl.java:70) So I don't know what is really the problem, if CPM do not take up to one ae or this is a problem in ae2 that I already tried without any bug. Any idea ? Thx Rad --0016e6d464cca2ec85047eafd7e6--