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

  1. Fix the extension class name declared in the plugin descriptor (plugin.properties) so it matches a class loadable by the application classloader
  2. Ensure the class is packaged in a jar on the Spinnaker service classpath, not only inside the plugin
  3. 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

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


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)