tdiesler opened a new pull request, #16053:
URL: https://github.com/apache/camel/pull/16053

   https://issues.apache.org/jira/browse/CAMEL-21361
   
   The root cause was a convoluted TCCL issue. In general, when you work with 
TCCL, you SHOULD reset it to its original value - like so ...
   
   ```
           var tccLoader = Thread.currentThread().getContextClassLoader();
           try {
               ClassLoader cl = createClassLoader();
               Thread.currentThread().setContextClassLoader(cl);
   
               // do stuff
   
           } finally {
               Thread.currentThread().setContextClassLoader(tccLoader);
           }
   ```


-- 
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: commits-unsubscr...@camel.apache.org

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

Reply via email to