diff --git a/core/src/main/java/io/kestra/core/plugins/PluginScanner.java b/core/src/main/java/io/kestra/core/plugins/PluginScanner.java index eee0e4c6e25..cb587c79fa2 100644 --- a/core/src/main/java/io/kestra/core/plugins/PluginScanner.java +++ b/core/src/main/java/io/kestra/core/plugins/PluginScanner.java @@ -104,7 +104,13 @@ private RegisteredPlugin scanClassLoader(final ClassLoader classLoader, External loader.collectAll(definitions); for (BeanIntrospectionReference definition : definitions) { - Class beanType = definition.getBeanType(); + Class beanType; + try { + beanType = definition.getBeanType(); + } catch (Throwable e) { + log.warn("Unable to load class '{}' on plugin '{}'", definition.getName(), externalPlugin.getLocation().toString()); + continue; + } if (Modifier.isAbstract(beanType.getModifiers())) { continue;