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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3
    • Core Java Framework
    • 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

            cwiklik Jaroslaw Cwiklik
            cwiklik Jaroslaw Cwiklik
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: