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

The UIMA core code fails to unlock a CAS if there is an exception in CasMultiplier's next() or hasNext() methods

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3
    • Component/s: Core Java Framework
    • Labels:
      None

      Description

      If there is an exception in user's Cas Multiplier hasNext() or next() method, the framework does not unlock the input CAS. If an application attempts to reset a CAS that failed in above methods, the following is produced: CASAdminException: Can't flush CAS, flushing is disabled.
      Modify AnalysisComponentCasIterator (an inner class of PrimitiveAnalysisEngine_impl) to call

      ((CASImpl)mInputCas).restoreClassLoaderUnlockCas();

      in both hasNext() and next() while handling an exception thrown from user's code.

        Attachments

          Activity

            People

            • Assignee:
              cwiklik Jerry Cwiklik
              Reporter:
              cwiklik Jerry Cwiklik
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: