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

   **Describe the bug**
   UIMA components log and then re-throw exceptions which usually leads to 
errors being logged twice:
   * first time by the UIMA component wrapper
   * then by the code that runs the component/pipeline
   
   In particular in unit tests that intentionally trigger exceptions this is 
highly annoying as these exceptions logged on the error level are spamming the 
output and distract developers from other relevant exceptions.
   
   **To Reproduce**
   * Build a component that throws an exception e.g. in the `process` method
   * Run that and catch exceptions and log them.
   
   **Expected behavior**
   At least this should be optional behavior used for cases where the runner 
code does not handle exceptions. However, to be honest, I believe if the runner 
code does not log exceptions produced by the components, then that is a problem 
in the runner code and not a thing the components should be concerned with.
   
   **Please complete the following information:**
    - Version: 3.3.1
   


-- 
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-unsubscr...@uima.apache.org.apache.org

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

Reply via email to