Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-64281

Failure to load Slicers for optional Plugins on startup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • configurationslicing-plugin:1.51

      When installing the Configuration Slicing without the optional dependeinces, many extensions fail to load as they are not marked as `optional`:

      Nov 23, 2020 1:06:53 PM hudson.ExtensionFinder$GuiceFinder$SezpozModule configure
      WARNING: Failed to load configurationslicing.maven.MavenGoals
      java.lang.LinkageError: Failed to resolve class configurationslicing.maven.MavenGoals
      	[...]
      Caused by: java.lang.ClassNotFoundException: hudson.maven.MavenModuleSet
      	[...]
      
      Nov 23, 2020 1:06:53 PM hudson.ExtensionFinder$GuiceFinder$SezpozModule configure
      WARNING: Failed to load configurationslicing.maven.MavenIncremental
      java.lang.LinkageError: Failed to resolve class configurationslicing.maven.MavenIncremental
      	[...]
      Caused by: java.lang.TypeNotPresentException: Type hudson.maven.MavenModuleSet not present
      	[...]
      Caused by: java.lang.ClassNotFoundException: hudson.maven.MavenModuleSet
      	[...]
      
      Nov 23, 2020 1:06:53 PM hudson.ExtensionFinder$GuiceFinder$SezpozModule configure
      WARNING: Failed to load configurationslicing.maven.MavenOptsSlicer
      java.lang.LinkageError: Failed to resolve class configurationslicing.maven.MavenOptsSlicer
      	[...]
      Caused by: java.lang.TypeNotPresentException: Type hudson.maven.MavenModuleSet not present
      	[...]
      Caused by: java.lang.ClassNotFoundException: hudson.maven.MavenModuleSet
      	[...]
      
      Nov 23, 2020 1:06:53 PM hudson.ExtensionFinder$GuiceFinder$SezpozModule configure
      WARNING: Failed to load configurationslicing.maven.MavenSnapshotBuildTrigger
      java.lang.LinkageError: Failed to resolve class configurationslicing.maven.MavenSnapshotBuildTrigger
      	[...]
      Caused by: java.lang.TypeNotPresentException: Type hudson.maven.MavenModuleSet not present
      	[...]
      Caused by: java.lang.ClassNotFoundException: hudson.maven.MavenModuleSet
      	[...]
      
      Nov 23, 2020 1:06:53 PM hudson.ExtensionFinder$GuiceFinder$SezpozModule configure
      WARNING: Failed to load configurationslicing.pipeline.PipelineScriptSlicer
      java.lang.LinkageError: Failed to resolve class configurationslicing.pipeline.PipelineScriptSlicer
      	[...]
      Caused by: java.lang.ClassNotFoundException: org.jenkinsci.plugins.workflow.job.WorkflowJob
      	[...]
      

      Those are apparent because they depends on optional plugin's classes in their definition. These extensions should be made optional as per https://www.jenkins.io/doc/developer/plugin-development/optional-dependencies/.

            allan_burdajewicz Allan BURDAJEWICZ
            allan_burdajewicz Allan BURDAJEWICZ
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: