did the wrong reply - to - should have gone to the dev list...Forwarding now... 
-M



-------- Forwarded Message --------
Subject:        Re: [VOTE] uimaj-3.0.0 rc1
Date:   Sun, 28 Jan 2018 13:52:14 -0500
From:   Marshall Schor <[email protected]>
To:     Richard Eckart de Castilho <[email protected]>



Hi,

I think I became a bit overzealous when catching this situation.

A better approach is to issue a warning, return a value which if used, will
cause a later runtime error, but otherwise, continue. 
If the class is converted to a proper v3 JCas class, the value will never be
used, so no runtime error would occur.

That will be much friendlier to people trying to upgrade from alpha levels.

I'll put in a Jira for this.

-Marshall

On 1/27/2018 6:33 PM, Richard Eckart de Castilho wrote:
> As part of trying out WebAnno + DKPro Core against the latest UIMAv3,
> I have installed the Eclipse plugins from this RC into an existing Eclipse
> in order to open an type system descriptor and to regenerate JCas classes.
>
> However, I cannot open the type system descriptor with the Component Editor:
>
> java.lang.ExceptionInInitializerError
>       at java.lang.Class.forName0(Native Method)
>       at java.lang.Class.forName(Class.java:348)
>       at 
> org.apache.uima.cas.impl.FSClassRegistry.maybeLoadJCas(FSClassRegistry.java:834)
>       at 
> org.apache.uima.cas.impl.FSClassRegistry.createJCasClassInfo(FSClassRegistry.java:579)
>       at 
> org.apache.uima.cas.impl.FSClassRegistry.maybeCreateJCasClassInfo(FSClassRegistry.java:566)
>       at 
> org.apache.uima.cas.impl.FSClassRegistry.getOrCreateJCasClassInfo(FSClassRegistry.java:554)
>       at 
> org.apache.uima.cas.impl.TypeSystemImpl.getJcci(TypeSystemImpl.java:1672)
>       at 
> org.apache.uima.cas.impl.TypeSystemImpl.computeAdjustedFeatureOffsets(TypeSystemImpl.java:1485)
>       at 
> org.apache.uima.cas.impl.TypeSystemImpl.computeAdjustedFeatureOffsets(TypeSystemImpl.java:1519)
>       at 
> org.apache.uima.cas.impl.TypeSystemImpl.computeAdjustedFeatureOffsets(TypeSystemImpl.java:1519)
>       at 
> org.apache.uima.cas.impl.TypeSystemImpl.computeAdjustedFeatureOffsets(TypeSystemImpl.java:1519)
>       at 
> org.apache.uima.cas.impl.TypeSystemImpl.commit(TypeSystemImpl.java:1410)
>       at org.apache.uima.cas.impl.CASImpl.commitTypeSystem(CASImpl.java:1607)
>       at 
> org.apache.uima.util.CasCreationUtils.doCreateCas(CasCreationUtils.java:614)
>       at 
> org.apache.uima.util.CasCreationUtils.createCas(CasCreationUtils.java:362)
>       at 
> org.apache.uima.taeconfigurator.editors.MultiPageEditor.createCas(MultiPageEditor.java:4018)
>
> Unfortunately, I do not see which class fails to load.
>
> I can open type system descriptors containing type which are generated via 
> the Maven JCasGen plugin.
>
> However, when I try opening a type system descriptor for which there is an 
> existing UIMAv3-alpha
> JCas class (which are checked into the code repo), I get this error.
>
> When I manually delete the UIMAv3-alpha JCas classes, then I can open the 
> type system descriptor
> without this error.
>
> My feeling is that the Component Descriptor should not try to access JCas 
> classes.
>
> You can probably reproduce this using an Eclipse with the 3.0.0-RC1 plugins 
> installed 
> and trying to open 
> "dkpro-core-api-coref-asl/src/main/resources/desc/type/coref.xml" 
> the from document-metadata-uv3-beta-fix [1] in the Component Editor.
>
> Cheers,
>
> -- Richard 
>
> [1] https://github.com/mischor/dkpro-core/tree/document-metadata-uv3-beta-fix

Reply via email to