Skip to content
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

Creating a CAS with a classloader that has no access to org.apache.uima.jcas.cas breaks JCas #365

Open
reckart opened this issue Dec 7, 2023 · 0 comments
Assignees
Labels
🦟 Bug Something isn't working

Comments

@reckart
Copy link
Member

reckart commented Dec 7, 2023

Describe the bug
Creating a CAS with a classloader that has no access to org.apache.uima.jcas.cas breaks JCas.

To Reproduce
Steps to reproduce the behavior:

  1. Create a CAS using a resource manager that has an extension classloader set which has no access to org.apache.uima.jcas.cas
  2. Try creating an annotation in that CAS using CAS.createAnnotation.
  3. Exception that TOP cannot be found

Expected behavior
Should work. Actually, I think that well-known UIMA JCas classes should always be loaded through the UIMA frameworks's own classloader (e.g. the classloader for the CAS class) and not through the extension classloader.

Please complete the following information:

  • Version: 3.5.0
@reckart reckart added the 🦟 Bug Something isn't working label Dec 7, 2023
@reckart reckart self-assigned this Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🦟 Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant