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

XCAS Serialization doesn't handle StringArrays with null elements

    XMLWordPrintableJSON

Details

    Description

      This code illustrates the problem:

      //create string array where some elements are unset (null)
      StringArrayFS strArray = cas.createStringArrayFS(3);
      strArray.set(1, "value");
      cas.getIndexRepository().addFS(strArray);

      //serialize to XCAS
      ByteArrayOutputStream baos = new ByteArrayOutputStream();
      XCASSerializer.serialize(cas,baos);

      This problem affects Vinci services

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: