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

Misleading error message when JCas type is not registered #235

Closed
reckart opened this issue Jul 29, 2022 · 0 comments
Closed

Misleading error message when JCas type is not registered #235

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

Comments

@reckart
Copy link
Member

reckart commented Jul 29, 2022

Describe the bug
When a type is defined in an XML type descriptor but for some reason has not been registered in the JCasRegistry, a misleading error message is produced:

Type "my.Type" used in Java code, but was not declared in XML type descriptor.

It was in the descriptor, but it is not registered.

To Reproduce
Tricky. This can be force by isolating the UIMA framework from loading user-provided JCas classes.

Expected behavior
A better error message like maybe

Type "my.Type" defined in CAS type system and used in Java code, but was not registered in JCasRegistry.

Please complete the following information:

  • Version: 3.3.0
@reckart reckart added the 🦟 Bug Something isn't working label Jul 29, 2022
@reckart reckart added this to the 3.3.1 milestone Jul 29, 2022
@reckart reckart self-assigned this Jul 29, 2022
reckart added a commit that referenced this issue Jul 29, 2022
- Add new message
- Use this message when an unregistered but defined type is being used
reckart added a commit that referenced this issue Aug 15, 2022
…ge-when-JCas-type-is-not-registered

Issue #235: Misleading error message when JCas type is not registered
@reckart reckart closed this as completed Aug 15, 2022
reckart added a commit that referenced this issue Sep 23, 2024
- Minimum Java Version 1.8 -> 17
- maven-plugin-tools-javadoc -> 3.5.2
- maven 3.0 -> 3.2.5
- plexus-utils 2.0.4 -> 3.0.20
- Remove japicmp-maven-plugin config override provided by Apache UIMA parent POM
- Remove maven-gpg-plugin version override provided by Apache UIMA parent POM
- Remove apache-rat-plugin version override provided by Apache UIMA parent POM
- Remove unnecessary maven-compiler-plugin override
- Remove unnecessary maven-javadoc-plugin override
- Remove spotbugs profile provided by Apache UIMA parent POM
reckart added a commit that referenced this issue Sep 23, 2024
- Align asciidoc build with build in uimaj/ruta
- Set proper execution environment in bundles
- Fix a few minor issues in the documentation
reckart added a commit that referenced this issue Sep 23, 2024
- mockito 4.4.0 -> 5.4.0
- opentest4j 1.2.0 -> 1.3.0
- commons-io 2.11.0 -> 2.13.0
- commons-lang3 3.12.0 -> 3.13.0
- xmlunit 2.9.0 -> 2.9.1
reckart added a commit that referenced this issue Sep 23, 2024
- Disable quality checking profiles to speed up build
- Remove rat plugin which is now run by default by the UIMA parent POM
reckart added a commit that referenced this issue Sep 23, 2024
- Remove deprecated docbook module
reckart added a commit that referenced this issue Sep 23, 2024
reckart added a commit that referenced this issue Sep 23, 2024
- spring 5.3.25 -> 5.3.30
- maven 3.2.5 -> 3.8.1
reckart added a commit that referenced this issue Sep 23, 2024
reckart added a commit that referenced this issue Sep 23, 2024
- UIMA Parent POM 17-SNAPSHOT -> 17
- Added uimaFIT BOM
reckart added a commit that referenced this issue Sep 23, 2024
- uimaj 3.5.0-SNAPSHOT -> 3.5.0
- junit 5.10.0 -> 5.10.1
- junit-platform 1.10.0 -> 1.10.1
- mockito 5.4.0 -> 5.7.0
- commons-io 2.13.0 -> 2.15.0
- javassist 3.19.0 -> 3.29.2
- plexus-utils 3.0.20 -> 3.4.1
- groovy -> version override removed, inherited from parent POM (build dependency only)
reckart added a commit that referenced this issue Sep 23, 2024
reckart added a commit that referenced this issue Sep 23, 2024
- Fix version of BOM
reckart added a commit that referenced this issue Sep 23, 2024
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