You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Luca Toldo <lu...@gmail.com> on 2017/07/07 10:57:56 UTC

JCAS range type uima.cas.FSArray for feature ... does not match the CAS range type uima.cas.StringArray for the feature

Dear All,
I've automatically generated a TypeSystem from XSD, and then with JCasGen generated the java code.

When I try to run a small code, I get many error messages that follow the pattern in subject.

When I check the TypeSystem.xml indeed I find that there are features with the specific types ... 

Workaround I am currently doing is to comment out those features. Not elegant but it works.

I would however appreciate some advice on how to avoid that clash ... and why is not detected at JCasGen or compilation time.

Thankyou

Re: JCAS range type uima.cas.FSArray for feature ... does not match the CAS range type uima.cas.StringArray for the feature

Posted by Richard Eckart de Castilho <re...@apache.org>.
I'm seeing something similar too:

2017-09-08 14:27:12  WARN [main] (FSClassRegistry) - CAS type system type "de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Compound" defines field "splits" with range "class org.apache.uima.jcas.cas.FSArray", but JCas getter method is returning "interface java.util.List" which is not a subtype of the declared range.

I have opened an issue here: https://issues.apache.org/jira/browse/UIMA-5557

Cheers,

-- Richard

> On 07.07.2017, at 13:57, Luca Toldo <lu...@gmail.com> wrote:
> 
> Dear All,
> I've automatically generated a TypeSystem from XSD, and then with JCasGen generated the java code.
> 
> When I try to run a small code, I get many error messages that follow the pattern in subject.
> 
> When I check the TypeSystem.xml indeed I find that there are features with the specific types ... 
> 
> Workaround I am currently doing is to comment out those features. Not elegant but it works.
> 
> I would however appreciate some advice on how to avoid that clash ... and why is not detected at JCasGen or compilation time.
> 
> Thankyou


Re: JCAS range type uima.cas.FSArray for feature ... does not match the CAS range type uima.cas.StringArray for the feature

Posted by Marshall Schor <ms...@schor.com>.
could we have a small example of the type system,
a corresponding JCas generated class,
and can you say which version of UIMA you are using, and how you ran JCasGen?

-Marshall


On 7/7/2017 6:57 AM, Luca Toldo wrote:
> Dear All,
> I've automatically generated a TypeSystem from XSD, and then with JCasGen generated the java code.
>
> When I try to run a small code, I get many error messages that follow the pattern in subject.
>
> When I check the TypeSystem.xml indeed I find that there are features with the specific types ... 
>
> Workaround I am currently doing is to comment out those features. Not elegant but it works.
>
> I would however appreciate some advice on how to avoid that clash ... and why is not detected at JCasGen or compilation time.
>
> Thankyou
>