uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Eckart de Castilho (JIRA)" <...@uima.apache.org>
Subject [jira] [Created] (UIMA-4788) Reader close method invoked twice by JCasIterator
Date Fri, 05 Feb 2016 11:09:39 GMT
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)

Mime
View raw message