XCAS Serialization doesn't handle StringArrays with null elements
-----------------------------------------------------------------

                 Key: UIMA-1344
                 URL: https://issues.apache.org/jira/browse/UIMA-1344
             Project: UIMA
          Issue Type: Bug
          Components: Core Java Framework, Transport Adapters - SOAP, Vinci
    Affects Versions: 2.2.2
            Reporter: Adam Lally
            Assignee: Adam Lally
             Fix For: 2.3


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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to