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-5097) Possible bug with UimaContextHolder
Date Thu, 01 Sep 2016 11:42:20 GMT
Richard Eckart de Castilho created UIMA-5097:

             Summary: Possible bug with UimaContextHolder
                 Key: UIMA-5097
                 URL: https://issues.apache.org/jira/browse/UIMA-5097
             Project: UIMA
          Issue Type: Bug
          Components: Core Java Framework
    Affects Versions: 2.9.0SDK
            Reporter: Richard Eckart de Castilho
             Fix For: 2.9.1SDK

There may be a bug that might be related to the UimaContextHolder not being cleaned up probably
(probably in case of some kind of failure).

The problem appears when running the uimafit-core tests in Eclipse. Here all tests run in
the same JVM instance which allows "global" information like thread locals to be carried over
between unit tests.

Then running all tests and when the `ViewCreatorAnnotatorTest` runs before the `SimplePipelineTest`,
then the deserialization of an XMI file fails because `_InitialView` is still mapped to `myView`
in the UIMA context. Debugging yields that the UIMAContext in use for the SimplePipelineTest
apparently still belongs to the `ViewCreatorAnnotatorTest` because the *mQualifiedContextName*
is `/org.apache.uima.fit.component.ViewCreatorAnnotatorTest$SofaAwareAnnotator/`

This message was sent by Atlassian JIRA

View raw message