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

Potential failure to look up FsGenerator3 in OSGI-like contexts #252

Closed
reckart opened this issue Oct 12, 2022 · 0 comments
Closed

Potential failure to look up FsGenerator3 in OSGI-like contexts #252

reckart opened this issue Oct 12, 2022 · 0 comments
Assignees
Labels
🦟 Bug Something isn't working
Milestone

Comments

@reckart
Copy link
Member

reckart commented Oct 12, 2022

Describe the bug
There can be cases in a multi-classloader (OSGI) environment where a class looked up through the UIMAClassLoader may not have access to org.apache.uima.cas.impl.FsGenerator3. This is problematic because the UIMAClassLoader is mostly used to construct these FsGenerator3 instances for use in the JCas/TypeSystem.

Expected behavior
A workaround seems to be to force UIMAClassLoader to look up classes in org.apache.uima.cas.impl using the classloader of org.apache.uima.cas.impl.FsGenerator3.

Please complete the following information:

  • Version: 3.3.0
@reckart reckart added the 🦟 Bug Something isn't working label Oct 12, 2022
@reckart reckart added this to the 3.4.0 milestone Oct 12, 2022
@reckart reckart self-assigned this Oct 12, 2022
reckart added a commit that referenced this issue Oct 12, 2022
…ntexts

- If the class to be looked up is in the FsGenerator3 package, use the classloader of FsGenerator3
reckart added a commit that referenced this issue Oct 12, 2022
…ook-up-FsGenerator3-in-OSGI-like-contexts

Issue #252: Potential failure to look up FsGenerator3 in OSGI-like contexts
@reckart reckart closed this as completed Oct 12, 2022
reckart added a commit that referenced this issue Oct 14, 2022
…manceTuning.properties

* main: (74 commits)
  Issue #252: Potential failure to look up FsGenerator3 in OSGI-like contexts
  Issue #225: Improve deployment in OSGi environments
  Issue #226: Provide SPI interfaces to locate descriptors and JCas classes
  Issue #226: Provide SPI interfaces to locate descriptors and JCas classes
  Issue #247 - RelativePathResolver should consider TCCL
  #245 - Utility method for loading type systems in SPI providers
  #245 - Utility method for loading type systems in SPI providers
  #245 - Utility method for loading type systems in SPI providers
  #245 - Utility method for loading type systems in SPI providers
  Issue #225: Improve deployment in OSGi environments
  Issue #225: Improve deployment in OSGi environments
  Issue #226: Provide SPI interfaces to locate descriptors
  Issue #226: Provide SPI interfaces to locate descriptors
  [UIMA-6481] Enable issue management in GitHub repos
  Issue #226: Provide SPI interfaces to locate descriptors
  Issue #226: Provide SPI interfaces to locate descriptors
  Issue #228 - Move the UimaDecompiler class
  Issue #226: Provide SPI interfaces to locate descriptors
  Issue #228 - Move the UimaDecompiler class
  Issue #230: Remove version overrides in Maven plugin modules
  ...
reckart added a commit that referenced this issue Nov 24, 2022
…ntation-from-website-into-maintainer-guide

* main:
  Issue #255: File handle leak accessing performanceTuning.properties
  Issue #252: Potential failure to look up FsGenerator3 in OSGI-like contexts
reckart added a commit that referenced this issue Jan 11, 2023
…ipse-plugins-during-release-builds

* main: (94 commits)
  No issue: Remove Jira line from PR template - we do not use Jira anymore.
  #270 - Update dependencies
  #270 - Update dependencies
  #267 - UIMA Log4jLogger_impl not compatible with log4j 2.18.0+
  No issue. Adjust jira legacy module version.
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release uimaj-3.3.1
  Issue #258: Apache UIMA Java SDK 3.3.1 release
  Issue #258: Apache UIMA Java SDK 3.3.1 release
  Issue #258: Apache UIMA Java SDK 3.3.1 release
  Issue #260: Issues-fixed report for GitHub and Jira
  Issue #258: Apache UIMA Java SDK 3.3.1 release
  Issue #258: Apache UIMA Java SDK 3.3.1 release
  Issue #258: Apache UIMA Java SDK 3.3.1 release
  Issue #255: File handle leak accessing performanceTuning.properties
  Issue #252: Potential failure to look up FsGenerator3 in OSGI-like contexts
  Issue #225: Improve deployment in OSGi environments
  Issue #226: Provide SPI interfaces to locate descriptors and JCas classes
  Issue #226: Provide SPI interfaces to locate descriptors and JCas classes
  Issue #247 - RelativePathResolver should consider TCCL
  ...

% Conflicts:
%	uimaj-parent/pom.xml
reckart added a commit that referenced this issue Jan 20, 2023
…-a-PEAR-context

* main: (91 commits)
  Issue #283: Update issue report generation
  Issue #283: Update issue report generation
  [UIMA-6436] Move maintainer documentation from website into maintainer guide
  [UIMA-6436] Move maintainer documentation from website into maintainer guide
  [UIMA-6436] Move maintainer documentation from website into maintainer guide
  Issue #265: Unable to release without auto-staging
  Issue #267 - UIMA Log4jLogger_impl not compatible with log4j 2.18.0+
  Issue #268: UIMA components log and then re-throw exceptions which usually leads to errors being logged twice
  Issue #275: Improved error message made it even more misleading
  Issue #266: Unable to install UIMA 3.3.1 Eclipse Plugins in Eclipse 2022-09
  No issue: Remove Jira line from PR template - we do not use Jira anymore.
  #270 - Update dependencies
  #270 - Update dependencies
  #267 - UIMA Log4jLogger_impl not compatible with log4j 2.18.0+
  No issue. Adjust jira legacy module version.
  Issue #252: Potential failure to look up FsGenerator3 in OSGI-like contexts
  Issue #225: Improve deployment in OSGi environments
  Issue #226: Provide SPI interfaces to locate descriptors and JCas classes
  Issue #226: Provide SPI interfaces to locate descriptors and JCas classes
  Issue #247 - RelativePathResolver should consider TCCL
  ...
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