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

CAS.setSofaDataString on Initial View throws ArrayIndexOutOfBoundsException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1
    • Core Java Framework
    • None

    Description

      If I create a new CAS:
      CAS cas = CasCreationUtils.createCas(new TypeSystemDescription_impl(), null, null);

      And then call cas.setSofaDataString("this is a test","text");

      I get an ArrayIndexOutOfBoundsException.

      However, if I call cas.setDocumentText("this is a test");

      it works.

      There is a slight difference in their implementations. setSofaDataString was calling this.baseCas.createInitialSofa(mime), whereas setDocumentText was calling this.createInitialSofa(mime).

      Attachments

        Activity

          People

            eddie_epstein Eddie Epstein
            alally Adam P. Lally
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: