[ 
https://issues.apache.org/jira/browse/UIMA-476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509988
 ] 

Marshall Schor commented on UIMA-476:
-------------------------------------

This is (I think) due to incomplete implementation of array types in the 
CASMgrSerializer class.  This class is used when the serialization is to 
include the type system.  SOAP services use this, and I believe the C++ 
interoperability layer also may use it.

This class I think fails to capture the existence of user-defined array types, 
when serializing, and when deserializing, consequently never creates new 
user-defined array types.

A simple test case could probably be done by creating a CAS having an type with 
a feature which is an FSArray of a specific type.  Then call the serialize 
code, to create an instance of CASMgrSerializer.  Then call reinit using that 
object and you should see the bug - the feature range no longer will be an 
array (in the sense that "arrayCodeToTypeMap" in the TypeSystem object doesn't 
get updated to reflect this.

Thilo - can you take a look and see if you can confirm this, and if so, add the 
code to (a) record the additional info in CASMgrSerializer to know about these 
array types, and (b) use that when deserializing?

> FSArray causes error in SOAP service
> ------------------------------------
>
>                 Key: UIMA-476
>                 URL: https://issues.apache.org/jira/browse/UIMA-476
>             Project: UIMA
>          Issue Type: Bug
>          Components: Transport Adapters - SOAP, Vinci
>    Affects Versions: 2.1
>         Environment: UIMA 2.1 and previous versions
>            Reporter: Yoshinobu KANO
>
> When we run a SOAP service with any type system which uses FSArray,
> AnalysisEngineProcessException occurs,
> though the same component can be run as a local service.
> It occurs in the type system checking, independently of the component 
> implementations.
> The error says:
> Caused by: org.apache.uima.UIMARuntimeException: The JCas cannot be
> initialized.  The following errors occurred: The JCAS range type
> uima.cas.FSArray for feature <OurFeatureName> of type <OurTypeName> does
> not match the CAS range <OurFeatureTypeName>[] for the feature.
> # replaced our specific feature/type names.

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