You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by GitBox <gi...@apache.org> on 2022/07/29 11:41:33 UTC

[GitHub] [uima-uimaj] reckart opened a new issue, #235: Misleading error message when JCas type is not registered

reckart opened a new issue, #235:
URL: https://github.com/apache/uima-uimaj/issues/235

   **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
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@uima.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [uima-uimaj] reckart closed issue #235: Misleading error message when JCas type is not registered

Posted by GitBox <gi...@apache.org>.
reckart closed issue #235: Misleading error message when JCas type is not registered
URL: https://github.com/apache/uima-uimaj/issues/235


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@uima.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org