C0urante commented on code in PR #13182: URL: https://github.com/apache/kafka/pull/13182#discussion_r1123292638
########## connect/runtime/src/main/java/org/apache/kafka/connect/runtime/isolation/DelegatingClassLoader.java: ########## @@ -419,7 +423,14 @@ private <T> Collection<PluginDesc<T>> getServiceLoaderPluginDesc(Class<T> klass, Collection<PluginDesc<T>> result = new ArrayList<>(); try { ServiceLoader<T> serviceLoader = ServiceLoader.load(klass, loader); - for (T pluginImpl : serviceLoader) { + for (Iterator<T> iterator = serviceLoader.iterator(); iterator.hasNext(); ) { + T pluginImpl; + try { + pluginImpl = iterator.next(); + } catch (ServiceConfigurationError t) { + log.error("Unable to instantiate plugin{}", reflectiveErrorDescription(t.getCause()), t); Review Comment: Works for me 👍 -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org