uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roberto Franchini" <ro.franch...@gmail.com>
Subject Exception in a pipeline with more than one document to analize
Date Wed, 24 Oct 2007 12:58:17 GMT
Hi to all,
i've got a pipeline, wrapped by a CPM (CMPImpl) and where an annotator
is a PEAR wich wraps JAPE from the GATE project.
So the pipeline is:
-a collection reader
-a sentence annotator
-a token annotator
-a lemma annotator
- the PEAR jape wrapper
-some consumers

If I put in the source dir only one document all is fine. With 2
documents, or more, i've got this [message continue after  stack
trace]:

org.apache.uima.analysis_engine.AnalysisEngineProcessException:
Annotator processing failed.
     [java]     at
org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:383)
     [java]     at
org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.processAndOutputNewCASes(PrimitiveAnalysisEngine_impl.java:291)
     [java]     at
org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.process(AnalysisEngineImplBase.java:217)
     [java]     at
org.apache.uima.analysis_engine.impl.PearAnalysisEngineWrapper.processAndOutputNewCASes(PearAnalysisEngineWrapper.java:197)
     [java]     at
org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.process(AnalysisEngineImplBase.java:217)
     [java]     at
org.apache.uima.collection.impl.cpm.engine.ProcessingUnit.processNext(ProcessingUnit.java:1221)
     [java]     at
org.apache.uima.collection.impl.cpm.engine.ProcessingUnit.run(ProcessingUnit.java:668)
     [java] Caused by: org.apache.uima.cas.CASRuntimeException: The
JCAS cover class "it.celi.types.Sentence_Type" could not be loaded.
     [java]     at org.apache.uima.jcas.impl.JCasImpl.getType(JCasImpl.java:402)
     [java]     at
org.apache.uima.jcas.impl.JCasImpl$JCasFsGenerator.createFS(JCasImpl.java:781)
     [java]     at
org.apache.uima.cas.impl.CASImpl.ll_getFSForRef(CASImpl.java:2745)
     [java]     at org.apache.uima.cas.impl.CASImpl.createFS(CASImpl.java:1406)
     [java]     at
org.apache.uima.cas.impl.FSIteratorWrapper.get(FSIteratorWrapper.java:60)
     [java]     at
org.apache.uima.cas.impl.FSIteratorImplBase.next(FSIteratorImplBase.java:47)


So, if I put 5 documents, only on 2nd and 4th it happes, and all is
fine with other three.
If the jape annotator is'int deployed, all works fine.
Can you help me?
Thanks in advance, Roberto

-- 
Roberto Franchini
CELI s.r.l.  (http://www.celi.it) - C.so Moncalieri 21 - 10131 Torino - ITALY
Tel +39-011-6600814 - Fax +39-011-6600687
jabber:ro.franchini@gmail.com skype:ro.franchini

Mime
View raw message