You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Richard Eckart de Castilho <re...@apache.org> on 2017/09/08 13:07:19 UTC

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

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