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

pear failure when using multiple views with JCas

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.1SDK
    • 2.4.0SDK
    • Core Java Framework
    • None

    Description

      A user reported that setting a sofa mapping in a pipeline initialization that included a Pear which used JCas, caused a failure where the JCas initialization couldn't find the classes to load.

      Running in debug mode showed that the JCas class loader was not using the Pear's class loader. Stepping through the code showed that casImpl's switchClassLoader method was failing to switch the classloader for the Pear's annotator, because of the multiple views. The code looked at the
      CAS's "jcas" field, and found it null (because it was for a view which had not yet been referenced as a JCas).

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: