You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Marshall Schor (JIRA)" <de...@uima.apache.org> on 2017/09/28 02:32:00 UTC

[jira] [Resolved] (UIMA-5593) uv3 deserialize compressed form 4 sofas not being indexed correctly

     [ https://issues.apache.org/jira/browse/UIMA-5593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marshall Schor resolved UIMA-5593.
----------------------------------
    Resolution: Fixed

> uv3 deserialize compressed form 4 sofas not being indexed correctly
> -------------------------------------------------------------------
>
>                 Key: UIMA-5593
>                 URL: https://issues.apache.org/jira/browse/UIMA-5593
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>            Reporter: Marshall Schor
>            Assignee: Marshall Schor
>             Fix For: 3.0.0SDK-beta
>
>
> Traced a strange bug to the deserialization for form 4 compressed - getting a NPE.  Root cause is the index info being deserialized is written with a conversion that changes the "address" of FSs to incrementing indexes (because they compress better).  But the serialization code doesn't do this for Sofas.  Mostly this doesn't matter by accident.  But the special test case done in DocumentAnnotation test trips this bug.
> Fix is in deserialization: after reading the sofa index number (which was written as v2 addresses, not converted to sequential) is to convert it to sequential so the rest of the code (which expects this) works.  In v2, not an issue, but an improvement was made in v3 which broke this.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)