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

ThreadContextClassLoader ignored by ResourceManager when extension classloader is set #315

Closed
reckart opened this issue Jun 28, 2023 · 0 comments
Assignees
Labels
🦟 Bug Something isn't working
Milestone

Comments

@reckart
Copy link
Member

reckart commented Jun 28, 2023

Describe the bug
The UIMA ResourceManager implementation ignores a potentially available ThreadContextClassLoader when an extension classloader is set.

Expected behavior
Instead of ignoring the TCCL, the TCCL should be considered if a class could not be loaded through the extension classloader. The extension classloader should take precedence over the TCCL, but it should not completely block it.

Please complete the following information:

  • Version: 3.4.1
@reckart reckart added the 🦟 Bug Something isn't working label Jun 28, 2023
@reckart reckart added this to the 3.4.2 milestone Jun 28, 2023
@reckart reckart self-assigned this Jun 28, 2023
reckart added a commit that referenced this issue Jun 29, 2023
…extension classloader is set

- Consider TCCL when looking for class
- Improved exception where we hook up the suppressed exceptions from all the classloaders that failed and where the error message includes the classloaders as well
- Deprecated two methods that are no longer used or should no longer be used because they would only take a single classloader into account instead of trying multiple
reckart added a commit that referenced this issue Jun 29, 2023
…er-ignored-by-ResourceManager-when-extension-classloader-is-set

Issue #315: ThreadContextClassLoader ignored by ResourceManager when extension classloader is set
@reckart reckart closed this as completed Jun 29, 2023
@reckart reckart modified the milestones: 3.4.2, 3.5.0 Oct 12, 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