-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using builtin annotation classes before creating a CAS can break type system management #234
Comments
Can you provide a runnable Java project (preferably a Maven Project) which allows reproducing your problem? |
Hi Team,
Appreciate your response.
Let me prepare and will send.
Its happening once migrating from uima v2 to uima v3.
Regards,
Raghunath...
…On Thu, 28 Jul, 2022, 10:56 pm Richard Eckart de Castilho, < ***@***.***> wrote:
Can you provide a runnable Java project (preferably a Maven Project) which
allows reproducing your problem?
—
Reply to this email directly, view it on GitHub
<#234 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEE3MWNJQKFI7X5PLJZCXJDVWK7DVANCNFSM546A7EHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
It seems this case can happen when annotation classes are used before a CAS / type-system is initialized. Due to the initialization order, it can happen that the JCCI for a built-in JCas class is set up before the classes static final |
…n break type system management - Try fixing the case if a JCCI was created with a bad type ID because the type ID had not been set yet
- Workaround apache/uima-uimaj#234 by explicitly creating a dummy CAS before the test - Add Apache SNAPSHOT repo - Add slf4j-simple dependency for basic logging in timeml test
- Avoid UIMA bug when using Managed(J)Cas - apache/uima-uimaj#234 - by initializing a dummy CAS in a static block.
No issue. Set version to 3.5.0-SNAPSHOT
JCas jCas=UIMAFramework.produceAnalysisEngine(AnalysisEngineDescription desc, ResourceManagerFactory.newResourceManager(),
null).newJCas();
Type annotationType = cas.getJCas().getCasType(org.apache.uima.jcas.tcas.Annotation.type);
Exception will be raised as Annotation is missing.
uima: 3.3.0
ruta-core: 3.2.0
The text was updated successfully, but these errors were encountered: