Return-Path: Delivered-To: apmail-incubator-uima-user-archive@locus.apache.org Received: (qmail 94678 invoked from network); 3 Jul 2007 20:26:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jul 2007 20:26:42 -0000 Received: (qmail 65900 invoked by uid 500); 3 Jul 2007 20:26:45 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 65878 invoked by uid 500); 3 Jul 2007 20:26:45 -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 65869 invoked by uid 99); 3 Jul 2007 20:26:45 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2007 13:26:45 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of benjams@il.ibm.com designates 195.212.29.155 as permitted sender) Received: from [195.212.29.155] (HELO mtagate6.de.ibm.com) (195.212.29.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2007 13:26:41 -0700 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate6.de.ibm.com (8.13.8/8.13.8) with ESMTP id l63KQHAv521410 for ; Tue, 3 Jul 2007 20:26:17 GMT Received: from d12av04.megacenter.de.ibm.com (d12av04.megacenter.de.ibm.com [9.149.165.229]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.3) with ESMTP id l63KQH2i1941546 for ; Tue, 3 Jul 2007 22:26:17 +0200 Received: from d12av04.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av04.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l63KQHfp023681 for ; Tue, 3 Jul 2007 22:26:17 +0200 Received: from d12mc102.megacenter.de.ibm.com (d12mc102.megacenter.de.ibm.com [9.149.167.114]) by d12av04.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l63KQHf7023675 for ; Tue, 3 Jul 2007 22:26:17 +0200 Subject: Cas Multiplier with Flow Controller To: "uima-user " X-Mailer: Lotus Notes Release 7.0 HF277 June 21, 2006 Message-ID: From: Benjamin Sznajder Date: Tue, 3 Jul 2007 23:24:42 +0300 X-MIMETrack: Serialize by Router on D12MC102/12/M/IBM(Release 7.0.2HF71 | November 3, 2006) at 03/07/2007 23:26:16 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org Hi, I am trying to run a CAS Multiplier with a Flow Controller. My CPE is composed of : - a Collection reader that reads an image and saves in a CAS a byte array of its content. - a CAS Multiplier that currently, only creates 3 identical CASes with same content than the initial - Some AEs that extract the MPEG7 features of this images - A CAS consumer that creates the XML File representing the MPEG7. The Flow Controller I used is the WhiteBoardFlowController from the example. I added to this class the following: protected Flow newCasProduced(CAS newCas, String producedBy) { getContext().getLogger().log(Level.SEVERE, "newCasProduced"); WhiteboardFlow flow = new WhiteboardFlow(); flow.setCas(newCas); return flow; } but, when I run my CPE, I get the following error. And apparently, the method has not been reached since the Log message is not printed.... Jul 3, 2007 11:23:07 PM org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl processAndOutputNewCASes(267) SEVERE: Exception occurred org.apache.uima.analysis_engine.AnalysisEngineProcessException: The Flow class com.ibm.sapir.flowController.WhiteboardFlowController$WhiteboardFlow does not support the production of new CASes in the middle of the flow and so cannot be deployed in an Aggregate AnalysisEngine that includes a CAS Multiplier component. at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.processUntilNextOutputCas( ASB_impl.java:574) at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.( ASB_impl.java:393) at org.apache.uima.analysis_engine.asb.impl.ASB_impl.process( ASB_impl.java:326) at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.processAndOutputNewCASes( AggregateAnalysisEngine_impl.java:259) at org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.process( AnalysisEngineImplBase.java:202) at org.apache.uima.collection.impl.cpm.engine.ProcessingUnit.processNext( ProcessingUnit.java:1221) at org.apache.uima.collection.impl.cpm.engine.ProcessingUnit.run( ProcessingUnit.java:668) Caused by: org.apache.uima.UIMA_UnsupportedOperationException: The Flow class com.ibm.sapir.flowController.WhiteboardFlowController$WhiteboardFlow does not support the production of new CASes in the middle of the flow and so cannot be deployed in an Aggregate AnalysisEngine that includes a CAS Multiplier component. at org.apache.uima.flow.CasFlow_ImplBase.newCasProduced( CasFlow_ImplBase.java:77) at org.apache.uima.flow.CasFlow_ImplBase.newCasProduced( CasFlow_ImplBase.java:54) at org.apache.uima.analysis_engine.asb.impl.FlowContainer.newCasProduced( FlowContainer.java:70) at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.processUntilNextOutputCas( ASB_impl.java:525) ... 6 more org.apache.uima.analysis_engine.AnalysisEngineProcessException: The Flow class com.ibm.sapir.flowController.WhiteboardFlowController$WhiteboardFlow does not support the production of new CASes in the middle of the flow and so cannot be deployed in an Aggregate AnalysisEngine that includes a CAS Multiplier component. at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.processUntilNextOutputCas( ASB_impl.java:574) at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.( ASB_impl.java:393) at org.apache.uima.analysis_engine.asb.impl.ASB_impl.process( ASB_impl.java:326) at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.processAndOutputNewCASes( AggregateAnalysisEngine_impl.java:259) at org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.process( AnalysisEngineImplBase.java:202) at org.apache.uima.collection.impl.cpm.engine.ProcessingUnit.processNext( ProcessingUnit.java:1221) at org.apache.uima.collection.impl.cpm.engine.ProcessingUnit.run( ProcessingUnit.java:668) Caused by: org.apache.uima.UIMA_UnsupportedOperationException: The Flow class com.ibm.sapir.flowController.WhiteboardFlowController$WhiteboardFlow does not support the production of new CASes in the middle of the flow and so cannot be deployed in an Aggregate AnalysisEngine that includes a CAS Multiplier component. at org.apache.uima.flow.CasFlow_ImplBase.newCasProduced( CasFlow_ImplBase.java:77) at org.apache.uima.flow.CasFlow_ImplBase.newCasProduced( CasFlow_ImplBase.java:54) at org.apache.uima.analysis_engine.asb.impl.FlowContainer.newCasProduced( FlowContainer.java:70) at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.processUntilNextOutputCas( ASB_impl.java:525) ... 6 more Jul 3, 2007 11:23:07 PM org.apache.uima.collection.impl.cpm.engine.ProcessingUnit process SEVERE: The container AggregateMPEG7Descriptor returned the following error message: The Flow class com.ibm.sapir.flowController.WhiteboardFlowController$WhiteboardFlow does not support the production of new CASes in the middle of the flow and so cannot be deployed in an Aggregate AnalysisEngine that includes a CAS Multiplier component. (Thread Name: [Procesing Pipeline#1 Thread]::) Jul 3, 2007 11:23:07 PM org.apache.uima.collection.impl.cpm.engine.ProcessingUnit processNext(1338) SEVERE: [Procesing Pipeline#1 Thread]:: org.apache.uima.analysis_engine.AnalysisEngineProcessException: The Flow class com.ibm.sapir.flowController.WhiteboardFlowController$WhiteboardFlow does not support the production of new CASes in the middle of the flow and so cannot be deployed in an Aggregate AnalysisEngine that includes a CAS Multiplier component. at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.processUntilNextOutputCas( ASB_impl.java:574) at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.( ASB_impl.java:393) at org.apache.uima.analysis_engine.asb.impl.ASB_impl.process( ASB_impl.java:326) at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.processAndOutputNewCASes( AggregateAnalysisEngine_impl.java:259) at org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.process( AnalysisEngineImplBase.java:202) at org.apache.uima.collection.impl.cpm.engine.ProcessingUnit.processNext( ProcessingUnit.java:1221) at org.apache.uima.collection.impl.cpm.engine.ProcessingUnit.run( ProcessingUnit.java:668) Caused by: org.apache.uima.UIMA_UnsupportedOperationException: The Flow class com.ibm.sapir.flowController.WhiteboardFlowController$WhiteboardFlow does not support the production of new CASes in the middle of the flow and so cannot be deployed in an Aggregate AnalysisEngine that includes a CAS Multiplier component. at org.apache.uima.flow.CasFlow_ImplBase.newCasProduced( CasFlow_ImplBase.java:77) at org.apache.uima.flow.CasFlow_ImplBase.newCasProduced( CasFlow_ImplBase.java:54) at org.apache.uima.analysis_engine.asb.impl.FlowContainer.newCasProduced( FlowContainer.java:70) at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.processUntilNextOutputCas( ASB_impl.java:525) ... 6 more org.apache.uima.analysis_engine.AnalysisEngineProcessException: The Flow class com.ibm.sapir.flowController.WhiteboardFlowController$WhiteboardFlow does not support the production of new CASes in the middle of the flow and so cannot be deployed in an Aggregate AnalysisEngine that includes a CAS Multiplier component. at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.processUntilNextOutputCas( ASB_impl.java:574) at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.( ASB_impl.java:393) at org.apache.uima.analysis_engine.asb.impl.ASB_impl.process( ASB_impl.java:326) at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.processAndOutputNewCASes( AggregateAnalysisEngine_impl.java:259) at org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.process( AnalysisEngineImplBase.java:202) at org.apache.uima.collection.impl.cpm.engine.ProcessingUnit.processNext( ProcessingUnit.java:1221) at org.apache.uima.collection.impl.cpm.engine.ProcessingUnit.run( ProcessingUnit.java:668) Caused by: org.apache.uima.UIMA_UnsupportedOperationException: The Flow class com.ibm.sapir.flowController.WhiteboardFlowController$WhiteboardFlow does not support the production of new CASes in the middle of the flow and so cannot be deployed in an Aggregate AnalysisEngine that includes a CAS Multiplier component. at org.apache.uima.flow.CasFlow_ImplBase.newCasProduced( CasFlow_ImplBase.java:77) at org.apache.uima.flow.CasFlow_ImplBase.newCasProduced( CasFlow_ImplBase.java:54) at org.apache.uima.analysis_engine.asb.impl.FlowContainer.newCasProduced( FlowContainer.java:70) at org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.processUntilNextOutputCas( ASB_impl.java:525) ... 6 more Jul 3, 2007 11:23:07 PM org.apache.uima.collection.impl.cpm.container.ProcessingContainer_Impl process SEVERE: The CPM stopped because the configured error threshold 0 was exceeded. (Thread Name: [Procesing Pipeline#1 Thread]::) Component Name: AggregateMPEG7Descriptor Jul 3, 2007 11:23:07 PM org.apache.uima.collection.impl.cpm.engine.ProcessingUnit process