You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Bhavani Iyer (JIRA)" <ui...@incubator.apache.org> on 2009/11/07 01:49:32 UTC

[jira] Created: (UIMA-1653) XMI Serialization of replies is not checking for FS references when serializing incoming FSs

XMI Serialization of replies is not checking for FS references when serializing incoming FSs
--------------------------------------------------------------------------------------------

                 Key: UIMA-1653
                 URL: https://issues.apache.org/jira/browse/UIMA-1653
             Project: UIMA
          Issue Type: Bug
          Components: C++ Framework
            Reporter: Bhavani Iyer
            Assignee: Bhavani Iyer


As discovered by Matthias Wendt when the incoming FS has a feature with multiple references  which is set by the C++ annotator, the FS reference is not serialized.   
Mathias  provided the sample XMI below returned in the  reply from a C++ service where  the 'variant' feature gets an id-ref value of "4", but there is no object having xmi:id="4".
The feature 'variant'  has MultipleReferenceAllowed set to true.  The encompassing FS is passed to C++  annotator which sets the 'variant' feature. 

....(.........................n....K[..........$..T,...2....<?xml version
 ="1.0" encoding="UTF-8"?><xmi:XMI xmlns:examples="http:///org/apache/uima/e
 xamples.ecore" xmlns:cas="http:///uima/cas.ecore" xmlns:tcas="http:///uima/
 tcas.ecore" xmlns:xmi="http://www.omg.org/XMI"  xmi:version="2.0"><cas:NULL
 xmi:id="0"/> <cas:Sofa xmi:id="1" sofaNum="1" sofaID="_InitialView" mimeTy
 pe="text" sofaString="Load or edit text here."/>. <tcas:DocumentAnnotation
 xmi:id="2" sofa="1" begin="0" end="23" language="en"/>. <examples:David xmi
 :id="3" sofa="1" begin="0" end="1" variants="4"/>.<cas:View sofa="1" member
 s="2 3"/></xmi:XMI>....9......CasReference...-37f4a0fc:124c9361c79:-7feb..C
 ommand.......IdleTime.......?...MessageFrom...DAVEDETECTORQ..MessageType...
 ....Payload.......ServerURI...tcp://localhost:61616..TimeInAnalytic........
 `..TimeInProcessCAS........`..TimeInService...........TimeToDeserializeCAS.
 .......P..TimeToSerializeCAS...................   
                     


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


[jira] Closed: (UIMA-1653) XMI Serialization of replies is not checking for FS references when serializing incoming FSs

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

Eddie Epstein closed UIMA-1653.
-------------------------------

    Resolution: Fixed

looks good, thanks!

> XMI Serialization of replies is not checking for FS references when serializing incoming FSs
> --------------------------------------------------------------------------------------------
>
>                 Key: UIMA-1653
>                 URL: https://issues.apache.org/jira/browse/UIMA-1653
>             Project: UIMA
>          Issue Type: Bug
>          Components: C++ Framework
>            Reporter: Bhavani Iyer
>            Assignee: Bhavani Iyer
>         Attachments: UIMACPP-1653.patch
>
>
> As discovered by Matthias Wendt when the incoming FS has a feature with multiple references  which is set by the C++ annotator, the FS reference is not serialized.   
> Mathias  provided the sample XMI below returned in the  reply from a C++ service where  the 'variant' feature gets an id-ref value of "4", but there is no object having xmi:id="4".
> The feature 'variant'  has MultipleReferenceAllowed set to true.  The encompassing FS is passed to C++  annotator which sets the 'variant' feature. 
> ....(.........................n....K[..........$..T,...2....<?xml version
>  ="1.0" encoding="UTF-8"?><xmi:XMI xmlns:examples="http:///org/apache/uima/e
>  xamples.ecore" xmlns:cas="http:///uima/cas.ecore" xmlns:tcas="http:///uima/
>  tcas.ecore" xmlns:xmi="http://www.omg.org/XMI"  xmi:version="2.0"><cas:NULL
>  xmi:id="0"/> <cas:Sofa xmi:id="1" sofaNum="1" sofaID="_InitialView" mimeTy
>  pe="text" sofaString="Load or edit text here."/>. <tcas:DocumentAnnotation
>  xmi:id="2" sofa="1" begin="0" end="23" language="en"/>. <examples:David xmi
>  :id="3" sofa="1" begin="0" end="1" variants="4"/>.<cas:View sofa="1" member
>  s="2 3"/></xmi:XMI>....9......CasReference...-37f4a0fc:124c9361c79:-7feb..C
>  ommand.......IdleTime.......?...MessageFrom...DAVEDETECTORQ..MessageType...
>  ....Payload.......ServerURI...tcp://localhost:61616..TimeInAnalytic........
>  `..TimeInProcessCAS........`..TimeInService...........TimeToDeserializeCAS.
>  .......P..TimeToSerializeCAS...................   
>                      

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


[jira] Commented: (UIMA-1653) XMI Serialization of replies is not checking for FS references when serializing incoming FSs

Posted by "Eddie Epstein (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-1653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12774781#action_12774781 ] 

Eddie Epstein commented on UIMA-1653:
-------------------------------------

This scenario is for a C++ annotator running as a native UIMA AS service.
The example feature here, "variants", is a StringArrayFS. The issue
applies to any Array or List FS.

A workaround in the uimacpp 2.2.2 version is, in the C++ annotator,
to add the new FS to the index repository. This will cause the object to be
serialized out from the C++ service.


> XMI Serialization of replies is not checking for FS references when serializing incoming FSs
> --------------------------------------------------------------------------------------------
>
>                 Key: UIMA-1653
>                 URL: https://issues.apache.org/jira/browse/UIMA-1653
>             Project: UIMA
>          Issue Type: Bug
>          Components: C++ Framework
>            Reporter: Bhavani Iyer
>            Assignee: Bhavani Iyer
>
> As discovered by Matthias Wendt when the incoming FS has a feature with multiple references  which is set by the C++ annotator, the FS reference is not serialized.   
> Mathias  provided the sample XMI below returned in the  reply from a C++ service where  the 'variant' feature gets an id-ref value of "4", but there is no object having xmi:id="4".
> The feature 'variant'  has MultipleReferenceAllowed set to true.  The encompassing FS is passed to C++  annotator which sets the 'variant' feature. 
> ....(.........................n....K[..........$..T,...2....<?xml version
>  ="1.0" encoding="UTF-8"?><xmi:XMI xmlns:examples="http:///org/apache/uima/e
>  xamples.ecore" xmlns:cas="http:///uima/cas.ecore" xmlns:tcas="http:///uima/
>  tcas.ecore" xmlns:xmi="http://www.omg.org/XMI"  xmi:version="2.0"><cas:NULL
>  xmi:id="0"/> <cas:Sofa xmi:id="1" sofaNum="1" sofaID="_InitialView" mimeTy
>  pe="text" sofaString="Load or edit text here."/>. <tcas:DocumentAnnotation
>  xmi:id="2" sofa="1" begin="0" end="23" language="en"/>. <examples:David xmi
>  :id="3" sofa="1" begin="0" end="1" variants="4"/>.<cas:View sofa="1" member
>  s="2 3"/></xmi:XMI>....9......CasReference...-37f4a0fc:124c9361c79:-7feb..C
>  ommand.......IdleTime.......?...MessageFrom...DAVEDETECTORQ..MessageType...
>  ....Payload.......ServerURI...tcp://localhost:61616..TimeInAnalytic........
>  `..TimeInProcessCAS........`..TimeInService...........TimeToDeserializeCAS.
>  .......P..TimeToSerializeCAS...................   
>                      

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


[jira] Updated: (UIMA-1653) XMI Serialization of replies is not checking for FS references when serializing incoming FSs

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

Marshall Schor updated UIMA-1653:
---------------------------------

    Fix Version/s: 2.3C

> XMI Serialization of replies is not checking for FS references when serializing incoming FSs
> --------------------------------------------------------------------------------------------
>
>                 Key: UIMA-1653
>                 URL: https://issues.apache.org/jira/browse/UIMA-1653
>             Project: UIMA
>          Issue Type: Bug
>          Components: C++ Framework
>            Reporter: Bhavani Iyer
>            Assignee: Bhavani Iyer
>             Fix For: 2.3C
>
>         Attachments: UIMACPP-1653.patch
>
>
> As discovered by Matthias Wendt when the incoming FS has a feature with multiple references  which is set by the C++ annotator, the FS reference is not serialized.   
> Mathias  provided the sample XMI below returned in the  reply from a C++ service where  the 'variant' feature gets an id-ref value of "4", but there is no object having xmi:id="4".
> The feature 'variant'  has MultipleReferenceAllowed set to true.  The encompassing FS is passed to C++  annotator which sets the 'variant' feature. 
> ....(.........................n....K[..........$..T,...2....<?xml version
>  ="1.0" encoding="UTF-8"?><xmi:XMI xmlns:examples="http:///org/apache/uima/e
>  xamples.ecore" xmlns:cas="http:///uima/cas.ecore" xmlns:tcas="http:///uima/
>  tcas.ecore" xmlns:xmi="http://www.omg.org/XMI"  xmi:version="2.0"><cas:NULL
>  xmi:id="0"/> <cas:Sofa xmi:id="1" sofaNum="1" sofaID="_InitialView" mimeTy
>  pe="text" sofaString="Load or edit text here."/>. <tcas:DocumentAnnotation
>  xmi:id="2" sofa="1" begin="0" end="23" language="en"/>. <examples:David xmi
>  :id="3" sofa="1" begin="0" end="1" variants="4"/>.<cas:View sofa="1" member
>  s="2 3"/></xmi:XMI>....9......CasReference...-37f4a0fc:124c9361c79:-7feb..C
>  ommand.......IdleTime.......?...MessageFrom...DAVEDETECTORQ..MessageType...
>  ....Payload.......ServerURI...tcp://localhost:61616..TimeInAnalytic........
>  `..TimeInProcessCAS........`..TimeInService...........TimeToDeserializeCAS.
>  .......P..TimeToSerializeCAS...................   
>                      

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


[jira] Updated: (UIMA-1653) XMI Serialization of replies is not checking for FS references when serializing incoming FSs

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

Bhavani Iyer updated UIMA-1653:
-------------------------------

    Attachment: UIMACPP-1653.patch

Modified the XmiWriter to look up  and include FS references in all FSs that are to be serialized.  
FSs received from a previous deserialization were not being checked for reference type features whose values were updated by the annotator.  
Added a test case.

> XMI Serialization of replies is not checking for FS references when serializing incoming FSs
> --------------------------------------------------------------------------------------------
>
>                 Key: UIMA-1653
>                 URL: https://issues.apache.org/jira/browse/UIMA-1653
>             Project: UIMA
>          Issue Type: Bug
>          Components: C++ Framework
>            Reporter: Bhavani Iyer
>            Assignee: Bhavani Iyer
>         Attachments: UIMACPP-1653.patch
>
>
> As discovered by Matthias Wendt when the incoming FS has a feature with multiple references  which is set by the C++ annotator, the FS reference is not serialized.   
> Mathias  provided the sample XMI below returned in the  reply from a C++ service where  the 'variant' feature gets an id-ref value of "4", but there is no object having xmi:id="4".
> The feature 'variant'  has MultipleReferenceAllowed set to true.  The encompassing FS is passed to C++  annotator which sets the 'variant' feature. 
> ....(.........................n....K[..........$..T,...2....<?xml version
>  ="1.0" encoding="UTF-8"?><xmi:XMI xmlns:examples="http:///org/apache/uima/e
>  xamples.ecore" xmlns:cas="http:///uima/cas.ecore" xmlns:tcas="http:///uima/
>  tcas.ecore" xmlns:xmi="http://www.omg.org/XMI"  xmi:version="2.0"><cas:NULL
>  xmi:id="0"/> <cas:Sofa xmi:id="1" sofaNum="1" sofaID="_InitialView" mimeTy
>  pe="text" sofaString="Load or edit text here."/>. <tcas:DocumentAnnotation
>  xmi:id="2" sofa="1" begin="0" end="23" language="en"/>. <examples:David xmi
>  :id="3" sofa="1" begin="0" end="1" variants="4"/>.<cas:View sofa="1" member
>  s="2 3"/></xmi:XMI>....9......CasReference...-37f4a0fc:124c9361c79:-7feb..C
>  ommand.......IdleTime.......?...MessageFrom...DAVEDETECTORQ..MessageType...
>  ....Payload.......ServerURI...tcp://localhost:61616..TimeInAnalytic........
>  `..TimeInProcessCAS........`..TimeInService...........TimeToDeserializeCAS.
>  .......P..TimeToSerializeCAS...................   
>                      

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