You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Adam Lally (JIRA)" <ui...@incubator.apache.org> on 2009/05/11 22:28:46 UTC

[jira] Created: (UIMA-1344) XCAS Serialization doesn't handle StringArrays with null elements

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.


[jira] Closed: (UIMA-1344) XCAS Serialization doesn't handle StringArrays with null elements

Posted by "Adam Lally (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Lally closed UIMA-1344.
----------------------------

    Resolution: Fixed

Fixed to write empty array element to XCAS instead of throwing NPE.

> 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.