Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
2.2.2
-
None
-
n/a
Description
The original code called process(aCas) and returned the EmptyCasIterator. Thus CASes produced were thrown away. The following is a two line change fix:
org.apache.uima.analysis_engine.impl.PearAnalysisEngineWrapper
public CasIterator processAndOutputNewCASes(CAS aCAS)
throws AnalysisEngineProcessException {
UIMAFramework.getLogger(this.getClass()).logrb(Level.FINE,
this.getClass().getName(), "processAndOutputNewCASes",
LOG_RESOURCE_BUNDLE, "UIMA_analysis_engine_process_begin__FINE",
new Object[]
CasIterator result = this.ae.processAndOutputNewCASes(aCAS); // FIXED LINE
UIMAFramework.getLogger(this.getClass()).logrb(Level.FINE,
this.getClass().getName(), "processAndOutputNewCASes",
LOG_RESOURCE_BUNDLE, "UIMA_analysis_engine_process_end__FINE",
new Object[] { this.ae.getAnalysisEngineMetaData().getName() }
);
return result; // FIXED LINE
}
Just the indicated lines are changed.