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

CPE is sutck trying to retrieve a free CAS from the pool

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.1
    • 2.3
    • Collection Processing
    • None
    • Windows XP 32 bits

    Description

      Buggy scenario is a CPE with a first remote processor deployed as a Vinci service and an integrated CAS consumer that throws a ResourceProcessException in its process method.

      It is quite easy to reproduce with a dummy consumer with this implementation

      public void processCas(CAS aCAS) throws ResourceProcessException {
      throw new ResourceProcessException(new FileNotFoundException("file not found"));
      }

      It looks like the CPE is stuck trying to retrieve a CAS from the CAS pool that is apparently empty at some point.
      My feeling is that when you have an ResourceProcessException thrown in the last component of the CPE, the code that is supposed to release the CAS from the CAS pool is not properly called...

      If I suspend the process in Eclipse I can see that the CasConsumer and the Collection Reader pipelines Threads are waiting on the
      CPECasPool.getCas(long) method

      I attach the uima.log set to the FINEST level

      Attachments

        1. cpe.xml
          3 kB
          Olivier Terrier
        2. ProcessingUnit-patch.txt
          1 kB
          Jaroslaw Cwiklik
        3. uima.zip
          7 kB
          Olivier Terrier
        4. uima-cpe.jar
          350 kB
          Marshall Schor

        Activity

          People

            schor Marshall Schor
            oterrier Olivier Terrier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: