spinnaker/spinnaker · critical · IntegrationException
Could not find system extension class
Error message
Could not find system extension class '%s'
What it means
During Spring context startup, ExtensionBeanDefinitionRegistryPostProcessor.postProcessBeanFactory registers Spinnaker system extensions declared by installed plugins. It loads each declared extension class by name through the application classloader; if the class is not on the classpath it throws this IntegrationException, failing the application boot. The declared extension is a system-level extension, so it must be visible to the host application, not only inside a plugin.
Solutions
- Fix the extension class name declared in the plugin descriptor (plugin.properties) so it matches a class loadable by the application classloader
- Ensure the class is packaged in a jar on the Spinnaker service classpath, not only inside the plugin
- Clear the plugins download/cache directory and redeploy the correct plugin version
Example fix
// plugin.properties // before: spinnaker.ext.class=com.example.RenamedSystemExtension // after: spinnaker.ext.class=com.example.MySystemExtension
Defensive patterns
Strategy: validation
Validate before calling
String cls = extensionClassName;
try { javaClass.classLoader.loadClass(cls); } catch (ClassNotFoundException e) { log.error("System extension {} missing from app classpath", cls); } Try / catch
try { runSpringContext(); } catch (IntegrationException e) { if (e.getMessage().startsWith("Could not find system extension class")) { log.error("Remove/fix plugin declaring missing system extension", e); } throw e; } Prevention
- Keep the extension class name in plugin.properties in sync with the packaged class
- Package shared system extensions on the host classpath, not only inside the plugin jar
- Clear the plugin cache and verify plugin versions after Spinnaker upgrades
When it happens
Trigger: Application startup when a plugin's plugin descriptor declares a system extension whose class is not loadable by the application classloader — e.g. the extension class lives in the plugin jar only, the plugin id/class name is mistyped, or the plugin jar version that provided the class is no longer present.
Common situations: Plugin lists an extension in its plugin.properties that was removed or renamed in a newer version; extension class packaged in the plugin rather than a shared dependency; stale plugin cache after upgrading Spinnaker.
Related errors
- Could not find extension class
- Could not find TaskRepository class
- ApplicationContext must be configurable
- At least one connection pool must be configured
- At least one connection pool must be configured as default
AI-assisted analysis of spinnaker/spinnaker@1d4a5d0f6d (2026-09-10).
Data as JSON: /api/errors/a08b7f31c82a0b30.
Report an issue: GitHub.
Appendix: source
Thrown at kork/kork-plugins/src/main/kotlin/com/netflix/spinnaker/kork/plugins/ExtensionBeanDefinitionRegistryPostProcessor.kt:86
pluginManager.startedPlugins.forEach { pluginWrapper ->
val p = pluginWrapper.plugin
if (p is PrivilegedSpringPlugin) {
p.registerBeanDefinitions(registry)
}
}
log.debug("Finished preparing plugins in {}ms", System.currentTimeMillis() - start)
}
override fun postProcessBeanFactory(beanFactory: ConfigurableListableBeanFactory) {
pluginManager.getExtensionClassNames(null).forEach {
log.debug("Creating extension '{}'", it)
val extensionClass = try {
javaClass.classLoader.loadClass(it)
} catch (e: ClassNotFoundException) {
throw IntegrationException("Could not find system extension class '$it'", e)
}
val bean = pluginManager.extensionFactory.create(extensionClass)
val beanName = "${extensionClass.simpleName.replaceFirstChar { it.lowercase() }}SystemExtension"
beanFactory.registerSingleton(beanName, bean)
applicationEventPublisher.publishEvent(ExtensionLoaded(this, beanName, extensionClass))
}
pluginManager.startedPlugins.forEach { plugin ->
if (plugin.isUnsafe()) return@forEach
log.debug("Creating extensions for plugin '{}'", plugin.pluginId)
val pluginExtensions = pluginManager.getExtensionClassNames(plugin.pluginId)
if (pluginExtensions.isNullOrEmpty()) log.warn("No extensions found for plugin '{}'", plugin.pluginId)
pluginExtensions.forEach {View on GitHub (pinned to 1d4a5d0f6d)