Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-5741

protect UIMA Class loader in multi-threaded get resource contexts

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.10.2SDK, 3.0.0SDK
    • 3.0.1SDK, 2.10.3SDK
    • Core Java Framework
    • None

    Description

      I have seen one case where multiple threads were being used where a UIMA Class Loader was being used to load a resource (Type system Descriptor -> type System was resolving an "import by name"), where the getResource returned (only once) a spurious "null" result.

      This is likely due to some multithreading issue in get Resource.  Add a sync using the same multi-threaded parallel approach used for class loaded, to getResource, to protect against this case.

      Attachments

        Activity

          People

            schor Marshall Schor
            schor Marshall Schor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: