Richard Eckart de Castilho created UIMA-4788:
------------------------------------------------
Summary: Reader close method invoked twice by JCasIterator
Key: UIMA-4788
URL: https://issues.apache.org/jira/browse/UIMA-4788
Project: UIMA
Issue Type: Bug
Components: uimaFIT
Affects Versions: 2.1.0uimaFIT
Reporter: Richard Eckart de Castilho
Priority: Minor
Apparently, the JCasIterator from uimaFIT invokes the close method of readers
twice - possible for other components as well:
First call
{noformat}
at MyReader.close(MyReader.java...)
at org.apache.uima.fit.util.LifeCycleUtil.close(LifeCycleUtil.java:79)
at org.apache.uima.fit.pipeline.JCasIterator.destroy(JCasIterator.java:189)
at org.apache.uima.fit.pipeline.JCasIterator.next(JCasIterator.java:149)
at org.apache.uima.fit.pipeline.JCasIterator.next(JCasIterator.java:48)
at MyReaderTest(MyReader.java...)
{noformat}
Second call
{noformat}
at MyReader.close.close(MyReader.java...)
at
org.apache.uima.collection.CollectionReader_ImplBase.destroy(CollectionReader_ImplBase.java:97)
at org.apache.uima.fit.util.LifeCycleUtil.destroy(LifeCycleUtil.java:62)
at org.apache.uima.fit.pipeline.JCasIterator.destroy(JCasIterator.java:190)
at org.apache.uima.fit.pipeline.JCasIterator.next(JCasIterator.java:149)
at org.apache.uima.fit.pipeline.JCasIterator.next(JCasIterator.java:48)
at MyReaderTest(MyReader.java...)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)